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

Xiang Li via llvm-commits llvm-commits at lists.llvm.org
Tue May 7 14:35:01 PDT 2024


================
@@ -1488,6 +1488,48 @@ VersionTuple Triple::getVulkanVersion() const {
   return VersionTuple(0);
 }
 
+VersionTuple Triple::getDXILVersion() const {
+  if (getArch() != dxil || getOS() != ShaderModel)
+    llvm_unreachable("invalid DXIL triple");
+
+  VersionTuple DXILVersion;
+  switch (getSubArch()) {
+  case Triple::NoSubArch:
+  case Triple::DXILSubArch_v1_0:
+    DXILVersion = VersionTuple(1, 0);
----------------
python3kgae wrote:

Updated.

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


More information about the llvm-commits mailing list