diff options
author | Thomas Lively <tlively@google.com> | 2019-10-09 17:45:47 +0000 |
---|---|---|
committer | Thomas Lively <tlively@google.com> | 2019-10-09 17:45:47 +0000 |
commit | bcf02e2dea95f7741edf9a5b5c0a9a6e6ad2703e (patch) | |
tree | b7dbcfb349cb96f3c343d7bd4f9ba26c2185f5e5 /lib/CodeGen/CGExprConstant.cpp | |
parent | efd8c82e8735a6b31605a8fb2b1acd44b2c044ef (diff) | |
download | clang-bcf02e2dea95f7741edf9a5b5c0a9a6e6ad2703e.tar.gz |
[WebAssembly] Add builtin and intrinsic for v8x16.swizzle
Summary:
This clang builtin and corresponding LLVM intrinsic are necessary to
expose the exact semantics of the underlying WebAssembly instruction
to users. LLVM produces a poison value if the dynamic swizzle indices
are greater than the vector size, but the WebAssembly instruction sets
the corresponding output lane to zero. Users who depend on this
behavior can safely use this builtin.
Depends on D68527.
Reviewers: aheejin, dschuff
Subscribers: sbc100, jgravelle-google, hiraditya, sunfish, cfe-commits, llvm-commits
Tags: #clang, #llvm
Differential Revision: https://reviews.llvm.org/D68531
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@374189 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExprConstant.cpp')
0 files changed, 0 insertions, 0 deletions