• Home
  • Raw
  • Download

Lines Matching refs:OldPtr

2188   Instruction *OldPtr;  member in llvm::sroa::AllocaSliceRewriter
2219 OldPtr(), PHIUsers(PHIUsers), SelectUsers(SelectUsers), in AllocaSliceRewriter()
2249 OldPtr = cast<Instruction>(OldUse->get()); in visit()
2279 StringRef OldName = OldPtr->getName(); in getNewAllocaSlicePtr()
2373 assert(OldOp == OldPtr); in visitLoadInst()
2498 assert(OldOp == OldPtr); in visitStoreInst()
2597 assert(II.getRawDest() == OldPtr); in visitMemSetInst()
2604 II.setDest(getNewAllocaSlicePtr(IRB, OldPtr->getType())); in visitMemSetInst()
2608 deleteIfTriviallyDead(OldPtr); in visitMemSetInst()
2629 getNewAllocaSlicePtr(IRB, OldPtr->getType()), II.getValue(), Size, in visitMemSetInst()
2708 assert((IsDest && II.getRawDest() == OldPtr) || in visitMemTransferInst()
2709 (!IsDest && II.getRawSource() == OldPtr)); in visitMemTransferInst()
2721 Value *AdjustedPtr = getNewAllocaSlicePtr(IRB, OldPtr->getType()); in visitMemTransferInst()
2734 deleteIfTriviallyDead(OldPtr); in visitMemTransferInst()
2792 Value *OurPtr = getNewAllocaSlicePtr(IRB, OldPtr->getType()); in visitMemTransferInst()
2876 assert(II.getArgOperand(1) == OldPtr); in visitIntrinsicInst()
2884 Value *Ptr = getNewAllocaSlicePtr(IRB, OldPtr->getType()); in visitIntrinsicInst()
2906 if (isa<PHINode>(OldPtr)) in visitPHINode()
2907 PtrBuilder.SetInsertPoint(&*OldPtr->getParent()->getFirstInsertionPt()); in visitPHINode()
2909 PtrBuilder.SetInsertPoint(OldPtr); in visitPHINode()
2910 PtrBuilder.SetCurrentDebugLocation(OldPtr->getDebugLoc()); in visitPHINode()
2912 Value *NewPtr = getNewAllocaSlicePtr(PtrBuilder, OldPtr->getType()); in visitPHINode()
2914 std::replace(PN.op_begin(), PN.op_end(), cast<Value>(OldPtr), NewPtr); in visitPHINode()
2917 deleteIfTriviallyDead(OldPtr); in visitPHINode()
2928 assert((SI.getTrueValue() == OldPtr || SI.getFalseValue() == OldPtr) && in visitSelectInst()
2933 Value *NewPtr = getNewAllocaSlicePtr(IRB, OldPtr->getType()); in visitSelectInst()
2935 if (SI.getOperand(1) == OldPtr) in visitSelectInst()
2937 if (SI.getOperand(2) == OldPtr) in visitSelectInst()
2941 deleteIfTriviallyDead(OldPtr); in visitSelectInst()