diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2023-08-07 05:29:12 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-08-07 05:29:12 +0200 |
| commit | 5dd98a4eb1af02defa2ca86d79f54b6837b50c33 (patch) | |
| tree | 076c3840f7fe8d7b22566cfff4b1ffefb1841d72 /compiler/rustc_codegen_llvm/src/llvm/mod.rs | |
| parent | 3f92261579e5b03265f1f7e2ce759b7a1c06530f (diff) | |
| parent | 659fabde50c185a4ea62aa333b05e313bea247a0 (diff) | |
| download | rust-5dd98a4eb1af02defa2ca86d79f54b6837b50c33.tar.gz rust-5dd98a4eb1af02defa2ca86d79f54b6837b50c33.zip | |
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`
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/llvm/mod.rs')
0 files changed, 0 insertions, 0 deletions
