[clang] [CIR] Implement __builtin_counted_by_ref (PR #235781)

Andy Kaylor via cfe-commits cfe-commits at lists.llvm.org
Wed Nov 4 16:06:23 PST 2026


================
@@ -0,0 +1,316 @@
+// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -fclangir -emit-cir %s -o %t.cir
+// RUN: FileCheck --input-file=%t.cir %s -check-prefix=CIR
+// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -fclangir -emit-llvm %s -o %t-cir.ll
+// RUN: FileCheck --input-file=%t-cir.ll %s -check-prefix=LLVM
+// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -emit-llvm %s -o %t.ll
+// RUN: FileCheck --input-file=%t.ll %s -check-prefix=OGCG
----------------
andykaylor wrote:

```suggestion
// RUN: FileCheck --input-file=%t.ll %s -check-prefixes=OGCG,LLVM
```

https://github.com/llvm/llvm-project/pull/235781


More information about the cfe-commits mailing list