Lines Matching refs:Summ
551 const RetainSummary *Summ = I->second; in find() local
552 M[K] = Summ; in find()
553 return Summ; in find()
662 RetainSummary Summ(getArgEffects(), RetEff, DefaultEff, ReceiverEff); in getPersistentSummary() local
663 return getPersistentSummary(Summ); in getPersistentSummary()
683 void addNSObjectClsMethSummary(Selector S, const RetainSummary *Summ) { in addNSObjectClsMethSummary() argument
684 ObjCClassMethodSummaries[S] = Summ; in addNSObjectClsMethSummary()
687 void addNSObjectMethSummary(Selector S, const RetainSummary *Summ) { in addNSObjectMethSummary() argument
688 ObjCMethodSummaries[S] = Summ; in addNSObjectMethSummary()
692 const RetainSummary *Summ, bool isNullary = true) { in addClassMethSummary() argument
696 ObjCClassMethodSummaries[ObjCSummaryKey(ClsII, S)] = Summ; in addClassMethSummary()
700 const RetainSummary *Summ) { in addInstMethSummary() argument
703 ObjCMethodSummaries[ObjCSummaryKey(ClsII, S)] = Summ; in addInstMethSummary()
707 const RetainSummary *Summ, va_list argp) { in addMethodSummary() argument
709 Summaries[ObjCSummaryKey(ClsII, S)] = Summ; in addMethodSummary()
712 void addInstMethSummary(const char* Cls, const RetainSummary * Summ, ...) { in addInstMethSummary() argument
714 va_start(argp, Summ); in addInstMethSummary()
715 addMethodSummary(&Ctx.Idents.get(Cls), ObjCMethodSummaries, Summ, argp); in addInstMethSummary()
719 void addClsMethSummary(const char* Cls, const RetainSummary * Summ, ...) { in addClsMethSummary() argument
721 va_start(argp, Summ); in addClsMethSummary()
722 addMethodSummary(&Ctx.Idents.get(Cls),ObjCClassMethodSummaries, Summ, argp); in addClsMethSummary()
726 void addClsMethSummary(IdentifierInfo *II, const RetainSummary * Summ, ...) { in addClsMethSummary() argument
728 va_start(argp, Summ); in addClsMethSummary()
729 addMethodSummary(II, ObjCClassMethodSummaries, Summ, argp); in addClsMethSummary()
796 void updateSummaryFromAnnotations(const RetainSummary *&Summ,
799 void updateSummaryFromAnnotations(const RetainSummary *&Summ,
802 void updateSummaryForCall(const RetainSummary *&Summ,
876 RetainSummary *Summ = (RetainSummary *) BPAlloc.Allocate<RetainSummary>(); in getPersistentSummary() local
877 new (Summ) RetainSummary(OldSumm); in getPersistentSummary()
878 return Summ; in getPersistentSummary()
996 const RetainSummary *Summ; in getSummary() local
999 Summ = getFunctionSummary(cast<SimpleFunctionCall>(Call).getDecl()); in getSummary()
1012 Summ = getInstanceMethodSummary(Msg, State); in getSummary()
1014 Summ = getClassMethodSummary(Msg); in getSummary()
1019 updateSummaryForCall(Summ, Call); in getSummary()
1021 assert(Summ && "Unknown call type?"); in getSummary()
1022 return Summ; in getSummary()
1325 RetainSummaryManager::updateSummaryFromAnnotations(const RetainSummary *&Summ, in updateSummaryFromAnnotations() argument
1330 assert(Summ && "Must have a summary to add annotations to."); in updateSummaryFromAnnotations()
1331 RetainSummaryTemplate Template(Summ, *this); in updateSummaryFromAnnotations()
1361 RetainSummaryManager::updateSummaryFromAnnotations(const RetainSummary *&Summ, in updateSummaryFromAnnotations() argument
1366 assert(Summ && "Must have a valid summary to add annotations to"); in updateSummaryFromAnnotations()
1367 RetainSummaryTemplate Template(Summ, *this); in updateSummaryFromAnnotations()
1537 const RetainSummary *Summ = CachedSummaries.find(ID, S); in getMethodSummary() local
1539 if (!Summ) { in getMethodSummary()
1540 Summ = getStandardMethodSummary(MD, S, RetTy); in getMethodSummary()
1543 updateSummaryFromAnnotations(Summ, MD); in getMethodSummary()
1546 CachedSummaries[ObjCSummaryKey(ID, S)] = Summ; in getMethodSummary()
1549 return Summ; in getMethodSummary()
1586 const RetainSummary *Summ = getPersistentSummary(NoRet, IncRefMsg); in InitializeMethodSummaries() local
1587 addNSObjectMethSummary(GetNullarySelector("retain", Ctx), Summ); in InitializeMethodSummaries()
1590 Summ = getPersistentSummary(NoRet, DecRefMsg); in InitializeMethodSummaries()
1591 addNSObjectMethSummary(GetNullarySelector("release", Ctx), Summ); in InitializeMethodSummaries()
1594 Summ = getPersistentSummary(NoRet, Dealloc); in InitializeMethodSummaries()
1595 addNSObjectMethSummary(GetNullarySelector("dealloc", Ctx), Summ); in InitializeMethodSummaries()
1598 Summ = getPersistentSummary(NoRet, Autorelease); in InitializeMethodSummaries()
1599 addNSObjectMethSummary(GetNullarySelector("autorelease", Ctx), Summ); in InitializeMethodSummaries()
2013 if (const RetainSummary *Summ = SummaryLog.lookup(OrigNode)) { in VisitNode() local
2032 AEffects.push_back(Summ->getArg(i)); in VisitNode()
2040 AEffects.push_back(Summ->getReceiverEffect()); in VisitNode()
2624 void checkSummary(const RetainSummary &Summ, const CallEvent &Call,
2627 void processSummaryOfInlined(const RetainSummary &Summ,
2892 const RetainSummary *Summ = Summaries.getSummary(Call, C.getState()); in checkPostCall() local
2895 processSummaryOfInlined(*Summ, Call, C); in checkPostCall()
2898 checkSummary(*Summ, Call, C); in checkPostCall()
2932 void RetainCountChecker::processSummaryOfInlined(const RetainSummary &Summ, in processSummaryOfInlined() argument
2939 if (Summ.getArg(idx) == StopTrackingHard) { in processSummaryOfInlined()
2951 if (Summ.getReceiverEffect() == StopTrackingHard) { in processSummaryOfInlined()
2958 RetEffect RE = Summ.getRetEffect(); in processSummaryOfInlined()
3002 void RetainCountChecker::checkSummary(const RetainSummary &Summ, in checkSummary() argument
3015 ArgEffect Effect = Summ.getArg(idx); in checkSummary()
3038 state = updateSymbol(state, Sym, *T, Summ.getReceiverEffect(), in checkSummary()
3056 RetEffect RE = Summ.getRetEffect(); in checkSummary()
3123 SummaryLog[NewNode] = &Summ; in checkSummary()
3511 const RetainSummary *Summ = Summaries.getMethodSummary(MD); in checkPreStmt() local
3512 RE = Summ->getRetEffect(); in checkPreStmt()
3515 const RetainSummary *Summ = Summaries.getFunctionSummary(FD); in checkPreStmt() local
3516 RE = Summ->getRetEffect(); in checkPreStmt()