]> granicus.if.org Git - clang/commit
[OpenCL] Add version handling and add vector ld/st builtins
authorSven van Haastregt <sven.vanhaastregt@arm.com>
Thu, 19 Sep 2019 13:41:51 +0000 (13:41 +0000)
committerSven van Haastregt <sven.vanhaastregt@arm.com>
Thu, 19 Sep 2019 13:41:51 +0000 (13:41 +0000)
commitf15b9461daa267969fde37ec43ba55971d371cc0
tree752cfe4ccc98a741b8551e9d58b379f8d31fd3a7
parent416fc0085e177099612909abb9c153be03f8e8b7
[OpenCL] Add version handling and add vector ld/st builtins

Allow setting a MinVersion, stating from which OpenCL version a
builtin function is available, and a MaxVersion, stating from which
OpenCL version a builtin function should not be available anymore.

Guard some definitions of the "work-item" builtin functions according
to the OpenCL versions from which they are available.

Add the "vector data load and store" builtin functions (e.g.
vload/vstore), whose signatures differ before and after OpenCL 2.0 in
the pointer argument address spaces.

Patch by Pierre Gondois and Sven van Haastregt.

Differential Revision: https://reviews.llvm.org/D63504

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@372321 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/OpenCLBuiltins.td
lib/Sema/SemaLookup.cpp
test/SemaOpenCL/fdeclare-opencl-builtins.cl
utils/TableGen/ClangOpenCLBuiltinEmitter.cpp