summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenOpenCL/atomic-ops-libcall.cl
Commit message (Collapse)AuthorAgeFilesLines
* Add more tests for OpenCL atomic builtin functionsYaxun Liu2017-09-131-1/+26
| | | | | | | | Add tests for different address spaces and insert some blank lines to make them more readable. Differential Revision: https://reviews.llvm.org/D37742 llvm-svn: 313172
* Remove -finclude-default-header in OpenCL atomic testsYaxun Liu2017-08-151-2/+19
| | | | | | Differential Revision: https://reviews.llvm.org/D36676 llvm-svn: 310927
* [OpenCL] Support variable memory scope in atomic builtinsYaxun Liu2017-08-151-1/+4
| | | | | | Differential Revision: https://reviews.llvm.org/D36580 llvm-svn: 310924
* Add OpenCL 2.0 atomic builtin functions as Clang builtinYaxun Liu2017-08-041-0/+37
OpenCL 2.0 atomic builtin functions have a scope argument which is ideally represented as synchronization scope argument in LLVM atomic instructions. Clang supports translating Clang atomic builtin functions to LLVM atomic instructions. However it currently does not support synchronization scope of LLVM atomic instructions. Without this, users have to use LLVM assembly code to implement OpenCL atomic builtin functions. This patch adds OpenCL 2.0 atomic builtin functions as Clang builtin functions, which supports generating LLVM atomic instructions with synchronization scope operand. Currently only constant memory scope argument is supported. Support of non-constant memory scope argument will be added later. Differential Revision: https://reviews.llvm.org/D28691 llvm-svn: 310082
OpenPOWER on IntegriCloud