summaryrefslogtreecommitdiffstats
path: root/llvm/test/SymbolRewriter
diff options
context:
space:
mode:
authorJonas Hahnfeld <hahnjo@hahnjo.de>2018-08-09 07:45:49 +0000
committerJonas Hahnfeld <hahnjo@hahnjo.de>2018-08-09 07:45:49 +0000
commit20526bf48310b6a8ff5b655582545d4b79a06c2d (patch)
tree347cc3e8b0e872e6caaaae42294863abd78a05a9 /llvm/test/SymbolRewriter
parent577a97e2b9177fb48a01bde79e2f9af260fa4653 (diff)
downloadbcm5719-llvm-20526bf48310b6a8ff5b655582545d4b79a06c2d.tar.gz
bcm5719-llvm-20526bf48310b6a8ff5b655582545d4b79a06c2d.zip
[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: 339316
Diffstat (limited to 'llvm/test/SymbolRewriter')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud