File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
clang/test/CodeGenCUDASPIRV Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 11// Tests CUDA kernel arguments get copied by value when targeting SPIR-V, even with
22// destructor, copy constructor or move constructor defined by user.
33
4- // RUN: %clang -Xclang -no-opaque-pointers - emit-llvm --cuda-device-only --offload=spirv32 \
4+ // RUN: %clang -emit-llvm --cuda-device-only --offload=spirv32 \
55// RUN: -nocudalib -nocudainc %s -o %t.bc -c 2>&1
66// RUN: llvm-dis %t.bc -o %t.ll
77// RUN: FileCheck %s --input-file=%t.ll
88
9- // RUN: %clang -Xclang -no-opaque-pointers - emit-llvm --cuda-device-only --offload=spirv64 \
9+ // RUN: %clang -emit-llvm --cuda-device-only --offload=spirv64 \
1010// RUN: -nocudalib -nocudainc %s -o %t.bc -c 2>&1
1111// RUN: llvm-dis %t.bc -o %t.ll
1212// RUN: FileCheck %s --input-file=%t.ll
@@ -20,6 +20,6 @@ class GpuData {
2020};
2121
2222// CHECK: define
23- // CHECK-SAME: spir_kernel void @_Z6kernel7GpuData(%class.GpuData* noundef byval(%class.GpuData) align
23+ // CHECK-SAME: spir_kernel void @_Z6kernel7GpuData(ptr noundef byval(%class.GpuData) align
2424
2525__attribute__ ((global)) void kernel(GpuData output) {}
Original file line number Diff line number Diff line change 11// Tests CUDA kernel arguments get global address space when targetting SPIR-V.
22
33
4- // RUN: %clang -Xclang -no-opaque-pointers - emit-llvm --cuda-device-only --offload=spirv32 \
4+ // RUN: %clang -emit-llvm --cuda-device-only --offload=spirv32 \
55// RUN: -nocudalib -nocudainc %s -o %t.bc -c 2>&1
66// RUN: llvm-dis %t.bc -o %t.ll
77// RUN: FileCheck %s --input-file=%t.ll
88
9- // RUN: %clang -Xclang -no-opaque-pointers - emit-llvm --cuda-device-only --offload=spirv64 \
9+ // RUN: %clang -emit-llvm --cuda-device-only --offload=spirv64 \
1010// RUN: -nocudalib -nocudainc %s -o %t.bc -c 2>&1
1111// RUN: llvm-dis %t.bc -o %t.ll
1212// RUN: FileCheck %s --input-file=%t.ll
1313
1414// CHECK: define
15- // CHECK-SAME: spir_kernel void @_Z6kernelPi(i32 addrspace(1)* noundef
15+ // CHECK-SAME: spir_kernel void @_Z6kernelPi(ptr addrspace(1) noundef
1616
1717__attribute__ ((global)) void kernel(int * output) { *output = 1 ; }
You can’t perform that action at this time.
0 commit comments