about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/common.rs
diff options
context:
space:
mode:
authorMara Bos <m-ou.se@m-ou.se>2020-11-18 15:46:19 +0100
committerGitHub <noreply@github.com>2020-11-18 15:46:19 +0100
commitc7e9029b8064a48a983040937bae056617729980 (patch)
treea246262374abf0ce41c53b6d0969929c0a9f6a5a /compiler/rustc_codegen_llvm/src/common.rs
parent7d747db0d5dd8f08f2efb073e2e77a34553465a7 (diff)
parent72b83af2ffadbc98fee52481c7168b0b644d73db (diff)
downloadrust-c7e9029b8064a48a983040937bae056617729980.tar.gz
rust-c7e9029b8064a48a983040937bae056617729980.zip
Rollup merge of #78361 - DevJPM:master, r=workingjubilee
Updated the list of white-listed target features for x86

This PR both adds in-source documentation on what to look out for when adding a new (X86) feature set and [adds all that are detectable at run-time in Rust stable as of 1.27.0](https://github.com/rust-lang/stdarch/blob/master/crates/std_detect/src/detect/arch/x86.rs).

This should only enable the use of the corresponding LLVM intrinsics.
Actual intrinsics need to be added separately in rust-lang/stdarch.

It also re-orders the run-time-detect test statements to be more consistent
with the actual list of intrinsics whitelisted and removes underscores not present
in the actual names (which might be mistaken as being part of the name)

The reference for LLVM's feature names used is [this file](https://github.com/llvm/llvm-project/blob/master/llvm/include/llvm/Support/X86TargetParser.def).

This PR was motivated as the compiler end's part for allowing #67329 to be adressed over on rust-lang/stdarch
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/common.rs')
0 files changed, 0 insertions, 0 deletions