Lines Matching refs:NumElts
179 unsigned NumElts = Ext.getVectorOperandType()->getNumElements(); in foldBitcastExtElt() local
180 if (NumSrcElts == NumElts) in foldBitcastExtElt()
186 if (NumSrcElts < NumElts) { in foldBitcastExtElt()
197 unsigned NarrowingRatio = NumElts / NumSrcElts; in foldBitcastExtElt()
268 unsigned NumElts = EI.getVectorOperandType()->getNumElements(); in visitExtractElementInst() local
271 if (!IndexC->getValue().ule(NumElts)) in visitExtractElementInst()
277 if (SrcVec->hasOneUse() && NumElts != 1) { in visitExtractElementInst()
278 APInt UndefElts(NumElts, 0); in visitExtractElementInst()
279 APInt DemandedElts(NumElts, 0); in visitExtractElementInst()
371 unsigned NumElts = V->getType()->getVectorNumElements(); in collectSingleShuffleElements() local
374 Mask.assign(NumElts, UndefValue::get(Type::getInt32Ty(V->getContext()))); in collectSingleShuffleElements()
379 for (unsigned i = 0; i != NumElts; ++i) in collectSingleShuffleElements()
385 for (unsigned i = 0; i != NumElts; ++i) in collectSingleShuffleElements()
387 i+NumElts)); in collectSingleShuffleElements()
422 Mask[InsertedIdx % NumElts] = in collectSingleShuffleElements()
427 Mask[InsertedIdx % NumElts] = in collectSingleShuffleElements()
533 unsigned NumElts = V->getType()->getVectorNumElements(); in collectShuffleElements() local
536 Mask.assign(NumElts, UndefValue::get(Type::getInt32Ty(V->getContext()))); in collectShuffleElements()
542 Mask.assign(NumElts, ConstantInt::get(Type::getInt32Ty(V->getContext()),0)); in collectShuffleElements()
572 for (unsigned i = 0; i < NumElts; ++i) in collectShuffleElements()
578 Mask[InsertedIdx % NumElts] = in collectShuffleElements()
589 for (unsigned i = 0; i != NumElts; ++i) in collectShuffleElements()
607 for (unsigned i = 0; i != NumElts; ++i) in collectShuffleElements()
794 unsigned NumElts = Mask->getType()->getVectorNumElements(); in foldConstantInsEltIntoShuffle() local
795 SmallVector<Constant *, 16> NewShufElts(NumElts); in foldConstantInsEltIntoShuffle()
796 SmallVector<Constant *, 16> NewMaskElts(NumElts); in foldConstantInsEltIntoShuffle()
797 for (unsigned I = 0; I != NumElts; ++I) { in foldConstantInsEltIntoShuffle()
801 NewMaskElts[I] = ConstantInt::get(Int32Ty, InsEltIndex + NumElts); in foldConstantInsEltIntoShuffle()
817 unsigned NumElts = InsElt.getType()->getNumElements(); in foldConstantInsEltIntoShuffle() local
826 SmallVector<Constant *, 16> Values(NumElts); in foldConstantInsEltIntoShuffle()
827 SmallVector<Constant *, 16> Mask(NumElts); in foldConstantInsEltIntoShuffle()
837 NumElts + I); in foldConstantInsEltIntoShuffle()
842 for (unsigned I = 0; I < NumElts; ++I) { in foldConstantInsEltIntoShuffle()
1513 unsigned NumElts = Shuf.getType()->getVectorNumElements(); in foldIdentityExtractShuffle() local
1514 SmallVector<Constant *, 16> NewMask(NumElts); in foldIdentityExtractShuffle()
1515 assert(NumElts < Mask->getType()->getVectorNumElements() && in foldIdentityExtractShuffle()
1518 for (unsigned i = 0; i != NumElts; ++i) { in foldIdentityExtractShuffle()
1534 int NumElts = Mask.size(); in foldShuffleWithInsert() local
1535 if (NumElts != (int)(V0->getType()->getVectorNumElements())) in foldShuffleWithInsert()
1548 for (int i = 0; i != NumElts; ++i) { in foldShuffleWithInsert()
1554 if (Mask[i] == NumElts + i) in foldShuffleWithInsert()
1584 ShuffleVectorInst::commuteShuffleMask(Mask, NumElts); in foldShuffleWithInsert()