Home | History | Annotate | Download | only in ARM

Lines Matching refs:WhichResult

5367 // WhichResult gives the offset for each element in the mask based on which
5374 // (here WhichResult (see below) indicates which result is being checked)
5379 // as many elements as v1/v2 (here WhichResult will always be 0 if true) here we
5382 static bool isVTRNMask(ArrayRef<int> M, EVT VT, unsigned &WhichResult) {
5392 // upper and lower parts of the mask with a matching value for WhichResult
5395 // M[0] is used to determine WhichResult
5398 WhichResult = i / NumElts;
5400 WhichResult = M[i] == 0 ? 0 : 1;
5402 if ((M[i+j] >= 0 && (unsigned) M[i+j] != j + WhichResult) ||
5403 (M[i+j+1] >= 0 && (unsigned) M[i+j+1] != j + NumElts + WhichResult))
5409 WhichResult = 0;
5417 static bool isVTRN_v_undef_Mask(ArrayRef<int> M, EVT VT, unsigned &WhichResult){
5428 WhichResult = i / NumElts;
5430 WhichResult = M[i] == 0 ? 0 : 1;
5432 if ((M[i+j] >= 0 && (unsigned) M[i+j] != j + WhichResult) ||
5433 (M[i+j+1] >= 0 && (unsigned) M[i+j+1] != j + WhichResult))
5439 WhichResult = 0;
5452 static bool isVUZPMask(ArrayRef<int> M, EVT VT, unsigned &WhichResult) {
5462 WhichResult = M[i] == 0 ? 0 : 1;
5464 if (M[i+j] >= 0 && (unsigned) M[i+j] != 2 * j + WhichResult)
5470 WhichResult = 0;
5482 static bool isVUZP_v_undef_Mask(ArrayRef<int> M, EVT VT, unsigned &WhichResult){
5493 WhichResult = M[i] == 0 ? 0 : 1;
5495 unsigned Idx = WhichResult;
5506 WhichResult = 0;
5523 static bool isVZIPMask(ArrayRef<int> M, EVT VT, unsigned &WhichResult) {
5533 WhichResult = M[i] == 0 ? 0 : 1;
5534 unsigned Idx = WhichResult * NumElts / 2;
5544 WhichResult = 0;
5556 static bool isVZIP_v_undef_Mask(ArrayRef<int> M, EVT VT, unsigned &WhichResult){
5566 WhichResult = M[i] == 0 ? 0 : 1;
5567 unsigned Idx = WhichResult * NumElts / 2;
5577 WhichResult = 0;
5589 unsigned &WhichResult,
5592 if (isVTRNMask(ShuffleMask, VT, WhichResult))
5594 if (isVUZPMask(ShuffleMask, VT, WhichResult))
5596 if (isVZIPMask(ShuffleMask, VT, WhichResult))
5600 if (isVTRN_v_undef_Mask(ShuffleMask, VT, WhichResult))
5602 if (isVUZP_v_undef_Mask(ShuffleMask, VT, WhichResult))
5604 if (isVZIP_v_undef_Mask(ShuffleMask, VT, WhichResult))
6085 unsigned Imm, WhichResult;
6095 isNEONTwoResultShuffleMask(M, VT, WhichResult, isV_UNDEF) ||
6285 unsigned WhichResult;
6288 ShuffleMask, VT, WhichResult, isV_UNDEF)) {
6292 .getValue(WhichResult);
6321 ShuffleMask, SubVT, WhichResult, isV_UNDEF)) {
6324 assert((WhichResult == 0) &&