aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/CommandFlags.cpp
diff options
context:
space:
mode:
authorSven van Haastregt <sven.vanhaastregt@arm.com>2021-06-08 11:50:29 +0100
committerSven van Haastregt <sven.vanhaastregt@arm.com>2021-06-08 11:51:12 +0100
commitd54e7b731e662e3ec19c590172c9827e3e184829 (patch)
tree4865b8e8e6842823a14c4af4458b51fddd8f6ef8 /llvm/lib/CodeGen/CommandFlags.cpp
parentccd1e087f3702d5ccdfcce24ac7f7d2877921165 (diff)
downloadllvm-d54e7b731e662e3ec19c590172c9827e3e184829.zip
llvm-d54e7b731e662e3ec19c590172c9827e3e184829.tar.gz
llvm-d54e7b731e662e3ec19c590172c9827e3e184829.tar.bz2
[OpenCL] Add memory_scope_all_devices
Add the `memory_scope_all_devices` enum value, which is restricted to OpenCL 3.0 or newer and the `__opencl_c_atomic_scope_all_devices` feature. Also guard `memory_scope_all_svm_devices` accordingly, which is already available in OpenCL 2.0. The `__opencl_c_atomic_scope_all_devices` feature is header-only, so set its define to 1 in `opencl-c-base.h`. This is done unconditionally at the moment, as the mechanism for disabling header-only options hasn't been decided yet. This patch only adds a negative test for now. Ideally adding a CL3.0 run line to atomic-ops.cl should suffice as a positive test, but we cannot do that yet until (at least) generic address spaces and program scope variables are supported in OpenCL 3.0 mode. Differential Revision: https://reviews.llvm.org/D103241
Diffstat (limited to 'llvm/lib/CodeGen/CommandFlags.cpp')
0 files changed, 0 insertions, 0 deletions