[clang] [CIR] Add TBAA for vtable pointers, aggregate copies, atomics and complex (PR #247722)
Henrich Lauko via cfe-commits
cfe-commits at lists.llvm.org
Fri Dec 4 03:51:57 PST 2026
================
@@ -0,0 +1,62 @@
+// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -O1 -disable-llvm-passes -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 -O1 -disable-llvm-passes -fclangir -emit-llvm %s -o %t-cir.ll
+// RUN: FileCheck --input-file=%t-cir.ll %s -check-prefix=LLVM
----------------
xlauko wrote:
Please add the classic `-emit-llvm` RUN line here, as the other new tbaa tests have. The atomic checks then match classic as written. The complex checks need their own OGCG prefix, because classic emits separate `.real`/`.imag` loads and stores where CIR emits one `{ float, float }` load.
https://github.com/llvm/llvm-project/pull/247722
More information about the cfe-commits
mailing list