[PATCH] D131545: [DirectX backend] emit metadata for DXIL version, ShaderModel.

Xiang Li via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 10 00:30:56 PDT 2022


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

Translate information saved in TargetTriple into named metadata for DXIL.
DXIL version with name "dx.version".
Shader model with name "dx.shaderModel".

Also set target triple to "dxil-ms-dx" for DXIL at the end of DXILTranslateMetadata.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D131545

Files:
  llvm/lib/Target/DirectX/DXILTranslateMetadata.cpp
  llvm/test/CodeGen/DirectX/dxil_metadata_emit.ll
  llvm/test/CodeGen/DirectX/dxil_ver.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D131545.451366.patch
Type: text/x-patch
Size: 4517 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220810/8e41e5a0/attachment.bin>


More information about the llvm-commits mailing list