diff options
| author | Luuk de Gram <luuk@degram.dev> | 2022-12-08 21:18:11 +0100 |
|---|---|---|
| committer | Luuk de Gram <luuk@degram.dev> | 2022-12-12 17:42:00 +0100 |
| commit | c6d654f73bbe80ed3653be6a31ddcaa4772a4fe2 (patch) | |
| tree | 04c166bceaea1df0044582297f0332291e23119e /src/codegen.zig | |
| parent | db06eed7a3e741a319182b2e4edc889b83787962 (diff) | |
| download | zig-c6d654f73bbe80ed3653be6a31ddcaa4772a4fe2.tar.gz zig-c6d654f73bbe80ed3653be6a31ddcaa4772a4fe2.zip | |
wasm: implement the 'splat' instruction part 1
This implements `airSplat` for the native WebAssembly backend when
the features 'simd128' or 'relaxed-simd' are enabled. The commit
supports splat where the value lives in the linear memory segment,
as well as on the stack. This saves a lot of instruction cost.
When it detects the element type is not 8, 16, 32 or 64 bits,
the backend will instead use the same strategy as if the features
where disabled.
Diffstat (limited to 'src/codegen.zig')
0 files changed, 0 insertions, 0 deletions
