Skip to content

Commit 81e5cee

Browse files
svenvhjsji
authored andcommitted
Add -fdeclare-opencl-builtins to more .cl tests (#2950)
Use clang's tablegen-driven mechanism for builtins, which is faster than parsing the opencl-c.h header. Original commit: KhronosGroup/SPIRV-LLVM-Translator@b33ca8d1868d24a
1 parent 4b2a35b commit 81e5cee

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

llvm-spirv/test/transcoding/OpImageSampleExplicitLod_arg.cl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clang_cc1 -O1 -triple spir-unknown-unknown -cl-std=CL2.0 %s -finclude-default-header -emit-llvm-bc -o %t.bc
1+
// RUN: %clang_cc1 -O1 -triple spir-unknown-unknown -cl-std=CL2.0 %s -fdeclare-opencl-builtins -finclude-default-header -emit-llvm-bc -o %t.bc
22
// RUN: llvm-spirv %t.bc -spirv-text -o %t.txt
33
// RUN: FileCheck < %t.txt %s --check-prefix=CHECK-SPIRV
44
// RUN: llvm-spirv %t.bc -o %t.spv

llvm-spirv/test/transcoding/OpImageWrite.cl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clang_cc1 -O1 -triple spir-unknown-unknown -cl-std=CL2.0 %s -finclude-default-header -emit-llvm-bc -o %t.bc
1+
// RUN: %clang_cc1 -O1 -triple spir-unknown-unknown -cl-std=CL2.0 %s -fdeclare-opencl-builtins -finclude-default-header -emit-llvm-bc -o %t.bc
22
// RUN: llvm-spirv %t.bc -spirv-text -o %t.txt
33
// RUN: FileCheck < %t.txt %s --check-prefix=CHECK-SPIRV
44
// RUN: llvm-spirv %t.bc -o %t.spv

0 commit comments

Comments
 (0)