LLVM 19.0.0git
|
Determine the list of imports and exports for each module. More...
Public Member Functions | |
virtual | ~ModuleImportsManager ()=default |
virtual void | computeImportForModule (const GVSummaryMapTy &DefinedGVSummaries, StringRef ModName, FunctionImporter::ImportMapTy &ImportList) |
Given the list of globals defined in a module, compute the list of imports as well as the list of "exports", i.e. | |
Static Public Member Functions | |
static std::unique_ptr< ModuleImportsManager > | create (function_ref< bool(GlobalValue::GUID, const GlobalValueSummary *)> IsPrevailing, const ModuleSummaryIndex &Index, DenseMap< StringRef, FunctionImporter::ExportSetTy > *ExportLists=nullptr) |
Protected Member Functions | |
ModuleImportsManager (function_ref< bool(GlobalValue::GUID, const GlobalValueSummary *)> IsPrevailing, const ModuleSummaryIndex &Index, DenseMap< StringRef, FunctionImporter::ExportSetTy > *ExportLists=nullptr) | |
Protected Attributes | |
function_ref< bool(GlobalValue::GUID, const GlobalValueSummary *)> | IsPrevailing |
const ModuleSummaryIndex & | Index |
DenseMap< StringRef, FunctionImporter::ExportSetTy > *const | ExportLists |
Determine the list of imports and exports for each module.
Definition at line 437 of file FunctionImport.cpp.
|
inlineprotected |
Definition at line 444 of file FunctionImport.cpp.
|
virtualdefault |
|
virtual |
Given the list of globals defined in a module, compute the list of imports as well as the list of "exports", i.e.
the list of symbols referenced from another module (that may require promotion).
Definition at line 916 of file FunctionImport.cpp.
References assert(), computeImportForFunction(), llvm::dbgs(), llvm::SmallVectorBase< Size_T >::empty(), ExportLists, getFailureName(), llvm::getHotnessName(), I, ImportInstrLimit, IsPrevailing, LLVM_DEBUG, llvm::SmallVectorImpl< T >::pop_back_val(), and PrintImportFailures.
|
static |
Definition at line 678 of file FunctionImport.cpp.
References llvm::dbgs(), ExportLists, IsPrevailing, LLVM_DEBUG, and WorkloadDefinitions.
Referenced by llvm::ComputeCrossModuleImport(), and ComputeCrossModuleImportForModuleForTest().
|
protected |
Definition at line 442 of file FunctionImport.cpp.
Referenced by computeImportForModule(), and create().
|
protected |
Definition at line 441 of file FunctionImport.cpp.
|
protected |
Definition at line 440 of file FunctionImport.cpp.
Referenced by computeImportForModule(), and create().