[PATCH] D97767: [AMDGPU][GlobalISel] Add support for global atomicrmw fadd

Jay Foad via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 2 06:17:28 PST 2021


foad created this revision.
foad added reviewers: arsenm, Petar.Avramovic.
Herald added subscribers: kerbowa, jfb, hiraditya, t-tye, tpr, dstuttard, rovka, yaxunl, nhaehnle, jvesely, kzhuravl.
foad requested review of this revision.
Herald added subscribers: llvm-commits, wdng.
Herald added a project: LLVM.

This includes gfx908 which only has a no-return version of the
global_atomic_add_f32 instruction, using the same hack that was
previously implemented for selecting from the
llvm.amdgcn.global.atomic.fadd intrinsic.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D97767

Files:
  llvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp
  llvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.h
  llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp
  llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-atomicrmw-fadd-global.mir
  llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-atomicrmw-fadd-local.mir
  llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-atomicrmw-fadd.mir
  llvm/test/CodeGen/AMDGPU/global-atomics-fp.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D97767.327430.patch
Type: text/x-patch
Size: 51086 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210302/8094358e/attachment.bin>


More information about the llvm-commits mailing list