aboutsummaryrefslogtreecommitdiff
path: root/flang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorSven van Haastregt <sven.vanhaastregt@arm.com>2022-01-31 10:21:05 +0000
committerSven van Haastregt <sven.vanhaastregt@arm.com>2022-01-31 10:21:05 +0000
commit8e6099291dcb49b90e59a591ec24c77f348239b6 (patch)
tree0bd899f68b57de98f82b03e07d42033afd728f39 /flang/lib/Frontend/CompilerInvocation.cpp
parent17ebd68ae6941eb8ead8b42e07bedf12a91479cb (diff)
downloadllvm-8e6099291dcb49b90e59a591ec24c77f348239b6.zip
llvm-8e6099291dcb49b90e59a591ec24c77f348239b6.tar.gz
llvm-8e6099291dcb49b90e59a591ec24c77f348239b6.tar.bz2
[OpenCL] Make generic addrspace optional for -fdeclare-opencl-builtins
Currently, -fdeclare-opencl-builtins always adds the generic address space overloads of e.g. the vload builtin functions in OpenCL 3.0 mode, even when the generic address space feature is disabled. Guard the generic address space overloads by the `__opencl_c_generic_address_space` feature instead of by OpenCL version. Guard the private, global, and local overloads using the internal `__opencl_c_named_address_space_builtins` feature. Differential Revision: https://reviews.llvm.org/D107769
Diffstat (limited to 'flang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions