mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-26 04:34:41 +00:00
we have a shuffle instr, add an example.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27592 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
df3c33c57e
commit
95c7570f32
@ -96,11 +96,6 @@ instructions.
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
We need an LLVM 'shuffle' instruction, that corresponds to the VECTOR_SHUFFLE
|
||||
node.
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
We need a way to teach tblgen that some operands of an intrinsic are required to
|
||||
be constants. The verifier should enforce this constraint.
|
||||
|
||||
@ -133,4 +128,10 @@ There are a wide variety of vector_shuffle operations that we can do with a pair
|
||||
of instructions (e.g. a vsldoi + vpkuhum). We should pattern match these, but
|
||||
there are a huge number of these.
|
||||
|
||||
Specific examples:
|
||||
|
||||
C = vector_shuffle A, B, <0, 1, 2, 4>
|
||||
-> t = vsldoi A, A, 12
|
||||
-> C = vsldoi A, B, 4
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
Loading…
x
Reference in New Issue
Block a user