[PATCH] D119420: [OpenCL] Add OpenCL 3.0 atomics to -fdeclare-opencl-builtins
Anastasia Stulova via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Feb 10 04:58:53 PST 2022
Anastasia accepted this revision.
Anastasia added a comment.
This revision is now accepted and ready to land.
LGTM! The rename can be made on commit.
================
Comment at: clang/test/SemaOpenCL/fdeclare-opencl-builtins.cl:84
+#if (__OPENCL_CPP_VERSION__ == 100 || __OPENCL_C_VERSION__ == 200)
+#define __opencl_c_atomic_order_seq_cst 1
----------------
Anastasia wrote:
> Why do we need to set those for `__OPENCL_CPP_VERSION__ == 100` since those atomics are for OpenCL 2.0 onwards?
Sorry C++ for OpenCL is aligned with OpenCL 2, so this check makes sense.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D119420/new/
https://reviews.llvm.org/D119420
More information about the cfe-commits
mailing list