Lines Matching refs:WhichResult
5127 static bool isZIPMask(ArrayRef<int> M, EVT VT, unsigned &WhichResult) {
5129 WhichResult = (M[0] == 0 ? 0 : 1);
5130 unsigned Idx = WhichResult * NumElts / 2;
5141 static bool isUZPMask(ArrayRef<int> M, EVT VT, unsigned &WhichResult) {
5143 WhichResult = (M[0] == 0 ? 0 : 1);
5147 if ((unsigned)M[i] != 2 * i + WhichResult)
5154 static bool isTRNMask(ArrayRef<int> M, EVT VT, unsigned &WhichResult) {
5156 WhichResult = (M[0] == 0 ? 0 : 1);
5158 if ((M[i] >= 0 && (unsigned)M[i] != i + WhichResult) ||
5159 (M[i + 1] >= 0 && (unsigned)M[i + 1] != i + NumElts + WhichResult))
5168 static bool isZIP_v_undef_Mask(ArrayRef<int> M, EVT VT, unsigned &WhichResult) {
5170 WhichResult = (M[0] == 0 ? 0 : 1);
5171 unsigned Idx = WhichResult * NumElts / 2;
5185 static bool isUZP_v_undef_Mask(ArrayRef<int> M, EVT VT, unsigned &WhichResult) {
5187 WhichResult = (M[0] == 0 ? 0 : 1);
5189 unsigned Idx = WhichResult;
5204 static bool isTRN_v_undef_Mask(ArrayRef<int> M, EVT VT, unsigned &WhichResult) {
5206 WhichResult = (M[0] == 0 ? 0 : 1);
5208 if ((M[i] >= 0 && (unsigned)M[i] != i + WhichResult) ||
5209 (M[i + 1] >= 0 && (unsigned)M[i + 1] != i + WhichResult))
5556 unsigned WhichResult;
5557 if (isZIPMask(ShuffleMask, VT, WhichResult)) {
5558 unsigned Opc = (WhichResult == 0) ? AArch64ISD::ZIP1 : AArch64ISD::ZIP2;
5561 if (isUZPMask(ShuffleMask, VT, WhichResult)) {
5562 unsigned Opc = (WhichResult == 0) ? AArch64ISD::UZP1 : AArch64ISD::UZP2;
5565 if (isTRNMask(ShuffleMask, VT, WhichResult)) {
5566 unsigned Opc = (WhichResult == 0) ? AArch64ISD::TRN1 : AArch64ISD::TRN2;
5570 if (isZIP_v_undef_Mask(ShuffleMask, VT, WhichResult)) {
5571 unsigned Opc = (WhichResult == 0) ? AArch64ISD::ZIP1 : AArch64ISD::ZIP2;
5574 if (isUZP_v_undef_Mask(ShuffleMask, VT, WhichResult)) {
5575 unsigned Opc = (WhichResult == 0) ? AArch64ISD::UZP1 : AArch64ISD::UZP2;
5578 if (isTRN_v_undef_Mask(ShuffleMask, VT, WhichResult)) {
5579 unsigned Opc = (WhichResult == 0) ? AArch64ISD::TRN1 : AArch64ISD::TRN2;