[llvm] [DirectX backend] emits metadata for DXIL version. (PR #88350)

S. Bharadwaj Yadavalli via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 12 14:46:30 PDT 2024


================
@@ -81,6 +81,18 @@ void dxil::createShaderModelMD(Module &M) {
   Entry->addOperand(MDNode::get(Ctx, Vals));
 }
 
+void dxil::createDXILVersionMD(Module &M) {
+  Triple TT(M.getTargetTriple());
+  VersionTuple Ver = TT.getOSVersion();
----------------
bharadwajy wrote:

What are the anticipated benefits of separating the Shader Model version number and DXIL version number, given the future plans for the evolution of HLSL and DXIL?

https://github.com/llvm/llvm-project/pull/88350


More information about the llvm-commits mailing list