cbe2522652
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` |
||
---|---|---|
.. | ||
abi | ||
debuginfo | ||
driver | ||
intrinsics | ||
optimize | ||
allocator.rs | ||
analyze.rs | ||
archive.rs | ||
base.rs | ||
cast.rs | ||
codegen_i128.rs | ||
common.rs | ||
compiler_builtins.rs | ||
concurrency_limiter.rs | ||
config.rs | ||
constant.rs | ||
discriminant.rs | ||
global_asm.rs | ||
inline_asm.rs | ||
lib.rs | ||
linkage.rs | ||
main_shim.rs | ||
num.rs | ||
pointer.rs | ||
pretty_clif.rs | ||
toolchain.rs | ||
trap.rs | ||
unsize.rs | ||
value_and_place.rs | ||
vtable.rs |