Lines Matching refs:Factor
122 static bool isDeInterleaveMaskOfFactor(ArrayRef<int> Mask, unsigned Factor, in isDeInterleaveMaskOfFactor() argument
125 for (Index = 0; Index < Factor; Index++) { in isDeInterleaveMaskOfFactor()
131 if (Mask[i] >= 0 && static_cast<unsigned>(Mask[i]) != Index + i * Factor) in isDeInterleaveMaskOfFactor()
146 static bool isDeInterleaveMask(ArrayRef<int> Mask, unsigned &Factor, in isDeInterleaveMask() argument
152 for (Factor = 2; Factor <= MaxFactor; Factor++) in isDeInterleaveMask()
153 if (isDeInterleaveMaskOfFactor(Mask, Factor, Index)) in isDeInterleaveMask()
165 static bool isReInterleaveMask(ArrayRef<int> Mask, unsigned &Factor) { in isReInterleaveMask() argument
171 for (Factor = 2; Factor <= MaxFactor; Factor++) { in isReInterleaveMask()
172 if (NumElts % Factor) in isReInterleaveMask()
175 unsigned NumSubElts = NumElts / Factor; in isReInterleaveMask()
185 (i % Factor) * NumSubElts + i / Factor) in isReInterleaveMask()
224 unsigned Factor, Index; in lowerInterleavedLoad() local
227 if (!isDeInterleaveMask(Shuffles[0]->getShuffleMask(), Factor, Index)) in lowerInterleavedLoad()
242 if (!isDeInterleaveMaskOfFactor(Shuffles[i]->getShuffleMask(), Factor, in lowerInterleavedLoad()
257 if (!TLI->lowerInterleavedLoad(LI, Shuffles, Indices, Factor)) in lowerInterleavedLoad()
344 unsigned Factor; in lowerInterleavedStore() local
345 if (!isReInterleaveMask(SVI->getShuffleMask(), Factor)) in lowerInterleavedStore()
351 if (!TLI->lowerInterleavedStore(SI, SVI, Factor)) in lowerInterleavedStore()