[PATCH] D75770: [WebAssembly] Add SIMD integer min/max builtins

Thomas Lively via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Mar 6 13:15:49 PST 2020


tlively created this revision.
tlively added reviewers: aheejin, dschuff, kripken.
Herald added subscribers: cfe-commits, sunfish, jgravelle-google, sbc100.
Herald added a project: clang.

Although SIMD integer min/max operations can be expressed using the ?:
operator in C++, that operator is disallowed for vectors in C. As a
workaround, this change introduces new WebAssembly-specific builtin
functions that lower to the desired vector icmp/select sequences.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D75770

Files:
  clang/include/clang/Basic/BuiltinsWebAssembly.def
  clang/lib/CodeGen/CGBuiltin.cpp
  clang/test/CodeGen/builtins-wasm.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D75770.248812.patch
Type: text/x-patch
Size: 7207 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200306/d2e9995f/attachment-0001.bin>


More information about the cfe-commits mailing list