Lines Matching defs:WhichResult
7341 // WhichResult gives the offset for each element in the mask based on which
7348 // (here WhichResult (see below) indicates which result is being checked)
7353 // as many elements as v1/v2 (here WhichResult will always be 0 if true) here we
7356 static bool isVTRNMask(ArrayRef<int> M, EVT VT, unsigned &WhichResult) {
7366 // upper and lower parts of the mask with a matching value for WhichResult
7369 // M[0] is used to determine WhichResult
7371 WhichResult = SelectPairHalf(NumElts, M, i);
7373 if ((M[i+j] >= 0 && (unsigned) M[i+j] != j + WhichResult) ||
7374 (M[i+j+1] >= 0 && (unsigned) M[i+j+1] != j + NumElts + WhichResult))
7380 WhichResult = 0;
7388 static bool isVTRN_v_undef_Mask(ArrayRef<int> M, EVT VT, unsigned &WhichResult){
7398 WhichResult = SelectPairHalf(NumElts, M, i);
7400 if ((M[i+j] >= 0 && (unsigned) M[i+j] != j + WhichResult) ||
7401 (M[i+j+1] >= 0 && (unsigned) M[i+j+1] != j + WhichResult))
7407 WhichResult = 0;
7420 static bool isVUZPMask(ArrayRef<int> M, EVT VT, unsigned &WhichResult) {
7430 WhichResult = SelectPairHalf(NumElts, M, i);
7432 if (M[i+j] >= 0 && (unsigned) M[i+j] != 2 * j + WhichResult)
7438 WhichResult = 0;
7450 static bool isVUZP_v_undef_Mask(ArrayRef<int> M, EVT VT, unsigned &WhichResult){
7461 WhichResult = SelectPairHalf(NumElts, M, i);
7463 unsigned Idx = WhichResult;
7474 WhichResult = 0;
7491 static bool isVZIPMask(ArrayRef<int> M, EVT VT, unsigned &WhichResult) {
7501 WhichResult = SelectPairHalf(NumElts, M, i);
7502 unsigned Idx = WhichResult * NumElts / 2;
7512 WhichResult = 0;
7524 static bool isVZIP_v_undef_Mask(ArrayRef<int> M, EVT VT, unsigned &WhichResult){
7534 WhichResult = SelectPairHalf(NumElts, M, i);
7535 unsigned Idx = WhichResult * NumElts / 2;
7545 WhichResult = 0;
7557 unsigned &WhichResult,
7560 if (isVTRNMask(ShuffleMask, VT, WhichResult))
7562 if (isVUZPMask(ShuffleMask, VT, WhichResult))
7564 if (isVZIPMask(ShuffleMask, VT, WhichResult))
7568 if (isVTRN_v_undef_Mask(ShuffleMask, VT, WhichResult))
7570 if (isVUZP_v_undef_Mask(ShuffleMask, VT, WhichResult))
7572 if (isVZIP_v_undef_Mask(ShuffleMask, VT, WhichResult))
8445 unsigned Imm, WhichResult;
8458 isNEONTwoResultShuffleMask(M, VT, WhichResult, isV_UNDEF)))
8887 unsigned WhichResult = 0;
8891 ShuffleMask, VT, WhichResult, isV_UNDEF)) {
8895 .getValue(WhichResult);
8936 ShuffleMask, SubVT, WhichResult, isV_UNDEF)) {
8939 assert((WhichResult == 0) &&