[Openmp-commits] [PATCH] D73076: [libomptarget] Implement hip atomic functions in terms of intrinsics

Matt Arsenault via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Tue Jan 21 17:53:09 PST 2020


arsenm added inline comments.


================
Comment at: openmp/libomptarget/deviceRTLs/amdgcn/src/atomic_inc.ll:12
+
+  %ret = call i32 @llvm.amdgcn.atomic.inc.i32.p0i32(i32* %x, i32 %v,
+  i32 5, ; Ordering. AtomicOrdering.h: sequentially consistent
----------------
We should also have a builtin for this. It would not be difficult to add


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D73076/new/

https://reviews.llvm.org/D73076





More information about the Openmp-commits mailing list