diff options
| author | Sayantan Chakraborty <142906350+sayantn@users.noreply.github.com> | 2024-12-09 00:41:35 +0530 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-12-09 00:41:35 +0530 | 
| commit | 1220f393cc7a48001ce9080b3e863b15de260c7e (patch) | |
| tree | 72686990f2f04c7f48aa4880c37d8bb3f3cb6ddc /compiler/rustc_codegen_llvm/src | |
| parent | f33a8c6426074b7ce8d08740e9805fdca96ee150 (diff) | |
| download | rust-1220f393cc7a48001ce9080b3e863b15de260c7e.tar.gz rust-1220f393cc7a48001ce9080b3e863b15de260c7e.zip  | |
Add the `power8-crypto` target feature
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/llvm_util.rs | 3 | 
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler/rustc_codegen_llvm/src/llvm_util.rs b/compiler/rustc_codegen_llvm/src/llvm_util.rs index db2b03d9aed..07eb89e6041 100644 --- a/compiler/rustc_codegen_llvm/src/llvm_util.rs +++ b/compiler/rustc_codegen_llvm/src/llvm_util.rs @@ -230,6 +230,8 @@ pub(crate) fn to_llvm_features<'a>(sess: &Session, s: &'a str) -> Option<LLVMFea "aarch64" } else if sess.target.arch == "sparc64" { "sparc" + } else if sess.target.arch == "powerpc64" { + "powerpc" } else { &*sess.target.arch }; @@ -289,6 +291,7 @@ pub(crate) fn to_llvm_features<'a>(sess: &Session, s: &'a str) -> Option<LLVMFea // https://github.com/llvm/llvm-project/blob/llvmorg-18.1.0/llvm/lib/Target/Sparc/MCTargetDesc/SparcELFObjectWriter.cpp#L26 ("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")), (_, s) => Some(LLVMFeature::new(s)), } }  | 
