[all-commits] [llvm/llvm-project] f2526c: Add DXIL Bitcode Writer and DXIL testing

Chris B via All-commits all-commits at lists.llvm.org
Fri Apr 15 16:50:42 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f2526c1a5c6fe6d2740b68e2d73b85c958fd2719
      https://github.com/llvm/llvm-project/commit/f2526c1a5c6fe6d2740b68e2d73b85c958fd2719
  Author: Chris Bieneman <chris.bieneman at me.com>
  Date:   2022-04-15 (Fri, 15 Apr 2022)

  Changed paths:
    M llvm/lib/Target/DirectX/CMakeLists.txt
    A llvm/lib/Target/DirectX/DXILWriter/CMakeLists.txt
    A llvm/lib/Target/DirectX/DXILWriter/DXILBitcodeWriter.cpp
    A llvm/lib/Target/DirectX/DXILWriter/DXILBitcodeWriter.h
    A llvm/lib/Target/DirectX/DXILWriter/DXILValueEnumerator.cpp
    A llvm/lib/Target/DirectX/DXILWriter/DXILValueEnumerator.h
    A llvm/lib/Target/DirectX/DXILWriter/DXILWriterPass.cpp
    A llvm/lib/Target/DirectX/DXILWriter/DXILWriterPass.h
    M llvm/lib/Target/DirectX/DirectX.h
    M llvm/lib/Target/DirectX/DirectXTargetMachine.cpp
    M llvm/test/CMakeLists.txt
    M llvm/test/lit.cfg.py
    M llvm/test/lit.site.cfg.py.in
    A llvm/test/tools/dxil-dis/BasicIR.ll
    A llvm/test/tools/dxil-dis/attribute-filter.ll
    A llvm/test/tools/dxil-dis/debug-info.ll
    A llvm/test/tools/dxil-dis/di-compile-unit.ll
    A llvm/test/tools/dxil-dis/di-subprogram.ll
    A llvm/test/tools/dxil-dis/di-subrotine.ll
    A llvm/test/tools/dxil-dis/lit.local.cfg
    A llvm/test/tools/dxil-dis/metadata.ll
    A llvm/tools/dxil-dis/CMakeLists.txt

  Log Message:
  -----------
  Add DXIL Bitcode Writer and DXIL testing

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

Reviewed By: nikic

Differential Revision: https://reviews.llvm.org/D122082




More information about the All-commits mailing list