Lines Matching refs:RetainRV
489 bool OptimizeRetainRVCall(Function &F, Instruction *RetainRV);
578 ObjCARCOpt::OptimizeRetainRVCall(Function &F, Instruction *RetainRV) { in OptimizeRetainRVCall() argument
580 const Value *Arg = GetArgRCIdentityRoot(RetainRV); in OptimizeRetainRVCall()
583 if (Call->getParent() == RetainRV->getParent()) { in OptimizeRetainRVCall()
587 if (&*I == RetainRV) in OptimizeRetainRVCall()
590 BasicBlock *RetainRVParent = RetainRV->getParent(); in OptimizeRetainRVCall()
594 if (&*I == RetainRV) in OptimizeRetainRVCall()
602 BasicBlock::iterator I = RetainRV, Begin = RetainRV->getParent()->begin(); in OptimizeRetainRVCall()
611 << "Erasing " << *RetainRV << "\n"); in OptimizeRetainRVCall()
614 EraseInstruction(RetainRV); in OptimizeRetainRVCall()
625 "Old = " << *RetainRV << "\n"); in OptimizeRetainRVCall()
628 cast<CallInst>(RetainRV)->setCalledFunction(NewDecl); in OptimizeRetainRVCall()
630 DEBUG(dbgs() << "New = " << *RetainRV << "\n"); in OptimizeRetainRVCall()
647 if (isa<ReturnInst>(U) || GetBasicARCInstKind(U) == ARCInstKind::RetainRV) in OptimizeAutoreleaseRVCall()
748 case ARCInstKind::RetainRV: in OptimizeIndividualCalls()
887 case ARCInstKind::RetainRV: in OptimizeIndividualCalls()
1118 case ARCInstKind::RetainRV: { in VisitInstructionBottomUp()
1124 if (Class != ARCInstKind::RetainRV) { in VisitInstructionBottomUp()
1263 case ARCInstKind::RetainRV: { in VisitInstructionTopDown()
2222 (1 << unsigned(ARCInstKind::RetainRV)) | in runOnFunction()