about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-09-30 04:05:26 +0000
committerbors <bors@rust-lang.org>2023-09-30 04:05:26 +0000
commit81d219a27da790e44568364dc6136af34cb9933b (patch)
tree30e879c593650abcb04de328c9d0fa5ff304eccb /compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
parent809cd20618cce8fe9b128a35980d51cb458570d2 (diff)
parent6fd5dc8860dc0060b54a43dea07298142e6944f7 (diff)
downloadrust-81d219a27da790e44568364dc6136af34cb9933b.tar.gz
rust-81d219a27da790e44568364dc6136af34cb9933b.zip
Auto merge of #115933 - oli-obk:simd_shuffle_const, r=workingjubilee
Prototype using const generic for simd_shuffle IDX array

cc https://github.com/rust-lang/rust/issues/85229

r? `@workingjubilee` on the design

TLDR: there is now a `fn simd_shuffle_generic<T, U, const IDX: &'static [u32]>(x: T, y: T) -> U;` intrinsic that allows replacing

```rust
simd_shuffle(a, b, const { stuff })
```

with

```rust
simd_shuffle_generic::<_, _, {&stuff}>(a, b)
```

which makes the compiler implementations much simpler, if we manage to at some point eliminate `simd_shuffle`.

There are some issues with this today though (can't do math without bubbling it up in the generic arguments). With this change, we can start porting the simple cases and get better data on the others.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp')
0 files changed, 0 insertions, 0 deletions