Lines Matching full:second

128     if (!Ret.second) {  in findProfileAnchors()
131 Ret.first->second = FunctionId(UnknownIndirectCallee); in findProfileAnchors()
139 for (const auto &C : I.second.getCallTargets()) in findProfileAnchors()
147 for (const auto &C : I.second) in findProfileAnchors()
157 FuncWithoutProfile = R->second; in functionHasProfile()
251 AnchorList1[X].second, AnchorList2[Y].second, in longestCommonSequence()
286 const auto &Candidate = R->second; in matchNonCallsiteLocs()
288 LLVM_DEBUG(dbgs() << "Callsite with callee:" << IR.second.stringRef() in matchNonCallsiteLocs()
296 // second half based on the current anchor. in matchNonCallsiteLocs()
329 if (I.second.stringRef().empty()) in getFilteredAnchorList()
346 // based on the start anchor, second half are matched based on the end anchor.
422 FSFlattened = getFlattenedSamplesFor(R->second); in runOnFunction()
482 return ProfileLoc->second; in recordCallsiteMatchStates()
491 const auto &IRCalleeId = I.second; in recordCallsiteMatchStates()
495 const auto &ProfCalleeId = It->second; in recordCallsiteMatchStates()
501 if (It->second == MatchState::InitialMatch) in recordCallsiteMatchStates()
502 It->second = MatchState::UnchangedMatch; in recordCallsiteMatchStates()
503 else if (It->second == MatchState::InitialMismatch) in recordCallsiteMatchStates()
504 It->second = MatchState::RecoveredMismatch; in recordCallsiteMatchStates()
513 assert(!I.second.stringRef().empty() && "Callees should not be empty"); in recordCallsiteMatchStates()
520 if (It->second == MatchState::InitialMismatch) in recordCallsiteMatchStates()
521 It->second = MatchState::UnchangedMismatch; in recordCallsiteMatchStates()
522 else if (It->second == MatchState::InitialMatch) in recordCallsiteMatchStates()
523 It->second = MatchState::RemovedMatch; in recordCallsiteMatchStates()
552 for (const auto &CS : I.second) in countMismatchedFuncSamples()
553 countMismatchedFuncSamples(CS.second, false); in countMismatchedFuncSamples()
560 if (It == FuncCallsiteMatchStates.end() || It->second.empty()) in countMismatchedCallsiteSamples()
562 const auto &CallsiteMatchStates = It->second; in countMismatchedCallsiteSamples()
568 return It->second; in countMismatchedCallsiteSamples()
582 AttributeMismatchedSamples(findMatchState(I.first), I.second.getSamples()); in countMismatchedCallsiteSamples()
588 for (const auto &CS : I.second) in countMismatchedCallsiteSamples()
589 CallsiteSamples += CS.second.getTotalSamples(); in countMismatchedCallsiteSamples()
598 for (const auto &CS : I.second) in countMismatchedCallsiteSamples()
599 countMismatchedCallsiteSamples(CS.second); in countMismatchedCallsiteSamples()
606 if (It == FuncCallsiteMatchStates.end() || It->second.empty()) in countMismatchCallsites()
608 const auto &MatchStates = It->second; in countMismatchCallsites()
610 isInitialState(MatchStates.begin()->second); in countMismatchCallsites()
614 (OnInitialState ? isInitialState(I.second) : isFinalState(I.second)) && in countMismatchCallsites()
617 if (isMismatchState(I.second)) in countMismatchCallsites()
619 else if (I.second == MatchState::RecoveredMismatch) in countMismatchCallsites()
633 for (const auto &CS : CM.second) { in countCallGraphRecoveredSamples()
634 countCallGraphRecoveredSamples(CS.second, CallGraphRecoveredProfiles); in countCallGraphRecoveredSamples()
646 CallGraphRecoveredProfiles.insert(I.second); in computeAndReportProfileStaleness()
850 return R->second; in functionMatchesProfile()
888 FuncNameToProfNameMap->emplace(FuncName, I.second); in runOnModule()
892 SymbolMap->emplace(I.second, I.first); in runOnModule()
905 FS.setIRToProfileLocationMap(&(ProfileMappings->second)); in distributeIRToProfileLocationMap()
910 for (auto &FS : Callees.second) { in distributeIRToProfileLocationMap()
911 distributeIRToProfileLocationMap(FS.second); in distributeIRToProfileLocationMap()
920 distributeIRToProfileLocationMap(I.second); in distributeIRToProfileLocationMap()