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

Xiang Li via llvm-commits llvm-commits at lists.llvm.org
Tue May 7 15:47:50 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();
----------------
python3kgae wrote:

Issue https://github.com/llvm/llvm-project/issues/91388 is created to track validation of dxil version and shader model.

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


More information about the llvm-commits mailing list