[PATCH] D134469: [DirectX] Add DXIL metadata `dx.shaderModel`

Chris Bieneman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 22 12:40:45 PDT 2022


beanz created this revision.
beanz added reviewers: bogner, python3kgae, pow2clk, tex3d.
Herald added a subscriber: hiraditya.
Herald added a project: All.
beanz requested review of this revision.
Herald added a project: LLVM.

This captures the target shader model and pipeline stage into the DXIL
metadata for consumption by the DirectX runtime.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D134469

Files:
  llvm/lib/Target/DirectX/DXILMetadata.cpp
  llvm/lib/Target/DirectX/DXILMetadata.h
  llvm/lib/Target/DirectX/DXILTranslateMetadata.cpp
  llvm/test/CodeGen/DirectX/Metadata/shaderModel-as.ll
  llvm/test/CodeGen/DirectX/Metadata/shaderModel-cs.ll
  llvm/test/CodeGen/DirectX/Metadata/shaderModel-gs.ll
  llvm/test/CodeGen/DirectX/Metadata/shaderModel-hs.ll
  llvm/test/CodeGen/DirectX/Metadata/shaderModel-lib.ll
  llvm/test/CodeGen/DirectX/Metadata/shaderModel-ms.ll
  llvm/test/CodeGen/DirectX/Metadata/shaderModel-noStage.ll
  llvm/test/CodeGen/DirectX/Metadata/shaderModel-ps.ll
  llvm/test/CodeGen/DirectX/Metadata/shaderModel-vs.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D134469.462268.patch
Type: text/x-patch
Size: 6034 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220922/5d45e06c/attachment.bin>


More information about the llvm-commits mailing list