Add the new amx target features

This commit is contained in:
sayantn 2025-03-04 20:07:25 +05:30
parent f9e0239a7b
commit 0ec1d460bb
3 changed files with 16 additions and 0 deletions

View file

@ -298,6 +298,12 @@ pub(crate) fn to_llvm_features<'a>(sess: &Session, s: &'a str) -> Option<LLVMFea
("sparc", "v8plus") if get_version().0 == 19 => Some(LLVMFeature::new("v9")),
("sparc", "v8plus") if get_version().0 < 19 => None,
("powerpc", "power8-crypto") => Some(LLVMFeature::new("crypto")),
// These new `amx` variants and `movrs` were introduced in LLVM20
("x86", "amx-avx512" | "amx-fp8" | "amx-movrs" | "amx-tf32" | "amx-transpose")
if get_version().0 < 20 =>
{
None
}
(_, s) => Some(LLVMFeature::new(s)),
}
}