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 1
1
// Tests CUDA kernel arguments get copied by value when targeting SPIR-V, even with
2
2
// destructor, copy constructor or move constructor defined by user.
3
3
4
- // RUN: %clang -Xclang -no-opaque-pointers - emit-llvm --cuda-device-only --offload=spirv32 \
4
+ // RUN: %clang -emit-llvm --cuda-device-only --offload=spirv32 \
5
5
// RUN: -nocudalib -nocudainc %s -o %t.bc -c 2>&1
6
6
// RUN: llvm-dis %t.bc -o %t.ll
7
7
// RUN: FileCheck %s --input-file=%t.ll
8
8
9
- // RUN: %clang -Xclang -no-opaque-pointers - emit-llvm --cuda-device-only --offload=spirv64 \
9
+ // RUN: %clang -emit-llvm --cuda-device-only --offload=spirv64 \
10
10
// RUN: -nocudalib -nocudainc %s -o %t.bc -c 2>&1
11
11
// RUN: llvm-dis %t.bc -o %t.ll
12
12
// RUN: FileCheck %s --input-file=%t.ll
@@ -20,6 +20,6 @@ class GpuData {
20
20
};
21
21
22
22
// 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
24
24
25
25
__attribute__ ((global)) void kernel(GpuData output) {}
Original file line number Diff line number Diff line change 1
1
// Tests CUDA kernel arguments get global address space when targetting SPIR-V.
2
2
3
3
4
- // RUN: %clang -Xclang -no-opaque-pointers - emit-llvm --cuda-device-only --offload=spirv32 \
4
+ // RUN: %clang -emit-llvm --cuda-device-only --offload=spirv32 \
5
5
// RUN: -nocudalib -nocudainc %s -o %t.bc -c 2>&1
6
6
// RUN: llvm-dis %t.bc -o %t.ll
7
7
// RUN: FileCheck %s --input-file=%t.ll
8
8
9
- // RUN: %clang -Xclang -no-opaque-pointers - emit-llvm --cuda-device-only --offload=spirv64 \
9
+ // RUN: %clang -emit-llvm --cuda-device-only --offload=spirv64 \
10
10
// RUN: -nocudalib -nocudainc %s -o %t.bc -c 2>&1
11
11
// RUN: llvm-dis %t.bc -o %t.ll
12
12
// RUN: FileCheck %s --input-file=%t.ll
13
13
14
14
// CHECK: define
15
- // CHECK-SAME: spir_kernel void @_Z6kernelPi(i32 addrspace(1)* noundef
15
+ // CHECK-SAME: spir_kernel void @_Z6kernelPi(ptr addrspace(1) noundef
16
16
17
17
__attribute__ ((global)) void kernel(int * output) { *output = 1 ; }
You can’t perform that action at this time.
0 commit comments