[PATCH] D136302: [DirectX backend] Support typed buffer load/store.

Xiang Li via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 19 16:42:55 PDT 2022


python3kgae created this revision.
python3kgae added reviewers: bogner, beanz, pow2clk.
Herald added subscribers: Anastasia, hiraditya.
Herald added a project: All.
python3kgae requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

New DXIL op BufferLoad/BufferStore is added.
Resources in "hlsl.uavs" will be lowered into createHandle, BufferLoad and BufferStore.

Didn't use the createHandle generated in clangCodeGen yet.
Tracking with https://github.com/llvm/llvm-project/issues/58031.

MemAccessLowerHelper::collectMemAccess is added to help find memory access for lowering.
Different version of Offset will be added for different memory access later.

Array of resources are not supported yet.
Tracking with https://github.com/llvm/llvm-project/issues/58486


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D136302

Files:
  llvm/lib/Target/DirectX/CMakeLists.txt
  llvm/lib/Target/DirectX/DXIL.td
  llvm/lib/Target/DirectX/DXILOpBuilder.cpp
  llvm/lib/Target/DirectX/DXILOpBuilder.h
  llvm/lib/Target/DirectX/DXILResource.cpp
  llvm/lib/Target/DirectX/DXILResource.h
  llvm/lib/Target/DirectX/DXILTypedBufferLowering.cpp
  llvm/lib/Target/DirectX/DirectX.h
  llvm/lib/Target/DirectX/DirectXTargetMachine.cpp
  llvm/lib/Target/DirectX/MemAccessLowerHelper.cpp
  llvm/lib/Target/DirectX/MemAccessLowerHelper.h
  llvm/test/CodeGen/DirectX/typed_buf_ld_st.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D136302.469078.patch
Type: text/x-patch
Size: 23688 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221019/0c955d19/attachment.bin>


More information about the llvm-commits mailing list