Skip to content

Commit d8f91f2

Browse files
committed
[CodeGenCUDASPIRV] Convert tests to opaque pointers (NFC)
1 parent 83f045f commit d8f91f2

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

clang/test/CodeGenCUDASPIRV/copy-aggregate-byval.cu

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
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) {}
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
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; }

0 commit comments

Comments
 (0)