[PATCH] D131370: [DirectX backend] Translate cbuffer into DXIL.
Xiang Li via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Aug 7 14:46:39 PDT 2022
python3kgae created this revision.
python3kgae added reviewers: aaron.ballman, Anastasia, kuhar, bogner, beanz, pow2clk.
Herald added subscribers: hiraditya, mgorny.
Herald added a project: All.
python3kgae requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
cbuffer is a global ptr in address space 4 with annotation in named metadata "hlsl.cbufs".
A new pass DXILCBufferLoweringLegacy is added to collect users of cbuffer
and generate createHandle and cbufferLoad from the users of the cbuffer.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D131370
Files:
llvm/lib/Target/DirectX/CMakeLists.txt
llvm/lib/Target/DirectX/DXIL.td
llvm/lib/Target/DirectX/DXILCBufferLowering.cpp
llvm/lib/Target/DirectX/DXILConstants.h
llvm/lib/Target/DirectX/DXILOpBuilder.cpp
llvm/lib/Target/DirectX/DXILOpBuilder.h
llvm/lib/Target/DirectX/DirectX.h
llvm/lib/Target/DirectX/DirectXTargetMachine.cpp
llvm/test/CodeGen/DirectX/cbuf.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D131370.450670.patch
Type: text/x-patch
Size: 15622 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220807/e3f9f6a9/attachment.bin>
More information about the llvm-commits
mailing list