[all-commits] [llvm/llvm-project] 2af61e: [DirectX] Add DirectX target object writer

Chris B via All-commits all-commits at lists.llvm.org
Fri Jun 17 19:33:24 PDT 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2af61e620eeae6d248c37eee096200016bc102f9
  Author: Chris Bieneman <chris.bieneman at me.com>
  Date:   2022-06-17 (Fri, 17 Jun 2022)

  Changed paths:
    M llvm/lib/Target/DirectX/DirectXSubtarget.cpp
    M llvm/lib/Target/DirectX/DirectXSubtarget.h
    M llvm/lib/Target/DirectX/DirectXTargetMachine.cpp
    M llvm/lib/Target/DirectX/MCTargetDesc/CMakeLists.txt
    A llvm/lib/Target/DirectX/MCTargetDesc/DirectXContainerObjectWriter.cpp
    A llvm/lib/Target/DirectX/MCTargetDesc/DirectXContainerObjectWriter.h
    M llvm/lib/Target/DirectX/MCTargetDesc/DirectXMCTargetDesc.cpp
    M llvm/test/CodeGen/DirectX/embed-dxil.ll

  Log Message:
  [DirectX] Add DirectX target object writer

This is the last piece to bring together writing DXContainer files
containing DXIL through the DirectX backend.

While this change only has one test, all of the tests under
llvm/test/tools/dxil-dis also exercise this code. With this change the
output object file type for the dxil target is now DXContainer. Each of
the existing tests will generate DXContainer files, and the dxil-dis
tests additionally verify that the DXContainers generated are
well-formed and can be parsed by the DirectXShaderCompiler tools.

Depends on D127153 and D127165

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

More information about the All-commits mailing list