[PATCH] D122082: Add DXIL Bitcode Writer and DXIL testing

Chris Bieneman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Mar 19 13:26:46 PDT 2022


beanz created this revision.
beanz added reviewers: MaskRay, tstellar, pete, jdoerfert, sheredom, kuhar, antiagainst, nhaehnle, rnk.
Herald added subscribers: mgrang, hiraditya, mgorny.
Herald added a project: All.
beanz requested review of this revision.
Herald added a project: LLVM.

This change is a big blob of code that isn't easy to break up. It
either comes in all together as a blob, works and has tests, or it
doesn't do anything.

Logically you can think of this patch as three things:
(1) Adding virtual interfaces so the bitcode writer can be overridden
(2) Adding a new bitcode writer implementation for DXIL
(3) Adding some (optional) crazy CMake goop to build the
DirectXShaderCompiler's llvm-dis as dxil-dis for testing


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D122082

Files:
  llvm/include/llvm/Bitcode/BitcodeWriter.h
  llvm/include/llvm/Bitcode/BitcodeWriterBase.h
  llvm/include/llvm/Bitcode/BitcodeWriterPass.h
  llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
  llvm/lib/Bitcode/Writer/BitcodeWriterPass.cpp
  llvm/lib/Target/DirectX/CMakeLists.txt
  llvm/lib/Target/DirectX/DXILBitcodeWriter.cpp
  llvm/lib/Target/DirectX/DXILBitcodeWriter.h
  llvm/lib/Target/DirectX/DirectXTargetMachine.cpp
  llvm/test/CMakeLists.txt
  llvm/test/lit.cfg.py
  llvm/test/lit.site.cfg.py.in
  llvm/test/tools/dxil-dis/BasicIR.ll
  llvm/test/tools/dxil-dis/FMA.ll
  llvm/test/tools/dxil-dis/debug-info.ll
  llvm/test/tools/dxil-dis/di-compile-unit.ll
  llvm/test/tools/dxil-dis/di-subprogram.ll
  llvm/test/tools/dxil-dis/di-subrotine.ll
  llvm/test/tools/dxil-dis/lit.local.cfg
  llvm/test/tools/dxil-dis/metadata.ll
  llvm/tools/dxil-dis/CMakeLists.txt

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D122082.416726.patch
Type: text/x-patch
Size: 130967 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220319/11b76e00/attachment-0001.bin>


More information about the llvm-commits mailing list