Lines Matching refs:BasePtr
356 static bool IsPtrInBounds(Value *BasePtr) { in IsPtrInBounds() argument
357 Value *StrippedBasePtr = BasePtr; in IsPtrInBounds()
658 Value *BasePtr = getPointerOperandAndType(BaseMemI); in rewriteForBase() local
659 assert(BasePtr && "No pointer operand"); in rewriteForBase()
664 BasePtr->getType()->getPointerAddressSpace()); in rewriteForBase()
732 cast<GetElementPtrInst>(PtrInc)->setIsInBounds(IsPtrInBounds(BasePtr)); in rewriteForBase()
739 if (PtrInc->getType() != BasePtr->getType()) in rewriteForBase()
741 new BitCastInst(PtrInc, BasePtr->getType(), in rewriteForBase()
759 cast<GetElementPtrInst>(PtrInc)->setIsInBounds(IsPtrInBounds(BasePtr)); in rewriteForBase()
764 if (NewPHI->getType() != BasePtr->getType()) in rewriteForBase()
765 NewBasePtr = new BitCastInst(NewPHI, BasePtr->getType(), in rewriteForBase()
772 BasePtr->replaceAllUsesWith(NewBasePtr); in rewriteForBase()
774 DeletedPtrs.insert(BasePtr); in rewriteForBase()