[llvm] [LTO] Introduce a helper function summarizeImports (NFC) (PR #106179)

Teresa Johnson via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 27 07:23:51 PDT 2024


================
@@ -1082,21 +1082,29 @@ numGlobalVarSummaries(const ModuleSummaryIndex &Index,
   return NumGVS;
 }
 
-// Given ImportMap, return the number of global variable summaries and record
-// the number of defined function summaries as output parameter.
-static unsigned
-numGlobalVarSummaries(const ModuleSummaryIndex &Index,
-                      const FunctionImporter::FunctionsToImportTy &ImportMap,
-                      unsigned &DefinedFS) {
+struct ImportSummary {
----------------
teresajohnson wrote:

Agree, the word summary ends up being overloaded - I like "Statistics" (here and in the uses where the stats get dumped later on) better.

https://github.com/llvm/llvm-project/pull/106179


More information about the llvm-commits mailing list