aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/Support/CommandLineTest.cpp
diff options
context:
space:
mode:
authorJoseph Huber <huberjn@outlook.com>2023-12-19 14:30:34 -0600
committerGitHub <noreply@github.com>2023-12-19 14:30:34 -0600
commit219355d4c0d2b6e2c0d5e022f8b7a78c1e9ce53f (patch)
treed8575f786003f8edfd0a800ffebe084132d7b7d3 /llvm/unittests/Support/CommandLineTest.cpp
parent78a195e1002dbfdfaeb7b36d5699e58b47238cbb (diff)
downloadllvm-219355d4c0d2b6e2c0d5e022f8b7a78c1e9ce53f.zip
llvm-219355d4c0d2b6e2c0d5e022f8b7a78c1e9ce53f.tar.gz
llvm-219355d4c0d2b6e2c0d5e022f8b7a78c1e9ce53f.tar.bz2
[Libomptarget] Use scoped atomics in the device runtime (#75834)
Summary: A recent patch allowed us to easily replace GNU atomics with scoped variants that make use of the backend's handling for more permissive scopes. The default is full "system" scope, that means the atomic operation must be consistent with operations that may happen on the host's memory. This is generally only required for processes that are communicating with something via global fine-grained memory. This patch uses these atomics to make everything device scoped, as nothing in the OpenMP runtime should depend on the host. This is only provided as a very new clang extension but the DeviceRTL is only compiled with clang so it is always available.
Diffstat (limited to 'llvm/unittests/Support/CommandLineTest.cpp')
0 files changed, 0 insertions, 0 deletions