diff options
| author | Caleb Zulawski <caleb.zulawski@gmail.com> | 2022-10-29 23:36:47 -0400 |
|---|---|---|
| committer | Caleb Zulawski <caleb.zulawski@gmail.com> | 2022-11-12 18:46:21 -0500 |
| commit | d7152f8eece1b38918270c1faab8059df9322ebf (patch) | |
| tree | af8658485356b310587936b53ff6c692d1289d57 /compiler/rustc_codegen_llvm/src | |
| parent | cd128880b13bc9f7a919567926e801c8a1487cdb (diff) | |
| download | rust-d7152f8eece1b38918270c1faab8059df9322ebf.tar.gz rust-d7152f8eece1b38918270c1faab8059df9322ebf.zip | |
Allow actual AVX512-related feature names in the case of some misleading aliases
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 e1f54356228..78eb64c5bbf 100644 --- a/compiler/rustc_codegen_llvm/src/llvm_util.rs +++ b/compiler/rustc_codegen_llvm/src/llvm_util.rs @@ -163,6 +163,9 @@ pub fn to_llvm_features<'a>(sess: &Session, s: &'a str) -> SmallVec<[&'a str; 2] ("x86", "rdrand") => smallvec!["rdrnd"], ("x86", "bmi1") => smallvec!["bmi"], ("x86", "cmpxchg16b") => smallvec!["cx16"], + // FIXME: These aliases are misleading, and should be removed before avx512_target_feature is + // stabilized. For now, they must be kept at a minimum because std::arch uses them. + // rust#100752 ("x86", "avx512vaes") => smallvec!["vaes"], ("x86", "avx512gfni") => smallvec!["gfni"], ("x86", "avx512vpclmulqdq") => smallvec!["vpclmulqdq"], |
