[PATCH] D125334: [DirectX] Embed DXIL in LLVM Module
Chris Bieneman via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue May 10 12:59:55 PDT 2022
beanz created this revision.
beanz added reviewers: MaskRay, pete, kuhar, nhaehnle, lhames, python3kgae.
Herald added subscribers: StephenFan, hiraditya, mgorny.
Herald added a project: All.
beanz requested review of this revision.
Herald added a project: LLVM.
At the end of the codegen pipeline for DXIL we will emit the DXIL into
a global variable in the Module annotated for the "DXIL" section.
This will be used by the MCDXContainerStreamer to emit the DXIL into a
DXContainer DXIL part.
Other parts of the DXContainer will be constructed similarly by
serializing their values into GlobalVariables.
This will allow DXIL to flow into DXContainers through the normal
MCStreamer flow used in the MC layer.
Depends on D122270 <https://reviews.llvm.org/D122270>
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D125334
Files:
llvm/lib/Target/DirectX/DXILWriter/CMakeLists.txt
llvm/lib/Target/DirectX/DXILWriter/DXILWriterPass.cpp
llvm/lib/Target/DirectX/DXILWriter/DXILWriterPass.h
llvm/lib/Target/DirectX/DirectX.h
llvm/lib/Target/DirectX/DirectXTargetMachine.cpp
llvm/test/CodeGen/DirectX/embed-dxil.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D125334.428475.patch
Type: text/x-patch
Size: 4743 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220510/2960e957/attachment.bin>
More information about the llvm-commits
mailing list