llvm::computeLTOCacheKey

Compute a unique LTO cache key for a module.

Synopsis

Declared in <llvm/LTO/LTO.h>

std::string
computeLTOCacheKey(
    lto::Config const& Conf,
    ModuleSummaryIndex const& Index,
    StringRef ModuleID,
    FunctionImporter::ImportMapTy const& ImportList,
    FunctionImporter::ExportSetTy const& ExportList,
    std::map<GlobalValue::GUID, GlobalValue::LinkageTypes> const& ResolvedODR,
    GVSummaryMapTy const& DefinedGlobals,
    DenseSet<GlobalValue::GUID> const& CfiFunctionDefs = {},
    DenseSet<GlobalValue::GUID> const& CfiFunctionDecls = {});

Description

Considers the current list of export/import and other global analysis results.

Return Value

Unique LTO cache key for the module.

Parameters

NameDescription
ConfLTO configuration contributing to the key.
IndexCombined module summary index.
ModuleIDIdentifier of the module being keyed.
ImportListFunctions to import into the module.
ExportListFunctions exported from the module.
ResolvedODRResolved ODR linkage types by GUID.
DefinedGlobalsSummaries of globals defined in the module.
CfiFunctionDefsCFI function definition GUIDs.
CfiFunctionDeclsCFI function declaration GUIDs.