[WebAssembly] Replace SIMD int min/max builtins with patterns
authorThomas Lively <tlively@google.com>
Sat, 14 Dec 2019 01:08:04 +0000 (17:08 -0800)
committerThomas Lively <tlively@google.com>
Mon, 16 Dec 2019 19:48:49 +0000 (11:48 -0800)
commit3a93756dfbb0dcb7c62fcbe5b0ab8f8591fc9721
tree25092e97aee0e2bc19cf499520ed7693722f9e56
parentcc802ea67beb66d2f8a935e647c3aedcf7848211
[WebAssembly] Replace SIMD int min/max builtins with patterns

Summary:
The instructions were originally implemented via builtins and
intrinsics so users would have to explicitly opt-in to using
them. This was useful while were validating whether these instructions
should have been merged into the spec proposal. Now that they have
been, we can use normal codegen patterns, so the intrinsics and
builtins are no longer useful.

Reviewers: aheejin

Subscribers: dschuff, sbc100, jgravelle-google, hiraditya, sunfish, cfe-commits, llvm-commits

Tags: #clang, #llvm

Differential Revision: https://reviews.llvm.org/D71500
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/WebAssemblyISelLowering.cpp
llvm/lib/Target/WebAssembly/WebAssemblyInstrSIMD.td
llvm/test/CodeGen/WebAssembly/simd-arith.ll
llvm/test/CodeGen/WebAssembly/simd-intrinsics.ll