Lines Matching refs:BasePtr
256 static bool IsPtrInBounds(Value *BasePtr) {
257 Value *StrippedBasePtr = BasePtr;
503 Value *BasePtr = GetPointerOperand(MemI);
504 assert(BasePtr && "No pointer operand");
508 BasePtr->getType()->getPointerAddressSpace());
567 cast<GetElementPtrInst>(PtrInc)->setIsInBounds(IsPtrInBounds(BasePtr));
574 if (PtrInc->getType() != BasePtr->getType())
576 PtrInc, BasePtr->getType(),
595 cast<GetElementPtrInst>(PtrInc)->setIsInBounds(IsPtrInBounds(BasePtr));
600 if (NewPHI->getType() != BasePtr->getType())
602 new BitCastInst(NewPHI, BasePtr->getType(),
609 if (Instruction *IDel = dyn_cast<Instruction>(BasePtr))
611 BasePtr->replaceAllUsesWith(NewBasePtr);
612 RecursivelyDeleteTriviallyDeadInstructions(BasePtr);