Home | History | Annotate | Download | only in Scalar

Lines Matching refs:Ptr1

71 /// IsPointerOffset - Return true if Ptr1 is provably equal to Ptr2 plus a
72 /// constant offset, and return that constant offset. For example, Ptr1 might
74 static bool IsPointerOffset(Value *Ptr1, Value *Ptr2, int64_t &Offset,
76 Ptr1 = Ptr1->stripPointerCasts();
78 GetElementPtrInst *GEP1 = dyn_cast<GetElementPtrInst>(Ptr1);
90 if (GEP2 && GEP1 == 0 && GEP2->getOperand(0)->stripPointerCasts() == Ptr1) {
95 // Right now we handle the case when Ptr1/Ptr2 are both GEPs with an identical