[clang] [llvm] [DirectX][DXIL] Set DXIL Version in DXIL target triple based on shader model version (PR #90809)
Xiang Li via cfe-commits
cfe-commits at lists.llvm.org
Mon May 6 14:03:29 PDT 2024
================
@@ -2454,4 +2454,19 @@ TEST(TripleTest, isArmMClass) {
EXPECT_TRUE(T.isArmMClass());
}
}
+
+TEST(TripleTest, DXILNormaizeWithVersion) {
+ EXPECT_EQ("dxilv1.0-unknown-shadermodel6.0",
+ Triple::normalize("dxilv1.0--shadermodel6.0"));
----------------
python3kgae wrote:
Do we need a rule for what is legal or not?
https://github.com/llvm/llvm-project/pull/90809
More information about the cfe-commits
mailing list