[PATCH] D28691: Add OpenCL 2.0 atomic builtin functions as Clang builtin

Tony Tye via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Aug 3 11:29:55 PDT 2017


t-tye added inline comments.


================
Comment at: docs/LanguageExtensions.rst:1935
+builtin function, and are named with a ``__opencl_`` prefix.)
 
 Low-level ARM exclusive memory builtins
----------------
Should it also say:

```
The macros ``__OPENCL_MEMORY_SCOPE_WORK_ITEM``, ``__OPENCL_MEMORY_SCOPE_WORK_GROUP``, ``__OPENCL_MEMORY_SCOPE_DEVICE``, ``__OPENCL_MEMORY_SCOPE_ALL_SVM_DEVICES``, and ``__OPENCL_MEMORY_SCOPE_SUB_GROUP`` are provided, with values corresponding to the enumerators of OpenCL's ``memory_scope`` enumeration.
```


https://reviews.llvm.org/D28691





More information about the cfe-commits mailing list