Lines Matching refs:PtrDelta
135 bool areConsecutivePointers(Value *PtrA, Value *PtrB, APInt PtrDelta,
137 bool lookThroughComplexAddresses(Value *PtrA, Value *PtrB, APInt PtrDelta,
139 bool lookThroughSelects(Value *PtrA, Value *PtrB, const APInt &PtrDelta,
330 APInt PtrDelta, unsigned Depth) const { in areConsecutivePointers() argument
351 PtrDelta = PtrDelta.sextOrTrunc(NewPtrBitWidth); in areConsecutivePointers()
358 return OffsetDelta == PtrDelta; in areConsecutivePointers()
362 APInt BaseDelta = PtrDelta - OffsetDelta; in areConsecutivePointers()
462 APInt PtrDelta, in lookThroughComplexAddresses() argument
467 return lookThroughSelects(PtrA, PtrB, PtrDelta, Depth); in lookThroughComplexAddresses()
489 if (PtrDelta.isNegative()) { in lookThroughComplexAddresses()
490 if (PtrDelta.isMinSignedValue()) in lookThroughComplexAddresses()
492 PtrDelta.negate(); in lookThroughComplexAddresses()
496 if (PtrDelta.urem(Stride) != 0) in lookThroughComplexAddresses()
499 APInt IdxDiff = PtrDelta.udiv(Stride).zext(IdxBitWidth); in lookThroughComplexAddresses()
565 const APInt &PtrDelta, in lookThroughSelects() argument
574 SelectB->getTrueValue(), PtrDelta, Depth) && in lookThroughSelects()
576 SelectB->getFalseValue(), PtrDelta, Depth); in lookThroughSelects()