Skip to content

Commit

Permalink
rustc_codegen_llvm: adapt for LLVM 20 changes
Browse files Browse the repository at this point in the history
No functional changes intended.

LLVM 20 uses a different name for this feature.
  • Loading branch information
krasimirgg committed Sep 2, 2024
1 parent 9b82580 commit b6bff4d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion compiler/rustc_codegen_llvm/src/llvm_util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,8 @@ pub(crate) fn to_llvm_features<'a>(sess: &Session, s: &'a str) -> Option<LLVMFea
("aarch64", "pmuv3") => Some(LLVMFeature::new("perfmon")),
("aarch64", "paca") => Some(LLVMFeature::new("pauth")),
("aarch64", "pacg") => Some(LLVMFeature::new("pauth")),
("aarch64", "sve-b16b16") => Some(LLVMFeature::new("b16b16")),
("aarch64", "sve-b16b16") => Some(LLVMFeature::new(
if get_version().0 < 20 { "b16b16" } else { "sve-b16b16" } )),
("aarch64", "flagm2") => Some(LLVMFeature::new("altnzcv")),
// Rust ties fp and neon together.
("aarch64", "neon") => {
Expand Down

0 comments on commit b6bff4d

Please sign in to comment.