Lines Matching refs:Mask
92 static bool isReverseVectorMask(SmallVectorImpl<int> &Mask) { in isReverseVectorMask() argument
93 for (unsigned i = 0, MaskSize = Mask.size(); i < MaskSize; ++i) in isReverseVectorMask()
94 if (Mask[i] > 0 && Mask[i] != (int)(MaskSize - 1 - i)) in isReverseVectorMask()
99 static bool isAlternateVectorMask(SmallVectorImpl<int> &Mask) { in isAlternateVectorMask() argument
101 unsigned MaskSize = Mask.size(); in isAlternateVectorMask()
105 if (Mask[i] < 0) in isAlternateVectorMask()
107 isAlternate = Mask[i] == (int)((i & 1) ? MaskSize + i : i); in isAlternateVectorMask()
116 if (Mask[i] < 0) in isAlternateVectorMask()
118 isAlternate = Mask[i] == (int)((i & 1) ? i : MaskSize + i); in isAlternateVectorMask()
147 SmallVector<int, 32> Mask(SI->getType()->getVectorNumElements(), -1); in matchPairwiseShuffleMask() local
152 Mask[i] = val; in matchPairwiseShuffleMask()
155 return Mask == ActualMask; in matchPairwiseShuffleMask()
364 SmallVector<int, 16> Mask = Shuffle->getShuffleMask(); in matchVectorSplittingReduction() local
365 if (ShuffleMask != Mask) in matchVectorSplittingReduction()
488 SmallVector<int, 16> Mask = Shuffle->getShuffleMask(); in getInstructionCost() local
490 if (NumVecElems == Mask.size()) { in getInstructionCost()
491 if (isReverseVectorMask(Mask)) in getInstructionCost()
494 if (isAlternateVectorMask(Mask)) in getInstructionCost()