[PATCH] D28691: Add OpenCL 2.0 atomic builtin functions as Clang builtin
Brian Sumner via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Jul 25 07:35:14 PDT 2017
b-sumner added inline comments.
================
Comment at: include/clang/Basic/Builtins.def:713
+ATOMIC_BUILTIN(__opencl_atomic_fetch_or, "v.", "t")
+ATOMIC_BUILTIN(__opencl_atomic_fetch_xor, "v.", "t")
+
----------------
yaxunl wrote:
> Anastasia wrote:
> > What about min/max? I believe they will need to have the scope too.
> They are not 2.0 atomic builtin functions. They can be implemented as library functions through 2.0 atomic builtin functions.
Yes, they are. Please look again at 6.13.11.7.5 in the 2.0 C spec.
https://reviews.llvm.org/D28691
More information about the cfe-commits
mailing list