[PATCH] D51098: [AMDGPU] Add support for multi-dword s.buffer.load intrinsic

Tim Renouf via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 22 05:37:29 PDT 2018


tpr created this revision.
Herald added subscribers: llvm-commits, t-tye, dstuttard, yaxunl, nhaehnle, wdng, jvesely, kzhuravl, arsenm.

Patch by Marek Olsen and David Stuttard, both of AMD.

This adds a new amdgcn intrinsic supporting s.buffer.load, in particular
multiple dword variants. These are convenient to use from some front-end
implementations.

Also modified the existing llvm.SI.load.const intrinsic to common up the
underlying implementation.

This modification also requires that we can lower to non-uniform loads correctly
by splitting larger dword variants into sizes supported by the non-uniform
versions of the load.

Change-Id: I83a6e00681158bb243591a94a51c7baa445f169b


Repository:
  rL LLVM

https://reviews.llvm.org/D51098

Files:
  include/llvm/IR/IntrinsicsAMDGPU.td
  lib/Target/AMDGPU/AMDGPUISelLowering.cpp
  lib/Target/AMDGPU/AMDGPUISelLowering.h
  lib/Target/AMDGPU/SIISelLowering.cpp
  lib/Target/AMDGPU/SIInstrInfo.cpp
  lib/Target/AMDGPU/SIInstrInfo.h
  lib/Target/AMDGPU/SIInstrInfo.td
  lib/Target/AMDGPU/SMInstructions.td
  test/CodeGen/AMDGPU/smrd.ll
  test/Transforms/EarlyCSE/intrinsics.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D51098.161929.patch
Type: text/x-patch
Size: 36571 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180822/6924cf73/attachment.bin>


More information about the llvm-commits mailing list