[PATCH] D137524: clang/AMDGPU: Emit atomicrmw for atomic_inc/dec builtins

Matt Arsenault via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sun Nov 6 21:12:10 PST 2022


arsenm created this revision.
arsenm added reviewers: yaxunl, AMDGPU.
Herald added subscribers: kosarev, Anastasia, tpr, dstuttard, jvesely, kzhuravl.
Herald added a project: All.
arsenm requested review of this revision.
Herald added a subscriber: wdng.

This makes the scope and ordering arguments actually do something.
Also add some new OpenCL tests since the existing HIP tests didn't
cover address spaces.


https://reviews.llvm.org/D137524

Files:
  clang/lib/CodeGen/CGBuiltin.cpp
  clang/test/CodeGenCXX/builtin-amdgcn-atomic-inc-dec.cpp
  clang/test/CodeGenOpenCL/builtins-amdgcn.cl

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D137524.473552.patch
Type: text/x-patch
Size: 28834 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20221107/2dbf9f89/attachment-0001.bin>


More information about the cfe-commits mailing list