Lines Matching refs:BeginIndex

1715   uint64_t BeginIndex = BeginOffset / ElementSize;  in isVectorPromotionViableForSlice()  local
1716 if (BeginIndex * ElementSize != BeginOffset || in isVectorPromotionViableForSlice()
1717 BeginIndex >= Ty->getNumElements()) in isVectorPromotionViableForSlice()
1725 assert(EndIndex > BeginIndex && "Empty vector!"); in isVectorPromotionViableForSlice()
1726 uint64_t NumElements = EndIndex - BeginIndex; in isVectorPromotionViableForSlice()
2066 static Value *extractVector(IRBuilderTy &IRB, Value *V, unsigned BeginIndex, in extractVector() argument
2069 unsigned NumElements = EndIndex - BeginIndex; in extractVector()
2076 V = IRB.CreateExtractElement(V, IRB.getInt32(BeginIndex), in extractVector()
2084 for (unsigned i = BeginIndex; i != EndIndex; ++i) in extractVector()
2093 unsigned BeginIndex, const Twine &Name) { in insertVector() argument
2100 V = IRB.CreateInsertElement(Old, V, IRB.getInt32(BeginIndex), in insertVector()
2112 unsigned EndIndex = BeginIndex + Ty->getNumElements(); in insertVector()
2121 if (i >= BeginIndex && i < EndIndex) in insertVector()
2122 Mask.push_back(IRB.getInt32(i - BeginIndex)); in insertVector()
2131 Mask.push_back(IRB.getInt1(i >= BeginIndex && i < EndIndex)); in insertVector()
2339 unsigned BeginIndex = getIndex(NewBeginOffset); in rewriteVectorizedLoadInst() local
2341 assert(EndIndex > BeginIndex && "Empty vector!"); in rewriteVectorizedLoadInst()
2344 return extractVector(IRB, V, BeginIndex, EndIndex, "vec"); in rewriteVectorizedLoadInst()
2453 unsigned BeginIndex = getIndex(NewBeginOffset); in rewriteVectorizedStoreInst() local
2455 assert(EndIndex > BeginIndex && "Empty vector!"); in rewriteVectorizedStoreInst()
2456 unsigned NumElements = EndIndex - BeginIndex; in rewriteVectorizedStoreInst()
2466 V = insertVector(IRB, Old, V, BeginIndex, "vec"); in rewriteVectorizedStoreInst()
2647 unsigned BeginIndex = getIndex(NewBeginOffset); in visitMemSetInst() local
2649 assert(EndIndex > BeginIndex && "Empty vector!"); in visitMemSetInst()
2650 unsigned NumElements = EndIndex - BeginIndex; in visitMemSetInst()
2661 V = insertVector(IRB, Old, Splat, BeginIndex, "vec"); in visitMemSetInst()
2807 unsigned BeginIndex = VecTy ? getIndex(NewBeginOffset) : 0; in visitMemTransferInst() local
2809 unsigned NumElements = EndIndex - BeginIndex; in visitMemTransferInst()
2841 Src = extractVector(IRB, Src, BeginIndex, EndIndex, "vec"); in visitMemTransferInst()
2855 Src = insertVector(IRB, Old, Src, BeginIndex, "vec"); in visitMemTransferInst()