1
Fork 0
rust/compiler/rustc_codegen_ssa/src
Yuki Okushi 46b8e46fe1
Rollup merge of #78396 - josephlr:ermsb, r=petrochenkov
Add compiler support for LLVM's x86_64 ERMSB feature

This change is needed for compiler-builtins to check for this feature
when implementing memcpy/memset. See:
  https://github.com/rust-lang/compiler-builtins/pull/365

Without this change, the following code compiles, but does nothing:
```rust
#[cfg(target_feature = "ermsb")]
pub unsafe fn ermsb_memcpy() { ... }
```

The change just does compile-time detection. I think that runtime
detection will have to come in a follow-up CL to std-detect.

Like all the CPU feature flags, this just references #44839

Signed-off-by: Joe Richey <joerichey@google.com>
2020-10-27 08:45:24 +09:00
..
back Remove rustc_session::config::Config 2020-10-15 12:02:24 +02:00
coverageinfo Updates to experimental coverage counter injection 2020-10-05 08:02:58 -07:00
debuginfo Replace target.target with target and target.ptr_width with target.pointer_width 2020-10-15 12:02:24 +02:00
mir Auto merge of #68965 - eddyb:mir-inline-scope, r=nagisa,oli-obk 2020-10-26 18:50:22 +00:00
traits Auto merge of #68965 - eddyb:mir-inline-scope, r=nagisa,oli-obk 2020-10-26 18:50:22 +00:00
base.rs Replace target.target with target and target.ptr_width with target.pointer_width 2020-10-15 12:02:24 +02:00
common.rs Remove unused #[allow(...)] statements from compiler/ 2020-09-26 01:25:55 +02:00
glue.rs Change ty.kind to a method 2020-09-04 17:47:51 +02:00
lib.rs Move finalize_session_directory call out of cg_llvm 2020-10-10 15:20:35 +02:00
meth.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
mono_item.rs ty: remove obsolete printer 2020-08-30 18:59:07 +01:00
target_features.rs Add compiler support for LLVM's x86 ERMSB feature 2020-10-26 03:46:54 -07:00