[all-commits] [llvm/llvm-project] d401a9: [DirectX] Embed DXIL in LLVM Module

Chris B via All-commits all-commits at lists.llvm.org
Mon Jun 6 13:04:43 PDT 2022


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

  Changed paths:
    M llvm/lib/Target/DirectX/DXILWriter/CMakeLists.txt
    M llvm/lib/Target/DirectX/DXILWriter/DXILWriterPass.cpp
    M llvm/lib/Target/DirectX/DXILWriter/DXILWriterPass.h
    M llvm/lib/Target/DirectX/DirectX.h
    M llvm/lib/Target/DirectX/DirectXTargetMachine.cpp
    A llvm/test/CodeGen/DirectX/embed-dxil.ll

  Log Message:
  -----------
  [DirectX] Embed DXIL in LLVM Module

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

Reviewed By: kuhar

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




More information about the All-commits mailing list