[PATCH] D98539: [OpenCL] Set target as spir for c-index-test for OpenCL
Anton Zabaznov via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Mar 12 10:57:41 PST 2021
azabaznov created this revision.
azabaznov added reviewers: Anastasia, svenvh, thakis.
Herald added subscribers: arphaman, yaxunl.
azabaznov requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
Otherwise (for other targets) testing may be non-determistic as
targets support different extension/feature set, but SPIR target
support all extensions/features by default
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D98539
Files:
clang/test/Index/cxx.cl
clang/test/Index/opencl-types.cl
Index: clang/test/Index/opencl-types.cl
===================================================================
--- clang/test/Index/opencl-types.cl
+++ clang/test/Index/opencl-types.cl
@@ -1,4 +1,4 @@
-// RUN: c-index-test -test-print-type %s -cl-std=CL2.0 | FileCheck %s
+// RUN: c-index-test -test-print-type %s -cl-std=CL2.0 -target spir | FileCheck %s
#pragma OPENCL EXTENSION cl_khr_fp16 : enable
#pragma OPENCL EXTENSION cl_khr_fp64 : enable
Index: clang/test/Index/cxx.cl
===================================================================
--- clang/test/Index/cxx.cl
+++ clang/test/Index/cxx.cl
@@ -3,5 +3,5 @@
addrspace_cast<__global int*>(ptr);
}
-// RUN: c-index-test -test-load-source all %s -cl-std=clc++ | FileCheck %s
+// RUN: c-index-test -test-load-source all %s -cl-std=clc++ -target spir | FileCheck %s
// CHECK: cxx.cl:3:3: CXXAddrspaceCastExpr
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D98539.330307.patch
Type: text/x-patch
Size: 873 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210312/4d242b57/attachment.bin>
More information about the cfe-commits
mailing list