[PATCH] D51659: [WebAssembly] v8x16.shuffle

Thomas Lively via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 4 14:15:47 PDT 2018


tlively created this revision.
tlively added reviewers: aheejin, dschuff.
Herald added subscribers: llvm-commits, sunfish, jgravelle-google, sbc100.

Since the shuffle mask is not exposed as an operand in the native ISel
DAG, create a new WebAssembly ISD node exposing the mask. The mask is
lowered as sixteen immediate byte indices no matter what type the
original vector shuffle was operating on.

This CL depends on https://reviews.llvm.org/D51656


Repository:
  rL LLVM

https://reviews.llvm.org/D51659

Files:
  lib/Target/WebAssembly/WebAssemblyISD.def
  lib/Target/WebAssembly/WebAssemblyISelLowering.cpp
  lib/Target/WebAssembly/WebAssemblyISelLowering.h
  lib/Target/WebAssembly/WebAssemblyInstrSIMD.td
  test/CodeGen/WebAssembly/simd.ll
  test/MC/Disassembler/WebAssembly/wasm.txt

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D51659.163916.patch
Type: text/x-patch
Size: 11888 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180904/6a2fa51c/attachment.bin>


More information about the llvm-commits mailing list