summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen
diff options
context:
space:
mode:
authorHans Wennborg <hans@hanshq.net>2018-08-09 12:37:40 +0000
committerHans Wennborg <hans@hanshq.net>2018-08-09 12:37:40 +0000
commit850d801d577ba2b37b1e208df402b89606d01d11 (patch)
tree7f93139268c7d3a7ba401fa727538b91abf43789 /clang/lib/CodeGen
parentf57a2d5bf8dbb591474b18330ccb156b1069d53d (diff)
downloadbcm5719-llvm-850d801d577ba2b37b1e208df402b89606d01d11.tar.gz
bcm5719-llvm-850d801d577ba2b37b1e208df402b89606d01d11.zip
Merging r339316:
------------------------------------------------------------------------ r339316 | hahnfeld | 2018-08-09 09:45:49 +0200 (Thu, 09 Aug 2018) | 16 lines [NVPTX] Select atomic loads and stores According to PTX ISA .volatile has the same memory synchronization semantics as .relaxed.sys, so it can be used to implement monotonic atomic loads and stores. This is important for OpenMP's atomic construct where - 'read's and 'write's are lowered to atomic loads and stores, and - an update of float or double types are lowered into a cmpxchg loop. (Note that PTX could do better because it has atom.add.f{32,64} but LLVM's atomicrmw instruction only allows integer types.) Higher levels of atomicity (like acquire and release) need additional synchronization properties which were added with PTX ISA 6.0 / sm_70. So using these instructions still results in an error. Differential Revision: https://reviews.llvm.org/D50391 ------------------------------------------------------------------------ llvm-svn: 339338
Diffstat (limited to 'clang/lib/CodeGen')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud