search for: sdtvecshuffle

Displaying 1 result from an estimated 1 matches for "sdtvecshuffle".

2010 Aug 04
2
[LLVMdev] x86 Vector Shuffle Patterns
..._shuffle node:$lhs, node:$rhs), [{ return X86::isSHUFPMask(cast<ShuffleVectorSDNode>(N)); }], SHUFFLE_get_shuf_imm>; First off, why does the vector_shuffle pattern take only two operands? I understand that the VECTOR_SHUFFLE node has three operands but vector_shuffle is defined as: def SDTVecShuffle : SDTypeProfile<1, 2, [ SDTCisSameAs<0, 1>, SDTCisSameAs<1, 2> ]>; def vector_shuffle : SDNode<"ISD::VECTOR_SHUFFLE", SDTVecShuffle, []>; So the pattern match is against the two input vectors, excluding the shuffle mask. Why is this? In the SHUFPS above the s...