[clang] [CIR] Lower undef and poison initializers of any type in CXXABILowering (PR #230901)

Steffen Larsen via cfe-commits cfe-commits at lists.llvm.org
Mon Oct 12 05:16:51 PDT 2026


================
@@ -0,0 +1,27 @@
+#include "Inputs/cuda.h"
+
+// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -fclangir \
+// RUN:            -x cuda -emit-llvm -target-sdk-version=12.3 \
+// RUN:            %s -o %t-cir.ll
+// RUN: FileCheck --check-prefix=HOST --input-file=%t-cir.ll %s
+
+// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu \
+// RUN:            -x cuda -emit-llvm -target-sdk-version=12.3 \
+// RUN:            %s -o %t.ll
+// RUN: FileCheck --check-prefix=HOST --input-file=%t.ll %s
----------------
steffenlarsen wrote:

Should we also test `-x hip`?

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


More information about the cfe-commits mailing list