Lines Matching defs:Retain

627   Constant *NewDecl = EP.get(ARCRuntimeEntryPointKind::Retain);
870 case ARCInstKind::Retain:
1117 case ARCInstKind::Retain:
1262 case ARCInstKind::Retain:
1277 // If we succeed, copy S's RRInfo into the Release -> {Retain Set
1491 Constant *Decl = EP.get(ARCRuntimeEntryPointKind::Retain);
1496 DEBUG(dbgs() << "Inserting new Retain: " << *Call << "\n"
1755 Instruction *Retain = cast<Instruction>(V);
1757 DEBUG(dbgs() << "Visiting: " << *Retain << "\n");
1759 Value *Arg = GetArgRCIdentityRoot(Retain);
1777 NewRetains.push_back(Retain);
1853 Constant *Decl = EP.get(ARCRuntimeEntryPointKind::Retain);
1882 Constant *Decl = EP.get(ARCRuntimeEntryPointKind::Retain);
1991 /// between the Retain and the call that can affect the reference count of their
1992 /// shared pointer argument. Note that Retain need not be in BB.
1994 HasSafePathToPredecessorCall(const Value *Arg, Instruction *Retain,
1998 FindDependencies(CanChangeRetainCount, Arg, Retain->getParent(), Retain,
2031 auto *Retain = dyn_cast_or_null<CallInst>(*DepInsts.begin());
2034 if (!Retain || !IsRetain(GetBasicARCInstKind(Retain)) ||
2035 GetArgRCIdentityRoot(Retain) != Arg) {
2039 return Retain;
2108 CallInst *Retain =
2114 if (!Retain)
2118 // between the retain and the call. Note that Retain need not be in BB.
2119 bool HasSafePathToCall = HasSafePathToPredecessorCall(Arg, Retain,
2131 DEBUG(dbgs() << "Erasing: " << *Retain << "\nErasing: "
2133 EraseInstruction(Retain);
2151 case ARCInstKind::Retain:
2221 if (UsedInThisFunction & ((1 << unsigned(ARCInstKind::Retain)) |