summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenOpenCL/atomic-ops.cl
Commit message (Collapse)AuthorAgeFilesLines
* AMDGPU: Add support for cross address space synchronization scopes (clang)Konstantin Zhuravlyov2019-03-251-10/+10
| | | | | | Differential Revision: https://reviews.llvm.org/D59494 llvm-svn: 356947
* AMDGPU: Fix the mapping of sub group sync scopeKonstantin Zhuravlyov2019-03-061-5/+5
| | | | | | | | Map memory_scope_sub_group to "wavefront" sync scope Differential Revision: https://reviews.llvm.org/D58847 llvm-svn: 355549
* CodeGen: Fix invalid bitcasts for atomic builtinsYaxun Liu2017-10-171-39/+39
| | | | | | | | | | | | | Currently clang assumes the temporary variables emitted during codegen of atomic builtins have address space 0, which is not true for target triple amdgcn---amdgiz and causes invalid bitcasts. This patch fixes that. Differential Revision: https://reviews.llvm.org/D38966 llvm-svn: 316000
* Add more tests for OpenCL atomic builtin functionsYaxun Liu2017-09-131-0/+19
| | | | | | | | 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
* Attempt to fix failure in CodeGenOpenCL/atomic-ops.cl againYaxun Liu2017-08-151-20/+20
| | | | llvm-svn: 310937
* Attempt to fix failure in CodeGenOpenCL/atomic-ops.clYaxun Liu2017-08-151-5/+5
| | | | llvm-svn: 310932
* Remove -finclude-default-header in OpenCL atomic testsYaxun Liu2017-08-151-3/+24
| | | | | | Differential Revision: https://reviews.llvm.org/D36676 llvm-svn: 310927
* [OpenCL] Support variable memory scope in atomic builtinsYaxun Liu2017-08-151-0/+75
| | | | | | Differential Revision: https://reviews.llvm.org/D36580 llvm-svn: 310924
* Add OpenCL 2.0 atomic builtin functions as Clang builtinYaxun Liu2017-08-041-0/+176
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