Lines Matching refs:BasePtr
1379 /// This will return the BasePtr if that is valid, or build a new GEP
1381 static Value *buildGEP(IRBuilderTy &IRB, Value *BasePtr,
1384 return BasePtr;
1389 return BasePtr;
1391 return IRB.CreateInBoundsGEP(BasePtr->getType()->getPointerElementType(),
1392 BasePtr, Indices, NamePrefix + "sroa_idx");
1395 /// Get a natural GEP off of the BasePtr walking through Ty toward
1405 Value *BasePtr, Type *Ty, Type *TargetTy,
1409 return buildGEP(IRB, BasePtr, Indices, NamePrefix);
1412 unsigned OffsetSize = DL.getIndexTypeSizeInBits(BasePtr->getType());
1441 return buildGEP(IRB, BasePtr, Indices, NamePrefix);
3966 Instruction *BasePtr = cast<Instruction>(LI->getPointerOperand());
3979 getAdjustedPtr(IRB, DL, BasePtr,
3981 PartPtrTy, BasePtr->getName() + "."),