Lines Matching refs:Summ
537 const RetainSummary *Summ = I->second;
538 M[K] = Summ;
539 return Summ;
648 RetainSummary Summ(getArgEffects(), RetEff, DefaultEff, ReceiverEff);
649 return getPersistentSummary(Summ);
669 void addNSObjectClsMethSummary(Selector S, const RetainSummary *Summ) {
670 ObjCClassMethodSummaries[S] = Summ;
673 void addNSObjectMethSummary(Selector S, const RetainSummary *Summ) {
674 ObjCMethodSummaries[S] = Summ;
678 const RetainSummary *Summ, bool isNullary = true) {
682 ObjCClassMethodSummaries[ObjCSummaryKey(ClsII, S)] = Summ;
686 const RetainSummary *Summ) {
689 ObjCMethodSummaries[ObjCSummaryKey(ClsII, S)] = Summ;
702 const RetainSummary * Summ, va_list argp) {
704 Summaries[ObjCSummaryKey(ClsII, S)] = Summ;
707 void addInstMethSummary(const char* Cls, const RetainSummary * Summ, ...) {
709 va_start(argp, Summ);
710 addMethodSummary(&Ctx.Idents.get(Cls), ObjCMethodSummaries, Summ, argp);
714 void addClsMethSummary(const char* Cls, const RetainSummary * Summ, ...) {
716 va_start(argp, Summ);
717 addMethodSummary(&Ctx.Idents.get(Cls),ObjCClassMethodSummaries, Summ, argp);
721 void addClsMethSummary(IdentifierInfo *II, const RetainSummary * Summ, ...) {
723 va_start(argp, Summ);
724 addMethodSummary(II, ObjCClassMethodSummaries, Summ, argp);
791 void updateSummaryFromAnnotations(const RetainSummary *&Summ,
794 void updateSummaryFromAnnotations(const RetainSummary *&Summ,
797 void updateSummaryForCall(const RetainSummary *&Summ,
871 RetainSummary *Summ = (RetainSummary *) BPAlloc.Allocate<RetainSummary>();
872 new (Summ) RetainSummary(OldSumm);
873 return Summ;
986 const RetainSummary *Summ;
989 Summ = getFunctionSummary(cast<FunctionCall>(Call).getDecl());
1002 Summ = getInstanceMethodSummary(Msg, State);
1004 Summ = getClassMethodSummary(Msg);
1009 updateSummaryForCall(Summ, Call);
1011 assert(Summ && "Unknown call type?");
1012 return Summ;
1307 RetainSummaryManager::updateSummaryFromAnnotations(const RetainSummary *&Summ,
1312 assert(Summ && "Must have a summary to add annotations to.");
1313 RetainSummaryTemplate Template(Summ, *this);
1332 RetainSummaryManager::updateSummaryFromAnnotations(const RetainSummary *&Summ,
1337 assert(Summ && "Must have a valid summary to add annotations to");
1338 RetainSummaryTemplate Template(Summ, *this);
1497 const RetainSummary *Summ = CachedSummaries.find(ID, S);
1499 if (!Summ) {
1500 Summ = getStandardMethodSummary(MD, S, RetTy);
1503 updateSummaryFromAnnotations(Summ, MD);
1506 CachedSummaries[ObjCSummaryKey(ID, S)] = Summ;
1509 return Summ;
1546 const RetainSummary *Summ = getPersistentSummary(NoRet, IncRefMsg);
1547 addNSObjectMethSummary(GetNullarySelector("retain", Ctx), Summ);
1550 Summ = getPersistentSummary(NoRet, DecRefMsg);
1551 addNSObjectMethSummary(GetNullarySelector("release", Ctx), Summ);
1554 Summ = getPersistentSummary(NoRet, Dealloc);
1555 addNSObjectMethSummary(GetNullarySelector("dealloc", Ctx), Summ);
1558 Summ = getPersistentSummary(NoRet, Autorelease);
1559 addNSObjectMethSummary(GetNullarySelector("autorelease", Ctx), Summ);
1960 if (const RetainSummary *Summ = SummaryLog.lookup(OrigNode)) {
1979 AEffects.push_back(Summ->getArg(i));
1987 AEffects.push_back(Summ->getReceiverEffect());
2556 void checkSummary(const RetainSummary &Summ, const CallEvent &Call,
2559 void processSummaryOfInlined(const RetainSummary &Summ,
2774 const RetainSummary *Summ = Summaries.getSummary(Call, C.getState());
2777 processSummaryOfInlined(*Summ, Call, C);
2780 checkSummary(*Summ, Call, C);
2814 void RetainCountChecker::processSummaryOfInlined(const RetainSummary &Summ,
2821 if (Summ.getArg(idx) == StopTrackingHard) {
2833 if (Summ.getReceiverEffect() == StopTrackingHard) {
2840 RetEffect RE = Summ.getRetEffect();
2850 void RetainCountChecker::checkSummary(const RetainSummary &Summ,
2865 state = updateSymbol(state, Sym, *T, Summ.getArg(idx), hasErr, C);
2883 state = updateSymbol(state, Sym, *T, Summ.getReceiverEffect(),
2901 RetEffect RE = Summ.getRetEffect();
2969 SummaryLog[NewNode] = &Summ;
3330 const RetainSummary *Summ = Summaries.getMethodSummary(MD);
3331 RE = Summ->getRetEffect();
3334 const RetainSummary *Summ = Summaries.getFunctionSummary(FD);
3335 RE = Summ->getRetEffect();