Home | History | Annotate | Download | only in IR

Lines Matching refs:Summary

1 //===-- ModuleSummaryIndex.cpp - Module Summary Index ---------------------===//
10 // This file implements the module index and summary classes for the
19 // Create the combined module index/summary from multiple
29 // Assert that the value summary list only has one entry, since we shouldn't
32 std::unique_ptr<GlobalValueSummary> Summary = std::move(List.front());
37 auto Path = Summary->modulePath();
41 assert(ModPath == Summary->modulePath() &&
47 Summary->setModulePath(ModPath);
49 // Add new value summary to existing list. There may be duplicates when
52 addGlobalValueSummary(ValueGUID, std::move(Summary));
69 // (GUID -> Summary).
75 auto *Summary = dyn_cast_or_null<FunctionSummary>(GlobSummary.get());
76 if (!Summary)
80 if (Summary->modulePath() != ModulePath)
82 GVSummaryMap[GUID] = Summary;
87 // Collect for each module the list of function it defines (GUID -> Summary).
92 for (auto &Summary : GlobalList.second) {
93 ModuleToDefinedGVSummaries[Summary->modulePath()][GUID] = Summary.get();
105 auto &Summary = SummaryList->second[0];
106 return Summary.get();