[PATCH] D49026: [AMDGPU] New tbuffer intrinsics

Tim Renouf via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 6 08:07:38 PDT 2018


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

This commit adds new intrinsics

  llvm.amdgcn.tbuffer2.load
  llvm.amdgcn.tbuffer2.store

with combined operands for format (dfmt+nfmt) and cachepolicy (glc+slc).

The AMDISD::TBUFFER_* SD nodes have changed correspondingly.

The obsolescent llvm.amdgcn.tbuffer.* and llvm.SI.tbuffer.store
intrinsics continue to work.

Change-Id: If22ad77e349fac3a5d2f72dda53c010377d470d4


Repository:
  rL LLVM

https://reviews.llvm.org/D49026

Files:
  include/llvm/IR/IntrinsicsAMDGPU.td
  lib/Target/AMDGPU/BUFInstructions.td
  lib/Target/AMDGPU/SIISelLowering.cpp
  lib/Target/AMDGPU/SIInstrInfo.td
  test/CodeGen/AMDGPU/llvm.amdgcn.tbuffer.store.ll
  test/CodeGen/AMDGPU/llvm.amdgcn.tbuffer2.load.d16.ll
  test/CodeGen/AMDGPU/llvm.amdgcn.tbuffer2.load.ll
  test/CodeGen/AMDGPU/llvm.amdgcn.tbuffer2.store.d16.ll
  test/CodeGen/AMDGPU/llvm.amdgcn.tbuffer2.store.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D49026.154409.patch
Type: text/x-patch
Size: 37745 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180706/092a6dba/attachment-0001.bin>


More information about the llvm-commits mailing list