ΒΆvoid gatherImportedSummariesForModule(
    llvm::StringRef ModulePath,
    const StringMap<llvm::GVSummaryMapTy>&
        ModuleToDefinedGVSummaries,
    const FunctionImporter::ImportMapTy&
        ImportList,
    std::map<std::string, GVSummaryMapTy>&
        ModuleToSummariesForIndex)

Description

\p ModuleToSummariesForIndex will be populated with the needed summaries from each required module path. Use a std::map instead of StringMap to get stable order for bitcode emission.

Declared at: llvm/include/llvm/Transforms/IPO/FunctionImport.h:200

Parameters

llvm::StringRef ModulePath
const StringMap<llvm::GVSummaryMapTy>& ModuleToDefinedGVSummaries
const FunctionImporter::ImportMapTy& ImportList
std::map<std::string, GVSummaryMapTy>& ModuleToSummariesForIndex