[clang] [CIR][HIP] Skip global init for device variables (PR #231971)
Steffen Larsen via cfe-commits
cfe-commits at lists.llvm.org
Wed Oct 14 23:54:36 PDT 2026
================
@@ -0,0 +1,33 @@
+// REQUIRES: amdgpu-registered-target
+// RUN: %clang_cc1 -triple spirv64-amd-amdhsa -x hip -fclangir \
+// RUN: -fcuda-is-device -emit-llvm -I%S/../CodeGenCUDA/Inputs %s -o %t-cir.ll
+// RUN: FileCheck --check-prefixes=LLVM,SPIRV %s --input-file=%t-cir.ll
+
+// RUN: %clang_cc1 -triple spirv64-amd-amdhsa -x hip \
+// RUN: -fcuda-is-device -emit-llvm -I%S/../CodeGenCUDA/Inputs %s -o %t.ll
+// RUN: FileCheck --check-prefixes=LLVM,SPIRV %s --input-file=%t.ll
+
+// RUN: %clang_cc1 -triple amdgcn-amd-amdhsa -x hip -fclangir \
----------------
steffenlarsen wrote:
```suggestion
// RUN: %clang_cc1 -triple amdgpu9-amd-amdhsa -x hip -fclangir \
```
https://github.com/llvm/llvm-project/pull/231971
More information about the cfe-commits
mailing list