Lines Matching defs:WhichResult

7372 // WhichResult gives the offset for each element in the mask based on which
7379 // (here WhichResult (see below) indicates which result is being checked)
7384 // as many elements as v1/v2 (here WhichResult will always be 0 if true) here we
7387 static bool isVTRNMask(ArrayRef<int> M, EVT VT, unsigned &WhichResult) {
7397 // upper and lower parts of the mask with a matching value for WhichResult
7400 // M[0] is used to determine WhichResult
7402 WhichResult = SelectPairHalf(NumElts, M, i);
7404 if ((M[i+j] >= 0 && (unsigned) M[i+j] != j + WhichResult) ||
7405 (M[i+j+1] >= 0 && (unsigned) M[i+j+1] != j + NumElts + WhichResult))
7411 WhichResult = 0;
7419 static bool isVTRN_v_undef_Mask(ArrayRef<int> M, EVT VT, unsigned &WhichResult){
7429 WhichResult = SelectPairHalf(NumElts, M, i);
7431 if ((M[i+j] >= 0 && (unsigned) M[i+j] != j + WhichResult) ||
7432 (M[i+j+1] >= 0 && (unsigned) M[i+j+1] != j + WhichResult))
7438 WhichResult = 0;
7451 static bool isVUZPMask(ArrayRef<int> M, EVT VT, unsigned &WhichResult) {
7461 WhichResult = SelectPairHalf(NumElts, M, i);
7463 if (M[i+j] >= 0 && (unsigned) M[i+j] != 2 * j + WhichResult)
7469 WhichResult = 0;
7481 static bool isVUZP_v_undef_Mask(ArrayRef<int> M, EVT VT, unsigned &WhichResult){
7492 WhichResult = SelectPairHalf(NumElts, M, i);
7494 unsigned Idx = WhichResult;
7505 WhichResult = 0;
7522 static bool isVZIPMask(ArrayRef<int> M, EVT VT, unsigned &WhichResult) {
7532 WhichResult = SelectPairHalf(NumElts, M, i);
7533 unsigned Idx = WhichResult * NumElts / 2;
7543 WhichResult = 0;
7555 static bool isVZIP_v_undef_Mask(ArrayRef<int> M, EVT VT, unsigned &WhichResult){
7565 WhichResult = SelectPairHalf(NumElts, M, i);
7566 unsigned Idx = WhichResult * NumElts / 2;
7576 WhichResult = 0;
7588 unsigned &WhichResult,
7591 if (isVTRNMask(ShuffleMask, VT, WhichResult))
7593 if (isVUZPMask(ShuffleMask, VT, WhichResult))
7595 if (isVZIPMask(ShuffleMask, VT, WhichResult))
7599 if (isVTRN_v_undef_Mask(ShuffleMask, VT, WhichResult))
7601 if (isVUZP_v_undef_Mask(ShuffleMask, VT, WhichResult))
7603 if (isVZIP_v_undef_Mask(ShuffleMask, VT, WhichResult))
8478 unsigned Imm, WhichResult;
8491 isNEONTwoResultShuffleMask(M, VT, WhichResult, isV_UNDEF)))
8920 unsigned WhichResult = 0;
8924 ShuffleMask, VT, WhichResult, isV_UNDEF)) {
8928 .getValue(WhichResult);
8969 ShuffleMask, SubVT, WhichResult, isV_UNDEF)) {
8972 assert((WhichResult == 0) &&