[clang] [CIR][CUDA] Emit device variables referenced only by host code (PR #236392)

Steffen Larsen via cfe-commits cfe-commits at lists.llvm.org
Wed Oct 28 08:46:44 PDT 2026


================
@@ -0,0 +1,29 @@
+// RUN: %clang_cc1 -triple nvptx64-nvidia-cuda -x cuda -fcuda-is-device \
+// RUN:   -emit-cir %s -o %t.cir
+// RUN: FileCheck %s --input-file=%t.cir
+// RUN: FileCheck %s --check-prefix=NEG --input-file=%t.cir
+// RUN: %clang_cc1 -triple amdgcn-amd-amdhsa -x hip -fcuda-is-device \
----------------
steffenlarsen wrote:

```suggestion
// RUN: %clang_cc1 -triple amdgpu-amd-amdhsa -x hip -fcuda-is-device \
```

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


More information about the cfe-commits mailing list