Home | History | Annotate | Download | only in ARM

Lines Matching refs:WhichResult

5080 // WhichResult gives the offset for each element in the mask based on which
5087 // (here WhichResult (see below) indicates which result is being checked)
5092 // as many elements as v1/v2 (here WhichResult will always be 0 if true) here we
5095 static bool isVTRNMask(ArrayRef<int> M, EVT VT, unsigned &WhichResult) {
5105 // upper and lower parts of the mask with a matching value for WhichResult
5108 // M[0] is used to determine WhichResult
5111 WhichResult = i / NumElts;
5113 WhichResult = M[i] == 0 ? 0 : 1;
5115 if ((M[i+j] >= 0 && (unsigned) M[i+j] != j + WhichResult) ||
5116 (M[i+j+1] >= 0 && (unsigned) M[i+j+1] != j + NumElts + WhichResult))
5122 WhichResult = 0;
5130 static bool isVTRN_v_undef_Mask(ArrayRef<int> M, EVT VT, unsigned &WhichResult){
5141 WhichResult = i / NumElts;
5143 WhichResult = M[i] == 0 ? 0 : 1;
5145 if ((M[i+j] >= 0 && (unsigned) M[i+j] != j + WhichResult) ||
5146 (M[i+j+1] >= 0 && (unsigned) M[i+j+1] != j + WhichResult))
5152 WhichResult = 0;
5165 static bool isVUZPMask(ArrayRef<int> M, EVT VT, unsigned &WhichResult) {
5175 WhichResult = M[i] == 0 ? 0 : 1;
5177 if (M[i+j] >= 0 && (unsigned) M[i+j] != 2 * j + WhichResult)
5183 WhichResult = 0;
5195 static bool isVUZP_v_undef_Mask(ArrayRef<int> M, EVT VT, unsigned &WhichResult){
5206 WhichResult = M[i] == 0 ? 0 : 1;
5208 unsigned Idx = WhichResult;
5219 WhichResult = 0;
5236 static bool isVZIPMask(ArrayRef<int> M, EVT VT, unsigned &WhichResult) {
5246 WhichResult = M[i] == 0 ? 0 : 1;
5247 unsigned Idx = WhichResult * NumElts / 2;
5257 WhichResult = 0;
5269 static bool isVZIP_v_undef_Mask(ArrayRef<int> M, EVT VT, unsigned &WhichResult){
5279 WhichResult = M[i] == 0 ? 0 : 1;
5280 unsigned Idx = WhichResult * NumElts / 2;
5290 WhichResult = 0;
5302 unsigned &WhichResult,
5305 if (isVTRNMask(ShuffleMask, VT, WhichResult))
5307 if (isVUZPMask(ShuffleMask, VT, WhichResult))
5309 if (isVZIPMask(ShuffleMask, VT, WhichResult))
5313 if (isVTRN_v_undef_Mask(ShuffleMask, VT, WhichResult))
5315 if (isVUZP_v_undef_Mask(ShuffleMask, VT, WhichResult))
5317 if (isVZIP_v_undef_Mask(ShuffleMask, VT, WhichResult))
5798 unsigned Imm, WhichResult;
5808 isNEONTwoResultShuffleMask(M, VT, WhichResult, isV_UNDEF) ||
5999 unsigned WhichResult;
6002 ShuffleMask, VT, WhichResult, isV_UNDEF)) {
6006 .getValue(WhichResult);
6036 ShuffleMask, SubVT, WhichResult, isV_UNDEF)) {
6039 assert((WhichResult == 0) &&