[OpenMP] Introduce more atomic operations into the runtime
authorJohannes Doerfert <johannes@jdoerfert.de>
Sun, 2 Oct 2022 16:34:41 +0000 (09:34 -0700)
committerJohannes Doerfert <johannes@jdoerfert.de>
Wed, 5 Oct 2022 03:20:55 +0000 (20:20 -0700)
commitb113965073596347fa4eb6819e0ddf624b03a808
tree00319d707c67cad647ab3255105ca9c0f8ca02ce
parentf85c1f3b7c0bda64aef12201e2f5bbad6028582d
[OpenMP] Introduce more atomic operations into the runtime

We should use OpenMP atomics but they don't take variable orderings.
Maybe we should expose all of this in the header but that solves only
part of the problem anyway.

Differential Revision: https://reviews.llvm.org/D135036
openmp/libomptarget/DeviceRTL/include/Synchronization.h
openmp/libomptarget/DeviceRTL/include/Utils.h
openmp/libomptarget/DeviceRTL/src/Synchronization.cpp