rust/compiler/rustc_codegen_ssa
León Orell Valerian Liehr a9dcd7f25d
Rollup merge of #130268 - RalfJung:simd-shuffle-idx-vector, r=compiler-errors
simd_shuffle: require index argument to be a vector

Remove some codegen hacks by forcing the SIMD shuffle `index` argument to be a vector, which means (thanks to https://github.com/rust-lang/rust/pull/128537) that it will automatically be passed as an immediate in LLVM. The only special-casing we still have is for the extra sanity-checks we add that ensure that the indices are all in-bounds. (And the GCC backend needs to do a bunch of work since the Rust intrinsic is modeled after what LLVM expects, which seems to be quite different from what GCC expects.)

Fixes https://github.com/rust-lang/rust/issues/128738, see that issue for more context.
2024-09-14 18:12:10 +02:00
..
src Rollup merge of #130268 - RalfJung:simd-shuffle-idx-vector, r=compiler-errors 2024-09-14 18:12:10 +02:00
Cargo.toml Update the wasm-component-ld binary dependency 2024-08-29 14:39:12 -07:00
messages.ftl simd_shuffle: require index argument to be a vector 2024-09-14 14:43:24 +02:00
README.md mv compiler to compiler/ 2020-08-30 18:45:07 +03:00

Please read the rustc-dev-guide chapter on Backend Agnostic Codegen.