[PATCH] D136706: [DirectX backend] support resource array when lower typed buffer ld/st to DXIL.

Xiang Li via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 25 11:27:08 PDT 2022


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

A new kind of Memory offset is added to calculate array index.
Use data layout with ptr size of 1 to help to get the array index with EmitGEPOffset and DL.getIndexedOffsetInType.
Added HandleCache to reuse DXIL Handle.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D136706

Files:
  llvm/lib/Target/DirectX/DXILResource.h
  llvm/lib/Target/DirectX/DXILTypedBufferLowering.cpp
  llvm/lib/Target/DirectX/MemAccessLowerHelper.cpp
  llvm/lib/Target/DirectX/MemAccessLowerHelper.h
  llvm/test/CodeGen/DirectX/typed_buf_array.ll
  llvm/test/CodeGen/DirectX/typed_buf_array2.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D136706.470575.patch
Type: text/x-patch
Size: 78035 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221025/1b3bb48a/attachment.bin>


More information about the llvm-commits mailing list