• Home
  • Raw
  • Download

Lines Matching refs:OldPtr

2326   Instruction *OldPtr = nullptr;  member in llvm::sroa::AllocaSliceRewriter
2388 OldPtr = cast<Instruction>(OldUse->get()); in visit()
2419 StringRef OldName = OldPtr->getName(); in getNewAllocaSlicePtr()
2512 assert(OldOp == OldPtr); in visitLoadInst()
2673 assert(OldOp == OldPtr); in visitStoreInst()
2782 assert(II.getRawDest() == OldPtr); in visitMemSetInst()
2792 II.setDest(getNewAllocaSlicePtr(IRB, OldPtr->getType())); in visitMemSetInst()
2795 deleteIfTriviallyDead(OldPtr); in visitMemSetInst()
2827 getNewAllocaSlicePtr(IRB, OldPtr->getType()), II.getValue(), Size, in visitMemSetInst()
2914 assert((IsDest && II.getRawDest() == OldPtr) || in visitMemTransferInst()
2915 (!IsDest && II.getRawSource() == OldPtr)); in visitMemTransferInst()
2927 Value *AdjustedPtr = getNewAllocaSlicePtr(IRB, OldPtr->getType()); in visitMemTransferInst()
2938 deleteIfTriviallyDead(OldPtr); in visitMemTransferInst()
2999 Value *OurPtr = getNewAllocaSlicePtr(IRB, OldPtr->getType()); in visitMemTransferInst()
3110 OldPtr->dropDroppableUsesIn(II); in visitIntrinsicInst()
3114 assert(II.getArgOperand(1) == OldPtr); in visitIntrinsicInst()
3131 Type *PointerTy = IRB.getInt8PtrTy(OldPtr->getType()->getPointerAddressSpace()); in visitIntrinsicInst()
3184 if (isa<PHINode>(OldPtr)) in visitPHINode()
3185 IRB.SetInsertPoint(&*OldPtr->getParent()->getFirstInsertionPt()); in visitPHINode()
3187 IRB.SetInsertPoint(OldPtr); in visitPHINode()
3188 IRB.SetCurrentDebugLocation(OldPtr->getDebugLoc()); in visitPHINode()
3190 Value *NewPtr = getNewAllocaSlicePtr(IRB, OldPtr->getType()); in visitPHINode()
3192 std::replace(PN.op_begin(), PN.op_end(), cast<Value>(OldPtr), NewPtr); in visitPHINode()
3195 deleteIfTriviallyDead(OldPtr); in visitPHINode()
3209 assert((SI.getTrueValue() == OldPtr || SI.getFalseValue() == OldPtr) && in visitSelectInst()
3214 Value *NewPtr = getNewAllocaSlicePtr(IRB, OldPtr->getType()); in visitSelectInst()
3216 if (SI.getOperand(1) == OldPtr) in visitSelectInst()
3218 if (SI.getOperand(2) == OldPtr) in visitSelectInst()
3222 deleteIfTriviallyDead(OldPtr); in visitSelectInst()