Lines Matching refs:beginOffset
122 uint64_t BeginOffset;
132 Slice() : BeginOffset(), EndOffset() {}
133 Slice(uint64_t BeginOffset, uint64_t EndOffset, Use *U, bool IsSplittable)
134 : BeginOffset(BeginOffset), EndOffset(EndOffset),
137 uint64_t beginOffset() const { return BeginOffset; }
155 if (beginOffset() < RHS.beginOffset()) return true;
156 if (beginOffset() > RHS.beginOffset()) return false;
165 return LHS.beginOffset() < RHSOffset;
169 return LHSOffset < RHS.beginOffset();
174 beginOffset() == RHS.beginOffset() && endOffset() == RHS.endOffset();
351 uint64_t BeginOffset = Offset.getZExtValue();
352 uint64_t EndOffset = BeginOffset + Size;
355 // formulated to handle even the case where "BeginOffset + Size" overflows.
360 assert(AllocSize >= BeginOffset); // Established above.
361 if (Size > AllocSize - BeginOffset) {
369 S.Slices.push_back(Slice(BeginOffset, EndOffset, U, IsSplittable));
498 if (!II.isVolatile() && PrevP.beginOffset() == RawOffset) {
692 OS << Indent << "[" << I->beginOffset() << "," << I->endOffset() << ")"
893 int64_t BeginOffset, int64_t EndOffset,
924 if (I->beginOffset() != B->beginOffset() || I->endOffset() != EndOffset)
939 if (ITy->getBitWidth() / 8 > (EndOffset - B->beginOffset()))
1478 uint64_t BeginOffset =
1479 std::max(I->beginOffset(), SliceBeginOffset) - SliceBeginOffset;
1480 uint64_t BeginIndex = BeginOffset / ElementSize;
1481 if (BeginIndex * ElementSize != BeginOffset ||
1513 if (SliceBeginOffset > I->beginOffset() ||
1524 if (SliceBeginOffset > I->beginOffset() ||
1592 uint64_t RelBegin = I->beginOffset() - AllocBeginOffset;
1869 uint64_t BeginOffset, EndOffset;
1900 BeginOffset(), EndOffset(), IsSplittable(), IsSplit(), OldUse(),
1914 BeginOffset = I->beginOffset();
1918 BeginOffset < NewAllocaBeginOffset || EndOffset > NewAllocaEndOffset;
1926 IRB.SetNamePrefix(Twine(NewAI.getName()) + "." + Twine(BeginOffset) + ".");
2031 assert(BeginOffset < NewAllocaEndOffset);
2033 uint64_t NewBeginOffset = std::max(BeginOffset, NewAllocaBeginOffset);
2128 assert(BeginOffset >= NewAllocaBeginOffset && "Out of bounds offset");
2129 uint64_t Offset = BeginOffset - NewAllocaBeginOffset;
2155 assert(BeginOffset < NewAllocaEndOffset);
2157 uint64_t NewBeginOffset = std::max(BeginOffset, NewAllocaBeginOffset);
2244 assert(BeginOffset >= NewAllocaBeginOffset);
2246 getAdjustedAllocaPtr(IRB, BeginOffset, II.getRawDest()->getType()));
2248 II.setAlignment(ConstantInt::get(CstTy, getOffsetAlign(BeginOffset)));
2261 assert(BeginOffset < NewAllocaEndOffset);
2263 uint64_t NewBeginOffset = std::max(BeginOffset, NewAllocaBeginOffset);
2270 (BeginOffset > NewAllocaBeginOffset ||
2319 if (IntTy && (BeginOffset != NewAllocaBeginOffset ||
2357 assert(BeginOffset < NewAllocaEndOffset);
2359 uint64_t NewBeginOffset = std::max(BeginOffset, NewAllocaBeginOffset);
2367 APInt RelOffset(IntPtrWidth, NewBeginOffset - BeginOffset);
2387 getAdjustedAllocaPtr(IRB, BeginOffset, II.getRawDest()->getType()));
2389 II.setSource(getAdjustedAllocaPtr(IRB, BeginOffset,
2408 = !VecTy && !IntTy && (BeginOffset > NewAllocaBeginOffset ||
2417 assert(NewBeginOffset == BeginOffset);
2532 assert(BeginOffset < NewAllocaEndOffset);
2534 uint64_t NewBeginOffset = std::max(BeginOffset, NewAllocaBeginOffset);
2558 assert(BeginOffset >= NewAllocaBeginOffset && "PHIs are unsplittable");
2566 PtrBuilder.SetNamePrefix(Twine(NewAI.getName()) + "." + Twine(BeginOffset) +
2570 getAdjustedAllocaPtr(PtrBuilder, BeginOffset, OldPtr->getType());
2593 assert(BeginOffset >= NewAllocaBeginOffset && "Selects are unsplittable");
2596 Value *NewPtr = getAdjustedAllocaPtr(IRB, BeginOffset, OldPtr->getType());
2987 int64_t BeginOffset, int64_t EndOffset,
2989 assert(BeginOffset < EndOffset);
2990 uint64_t SliceSize = EndOffset - BeginOffset;
3001 BeginOffset, SliceSize))
3012 *DL, SliceTy, S, BeginOffset, EndOffset, B, E, SplitUses);
3016 isIntegerWideningViable(*DL, SliceTy, BeginOffset, S, B, E, SplitUses);
3024 assert(BeginOffset == 0 &&
3037 Alignment = MinAlign(Alignment, BeginOffset);
3048 << "[" << BeginOffset << "," << EndOffset << ") to: " << *NewAI
3059 AllocaSliceRewriter Rewriter(*DL, S, *this, AI, *NewAI, BeginOffset,
3162 uint64_t BeginOffset = S.begin()->beginOffset();
3171 assert(BeginOffset == SI->beginOffset());
3175 while (SJ != SE && SJ->beginOffset() < MaxEndOffset) {
3184 while (SJ != SE && SJ->beginOffset() < MaxEndOffset &&
3192 if (SJ != SE && SJ->beginOffset() < MaxEndOffset) {
3194 MaxEndOffset = SJ->beginOffset();
3200 if (BeginOffset < MaxEndOffset) {
3203 rewritePartition(AI, S, SI, SJ, BeginOffset, MaxEndOffset, SplitUses);
3223 if (SplitUses.empty() || (SJ != SE && MaxEndOffset == SJ->beginOffset())) {
3224 BeginOffset = SJ->beginOffset();
3232 MaxSplitUseEndOffset > SJ->beginOffset()) {
3233 BeginOffset = MaxEndOffset;
3240 SJ == SE ? MaxSplitUseEndOffset : SJ->beginOffset();
3253 BeginOffset = SJ->beginOffset();