[all-commits] [llvm/llvm-project] c861ea: Generate DXIL Shader hash

Chris B via All-commits all-commits at lists.llvm.org
Wed Dec 7 13:26:46 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c861ea8736bd8e624f8de6ab9ace90994744fa54
      https://github.com/llvm/llvm-project/commit/c861ea8736bd8e624f8de6ab9ace90994744fa54
  Author: Chris Bieneman <chris.bieneman at me.com>
  Date:   2022-12-07 (Wed, 07 Dec 2022)

  Changed paths:
    M llvm/lib/Target/DirectX/DXContainerGlobals.cpp
    A llvm/test/CodeGen/DirectX/ContainerData/DebugShaderHash.ll
    A llvm/test/CodeGen/DirectX/ContainerData/ShaderHash.ll

  Log Message:
  -----------
  Generate DXIL Shader hash

DXIL shader bitcode is hashed and the hash is placed into the final
output object file in its own data part.

This change modifies the DXContainerGlobals pass to compute the shader
hash (just an MD5 of the bitcode) and put the shader hash data into a
global for the HASH part.

This also sets the hash flag as appropriate for if the hashed shader
contained debug information. There is additional handling required to
get debug information in shaders working correctly with our tooling,
but that will be addressed in subsequent patches.

Reviewed By: python3kgae

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




More information about the All-commits mailing list