[WebAssembly] Add SIMD const_splat intrinsics
authorThomas Lively <tlively@google.com>
Wed, 5 May 2021 20:46:45 +0000 (13:46 -0700)
committerThomas Lively <tlively@google.com>
Wed, 5 May 2021 20:46:45 +0000 (13:46 -0700)
commit81fce29d6e1f0a83e8a4170c7f24cdd93869d55a
treef3737857a7e51d2f456fd602d2c1776e631ecbe7
parent662a58fa0534508c2c37b22425bfdf16b9d985a8
[WebAssembly] Add SIMD const_splat intrinsics

These intrinsics do not correspond to their own underlying instruction, but are
a convenience for the common case of materializing a constant vector that has
the same value in each lane.

Differential Revision: https://reviews.llvm.org/D101885
clang/lib/Headers/wasm_simd128.h
clang/test/Headers/wasm.c