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

Kazu Hirata via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 27 07:49:28 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 {
----------------
kazutakahirata wrote:

I've renamed `ImportSummary` to `ImportStatistics`.  Also, I've renamed `summarizeImports` to `collectImportStatistics`.  Thanks!

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


More information about the llvm-commits mailing list