]> granicus.if.org Git - llvm/commit
[AMDGPU] Add intrinsics for tbuffer load and store
authorDavid Stuttard <david.stuttard@amd.com>
Thu, 22 Jun 2017 16:29:22 +0000 (16:29 +0000)
committerDavid Stuttard <david.stuttard@amd.com>
Thu, 22 Jun 2017 16:29:22 +0000 (16:29 +0000)
commitdad6e61ce7fc1a37ca807ddd8b677fca70cd6b90
tree6036af6d5fe68b602f17c359a14bf56d0e8e236c
parent5715184cc4c36cf0a275f3ba8456bcb2f8b801ac
[AMDGPU] Add intrinsics for tbuffer load and store

Intrinsic already existed for llvm.SI.tbuffer.store

Needed tbuffer.load and also re-implementing the intrinsic as llvm.amdgcn.tbuffer.*

Added CodeGen tests for the 2 new variants added.
Left the original llvm.SI.tbuffer.store implementation to avoid issues with existing code

Subscribers: arsenm, kzhuravl, wdng, nhaehnle, yaxunl, tony-tye, tpr

Differential Revision: https://reviews.llvm.org/D30687

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@306031 91177308-0d34-0410-b5e6-96231b3b80d8
19 files changed:
include/llvm/IR/IntrinsicsAMDGPU.td
lib/Target/AMDGPU/AMDGPUISelLowering.cpp
lib/Target/AMDGPU/AMDGPUISelLowering.h
lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp
lib/Target/AMDGPU/BUFInstructions.td
lib/Target/AMDGPU/InstPrinter/AMDGPUInstPrinter.cpp
lib/Target/AMDGPU/InstPrinter/AMDGPUInstPrinter.h
lib/Target/AMDGPU/SIISelLowering.cpp
lib/Target/AMDGPU/SIInstrInfo.td
test/CodeGen/AMDGPU/llvm.SI.tbuffer.store.ll
test/CodeGen/AMDGPU/llvm.amdgcn.tbuffer.load.ll [new file with mode: 0644]
test/CodeGen/AMDGPU/llvm.amdgcn.tbuffer.store.ll [new file with mode: 0644]
test/CodeGen/AMDGPU/merge-store-crash.ll
test/CodeGen/AMDGPU/merge-store-usedef.ll
test/CodeGen/AMDGPU/mubuf.ll
test/CodeGen/AMDGPU/scheduler-subrange-crash.ll
test/CodeGen/AMDGPU/si-triv-disjoint-mem-access.ll
test/MC/AMDGPU/mtbuf.s [new file with mode: 0644]
test/MC/Disassembler/AMDGPU/mtbuf_vi.txt [new file with mode: 0644]