[all-commits] [llvm/llvm-project] 72017f: [DirectX] Only embed dxil when writing object files

Justin Bogner via All-commits all-commits at lists.llvm.org
Wed Aug 16 13:13:44 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 72017fcf00b33b99aac604355d260910b1d57dfc
      https://github.com/llvm/llvm-project/commit/72017fcf00b33b99aac604355d260910b1d57dfc
  Author: Justin Bogner <mail at justinbogner.com>
  Date:   2023-08-16 (Wed, 16 Aug 2023)

  Changed paths:
    M llvm/lib/Target/DirectX/DirectXTargetMachine.cpp
    M llvm/test/CodeGen/DirectX/ContainerData/DebugShaderHash.ll
    M llvm/test/CodeGen/DirectX/ContainerData/ShaderHash.ll
    M llvm/test/CodeGen/DirectX/embed-dxil.ll

  Log Message:
  -----------
  [DirectX] Only embed dxil when writing object files

When emitting assembly we don't particularly want the binary DXIL
embedded in the output. This was mostly there for testing purposes, so
we update those tests to run the test directly using `opt` and
restrict the -dxil-embed and -dxil-globals passes to running normally
only in the case where we're trying to emit a DXContainer.

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




More information about the All-commits mailing list