[Openmp-commits] [PATCH] D73076: [libomptarget] Implement hip atomic functions in terms of intrinsics
Jon Chesterfield via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Tue Jan 21 18:46:59 PST 2020
JonChesterfield marked an inline comment as done.
JonChesterfield added inline comments.
================
Comment at: openmp/libomptarget/deviceRTLs/amdgcn/src/amdgcn_atomic.ll:20
+
+define i64 @__amdgcn_atomic_max_u64(i64* %a, i64 %v) #0 {
+entry:
----------------
arsenm wrote:
> There must be an existing builtin for this?
There is an opencl builtin, but it wants the pointer type cast to an atomic. I'm reluctant to use that when the underlying type is not atomic qualified. Used in the previous version of this diff.
There is also a clang builtin, but only for 32 bits.
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