[llvm] [DXIL] Add DXIL SubArch to correspond to version number (PR #89125)
Damyan Pepper via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 17 12:56:04 PDT 2024
================
@@ -740,6 +742,19 @@ static Triple::SubArchType parseSubArch(StringRef SubArchName) {
.EndsWith("v1.6", Triple::SPIRVSubArch_v16)
.Default(Triple::NoSubArch);
+ if (SubArchName.starts_with("dxil"))
+ return StringSwitch<Triple::SubArchType>(SubArchName)
+ .EndsWith("v1.0", Triple::DXILSubArch_v10)
+ .EndsWith("v1.1", Triple::DXILSubArch_v11)
+ .EndsWith("v1.2", Triple::DXILSubArch_v12)
----------------
damyanp wrote:
does it matter than this would match something like "dxilborkborkborkv1.2"?
https://github.com/llvm/llvm-project/pull/89125
More information about the llvm-commits
mailing list