[WebAssembly] Prototype extending pairwise add instructions
authorThomas Lively <tlively@google.com>
Mon, 28 Dec 2020 22:11:14 +0000 (14:11 -0800)
committerThomas Lively <tlively@google.com>
Mon, 28 Dec 2020 22:11:14 +0000 (14:11 -0800)
commit5e09e9979bc60f0fca0e80e7f72f1260bd1bbca5
tree975324c741b19f1afe54310ceaab3ef1f198899e
parent6c36286a2e180443005d31a9cec2ca182963bcad
[WebAssembly] Prototype extending pairwise add instructions

As proposed in https://github.com/WebAssembly/simd/pull/380. This commit makes
the new instructions available only via clang builtins and LLVM intrinsics to
make their use opt-in while they are still being evaluated for inclusion in the
SIMD proposal.

Depends on D93771.

Differential Revision: https://reviews.llvm.org/D93775
clang/include/clang/Basic/BuiltinsWebAssembly.def
clang/lib/CodeGen/CGBuiltin.cpp
clang/test/CodeGen/builtins-wasm.c
llvm/include/llvm/IR/IntrinsicsWebAssembly.td
llvm/lib/Target/WebAssembly/WebAssemblyInstrSIMD.td
llvm/test/CodeGen/WebAssembly/simd-intrinsics.ll
llvm/test/MC/WebAssembly/simd-encodings.s