Lines Matching refs:Summary

94 static bool canBeExternallyReferenced(const GlobalValueSummary &Summary) {  in canBeExternallyReferenced()  argument
95 if (!Summary.needsRenaming()) in canBeExternallyReferenced()
98 if (Summary.hasSection()) in canBeExternallyReferenced()
127 const GlobalValueSummary &Summary) { in eligibleForImport() argument
128 if (!canBeExternallyReferenced(Summary)) in eligibleForImport()
137 llvm::all_of(Summary.refs(), [&](const ValueInfo &VI) { in eligibleForImport()
143 if (auto *FuncSummary = dyn_cast<FunctionSummary>(&Summary)) { in eligibleForImport()
186 auto *Summary = cast<FunctionSummary>(GVSummary); in selectCallee() local
188 if (Summary->instCount() > Threshold) in selectCallee()
191 if (!eligibleForImport(Index, *Summary)) in selectCallee()
229 [&](const std::unique_ptr<GlobalValueSummary> &Summary) { in exportGlobalInModule() argument
230 return Summary->modulePath() == ExportModulePath; in exportGlobalInModule()
237 auto *Summary = FindGlobalSummaryInModule(GUID); in exportGlobalInModule() local
238 if (!Summary) in exportGlobalInModule()
243 auto GVS = dyn_cast<GlobalVarSummary>(Summary); in exportGlobalInModule()
266 const FunctionSummary &Summary, const ModuleSummaryIndex &Index, in computeImportForFunction() argument
271 for (auto &Edge : Summary.calls()) { in computeImportForFunction()
347 auto *Summary = GVSummary.second; in ComputeImportForModule() local
348 if (auto *AS = dyn_cast<AliasSummary>(Summary)) in ComputeImportForModule()
349 Summary = &AS->getAliasee(); in ComputeImportForModule()
350 auto *FuncSummary = dyn_cast<FunctionSummary>(Summary); in ComputeImportForModule()
362 auto *Summary = FuncInfo.first; in ComputeImportForModule() local
369 computeImportForFunction(*Summary, Index, Threshold, DefinedGVSummaries, in ComputeImportForModule()