Lines Matching refs:Retain
632 Constant *NewDecl = EP.get(ARCRuntimeEntryPointKind::Retain); in OptimizeRetainRVCall()
875 case ARCInstKind::Retain: in OptimizeIndividualCalls()
1122 case ARCInstKind::Retain: in VisitInstructionBottomUp()
1267 case ARCInstKind::Retain: in VisitInstructionTopDown()
1493 Constant *Decl = EP.get(ARCRuntimeEntryPointKind::Retain); in MoveCalls()
1757 Instruction *Retain = cast<Instruction>(V); in PerformCodePlacement() local
1759 DEBUG(dbgs() << "Visiting: " << *Retain << "\n"); in PerformCodePlacement()
1761 Value *Arg = GetArgRCIdentityRoot(Retain); in PerformCodePlacement()
1779 NewRetains.push_back(Retain); in PerformCodePlacement()
1855 Constant *Decl = EP.get(ARCRuntimeEntryPointKind::Retain); in OptimizeWeakCalls()
1884 Constant *Decl = EP.get(ARCRuntimeEntryPointKind::Retain); in OptimizeWeakCalls()
1996 HasSafePathToPredecessorCall(const Value *Arg, Instruction *Retain, in HasSafePathToPredecessorCall() argument
2000 FindDependencies(CanChangeRetainCount, Arg, Retain->getParent(), Retain, in HasSafePathToPredecessorCall()
2033 auto *Retain = dyn_cast_or_null<CallInst>(*DepInsts.begin()); in FindPredecessorRetainWithSafePath() local
2036 if (!Retain || !IsRetain(GetBasicARCInstKind(Retain)) || in FindPredecessorRetainWithSafePath()
2037 GetArgRCIdentityRoot(Retain) != Arg) { in FindPredecessorRetainWithSafePath()
2041 return Retain; in FindPredecessorRetainWithSafePath()
2107 CallInst *Retain = FindPredecessorRetainWithSafePath( in OptimizeReturns() local
2112 if (!Retain) in OptimizeReturns()
2117 bool HasSafePathToCall = HasSafePathToPredecessorCall(Arg, Retain, in OptimizeReturns()
2129 DEBUG(dbgs() << "Erasing: " << *Retain << "\nErasing: " in OptimizeReturns()
2131 EraseInstruction(Retain); in OptimizeReturns()
2149 case ARCInstKind::Retain: in GatherStatistics()
2219 if (UsedInThisFunction & ((1 << unsigned(ARCInstKind::Retain)) | in runOnFunction()