LLVM 20.0.0git
|
The map maintains the list of imports. More...
#include "llvm/Transforms/IPO/FunctionImport.h"
Public Types | |
enum class | AddDefinitionStatus { NoChange , Inserted , ChangedToDefinition } |
using | ImportMapTyImpl = DenseMap< StringRef, FunctionsToImportTy > |
Public Member Functions | |
AddDefinitionStatus | addDefinition (StringRef FromModule, GlobalValue::GUID GUID) |
void | maybeAddDeclaration (StringRef FromModule, GlobalValue::GUID GUID) |
void | addGUID (StringRef FromModule, GlobalValue::GUID GUID, GlobalValueSummary::ImportKind ImportKind) |
const ImportMapTyImpl & | getImportMap () const |
The map maintains the list of imports.
Conceptually, it is a collection of tuples of the form:
(The name of the source module, GUID, Definition/Declaration)
The name of the source module is the module identifier to pass to the ModuleLoader. The module identifier strings must be owned elsewhere, typically by the in-memory ModuleSummaryIndex the importing decisions are made from (the module path for each summary is owned by the index's module path string table).
Definition at line 109 of file FunctionImport.h.
using llvm::FunctionImporter::ImportMapTy::ImportMapTyImpl = DenseMap<StringRef, FunctionsToImportTy> |
Definition at line 111 of file FunctionImport.h.
|
strong |
Enumerator | |
---|---|
NoChange | |
Inserted | |
ChangedToDefinition |
Definition at line 113 of file FunctionImport.h.
FunctionImporter::ImportMapTy::AddDefinitionStatus FunctionImporter::ImportMapTy::addDefinition | ( | StringRef | FromModule, |
GlobalValue::GUID | GUID | ||
) |
Definition at line 338 of file FunctionImport.cpp.
References ChangedToDefinition, llvm::GlobalValueSummary::Definition, Inserted, NoChange, and llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT, BucketT >::try_emplace().
Referenced by addGUID(), and computeImportForFunction().
|
inline |
Definition at line 134 of file FunctionImport.h.
References addDefinition(), llvm::GlobalValueSummary::Definition, and maybeAddDeclaration().
Referenced by ComputeCrossModuleImportForModuleFromIndexForTest(), and llvm::lto::initImportList().
|
inline |
Definition at line 142 of file FunctionImport.h.
Referenced by llvm::computeLTOCacheKey(), dumpImportListForModule(), llvm::gatherImportedSummariesForModule(), and llvm::FunctionImporter::importFunctions().
void FunctionImporter::ImportMapTy::maybeAddDeclaration | ( | StringRef | FromModule, |
GlobalValue::GUID | GUID | ||
) |
Definition at line 350 of file FunctionImport.cpp.
References llvm::GlobalValueSummary::Declaration.
Referenced by addGUID(), and computeImportForFunction().