[PATCH] D50315: [AMDGPU] Allow int types for MUBUF vdata

Tim Renouf via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Aug 5 11:40:29 PDT 2018


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

Previously the new llvm.amdgcn.raw/struct.buffer.load/store intrinsics
only allowed float types for the data to be loaded or stored, which
sometimes meant the frontend needed to generate a bitcast. In this, the
new intrinsics copied the old buffer intrinsics.

This commit extends the new intrinsics to allow int types as well.

Change-Id: I8202af2d036455553681dcbb3d7d32ae273f8f85


Repository:
  rL LLVM

https://reviews.llvm.org/D50315

Files:
  include/llvm/IR/IntrinsicsAMDGPU.td
  lib/Target/AMDGPU/BUFInstructions.td
  test/CodeGen/AMDGPU/llvm.amdgcn.raw.buffer.load.ll
  test/CodeGen/AMDGPU/llvm.amdgcn.raw.buffer.store.ll
  test/CodeGen/AMDGPU/llvm.amdgcn.struct.buffer.load.ll
  test/CodeGen/AMDGPU/llvm.amdgcn.struct.buffer.store.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D50315.159229.patch
Type: text/x-patch
Size: 13769 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180805/21d2d31e/attachment.bin>


More information about the llvm-commits mailing list