LLVM 20.0.0git
|
A ModuleImportsManager that operates based on a workload definition (see -thinlto-workload-def). More...
Public Member Functions | |
WorkloadImportsManager (function_ref< bool(GlobalValue::GUID, const GlobalValueSummary *)> IsPrevailing, const ModuleSummaryIndex &Index, DenseMap< StringRef, FunctionImporter::ExportSetTy > *ExportLists) | |
Public Member Functions inherited from ModuleImportsManager | |
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. | |
Additional Inherited Members | |
Static Public Member Functions inherited from ModuleImportsManager | |
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 inherited from ModuleImportsManager | |
ModuleImportsManager (function_ref< bool(GlobalValue::GUID, const GlobalValueSummary *)> IsPrevailing, const ModuleSummaryIndex &Index, DenseMap< StringRef, FunctionImporter::ExportSetTy > *ExportLists=nullptr) | |
Protected Attributes inherited from ModuleImportsManager | |
function_ref< bool(GlobalValue::GUID, const GlobalValueSummary *)> | IsPrevailing |
const ModuleSummaryIndex & | Index |
DenseMap< StringRef, FunctionImporter::ExportSetTy > *const | ExportLists |
A ModuleImportsManager that operates based on a workload definition (see -thinlto-workload-def).
For modules that do not define workload roots, it applies the base ModuleImportsManager import policy.
Definition at line 528 of file FunctionImport.cpp.
|
inline |
Definition at line 764 of file FunctionImport.cpp.
References llvm::dbgs(), LLVM_DEBUG, llvm::report_fatal_error(), UseCtxProfile, and WorkloadDefinitions.