rust/compiler/rustc_codegen_cranelift/src
Matthias Krüger cbe2522652
Rollup merge of #114382 - scottmcm:compare-bytes-intrinsic, r=cjgillot
Add a new `compare_bytes` intrinsic instead of calling `memcmp` directly

As discussed in #113435, this lets the backends be the place that can have the "don't call the function if n == 0" logic, if it's needed for the target.  (I didn't actually *add* those checks, though, since as I understood it we didn't actually need them on known targets?)

Doing this also let me make it `const` (unstable), which I don't think `extern "C" fn memcmp` can be.

cc `@RalfJung` `@Amanieu`
2023-08-07 05:29:12 +02:00
..
abi Merge commit '1eded3619d0e55d57521a259bf27a03906fdfad0' into sync_cg_clif-2023-07-22 2023-07-22 13:32:34 +00:00
debuginfo Merge commit '1eded3619d0e55d57521a259bf27a03906fdfad0' into sync_cg_clif-2023-07-22 2023-07-22 13:32:34 +00:00
driver Merge commit '1eded3619d0e55d57521a259bf27a03906fdfad0' into sync_cg_clif-2023-07-22 2023-07-22 13:32:34 +00:00
intrinsics Apply suggestions from code review 2023-08-06 15:47:40 -07:00
optimize
allocator.rs Generate better function argument names in global_allocator expansion 2023-08-06 07:36:05 -07:00
analyze.rs
archive.rs
base.rs Merge commit '1eded3619d0e55d57521a259bf27a03906fdfad0' into sync_cg_clif-2023-07-22 2023-07-22 13:32:34 +00:00
cast.rs
codegen_i128.rs Move TyCtxt::mk_x to Ty::new_x where applicable 2023-07-05 20:27:07 +01:00
common.rs Fix ICE failed to get layout for ReferencesError 2023-08-05 01:38:14 +08:00
compiler_builtins.rs
concurrency_limiter.rs
config.rs
constant.rs refactor(rustc_middle): Substs -> GenericArg 2023-07-14 13:27:35 +01:00
discriminant.rs
global_asm.rs refactor(rustc_middle): Substs -> GenericArg 2023-07-14 13:27:35 +01:00
inline_asm.rs refactor(rustc_middle): Substs -> GenericArg 2023-07-14 13:27:35 +01:00
lib.rs Merge commit '1eded3619d0e55d57521a259bf27a03906fdfad0' into sync_cg_clif-2023-07-22 2023-07-22 13:32:34 +00:00
linkage.rs
main_shim.rs refactor(rustc_middle): Substs -> GenericArg 2023-07-14 13:27:35 +01:00
num.rs Move TyCtxt::mk_x to Ty::new_x where applicable 2023-07-05 20:27:07 +01:00
pointer.rs
pretty_clif.rs refactor(rustc_middle): Substs -> GenericArg 2023-07-14 13:27:35 +01:00
toolchain.rs
trap.rs
unsize.rs Rename adjustment::PointerCast and variants using it to PointerCoercion 2023-07-07 18:17:16 +02:00
value_and_place.rs Merge commit '1eded3619d0e55d57521a259bf27a03906fdfad0' into sync_cg_clif-2023-07-22 2023-07-22 13:32:34 +00:00
vtable.rs