ΒΆvoid thinLTOInternalizeAndPromoteInIndex(
llvm::ModuleSummaryIndex& Index,
function_ref<bool(llvm::StringRef,
llvm::ValueInfo)>
isExported,
function_ref<
bool(GlobalValue::GUID,
const llvm::GlobalValueSummary*)>
isPrevailing)
void thinLTOInternalizeAndPromoteInIndex(
llvm::ModuleSummaryIndex& Index,
function_ref<bool(llvm::StringRef,
llvm::ValueInfo)>
isExported,
function_ref<
bool(GlobalValue::GUID,
const llvm::GlobalValueSummary*)>
isPrevailing)
Description
Update the linkages in the given \p Index to mark exported values as external and non-exported values as internal. The ThinLTO backends must apply the changes to the Module via thinLTOInternalizeModule.
Declared at: llvm/include/llvm/LTO/LTO.h:57
Parameters
- llvm::ModuleSummaryIndex& Index
- function_ref<bool(llvm::StringRef, llvm::ValueInfo)> isExported
- function_ref<bool( GlobalValue::GUID, const llvm::GlobalValueSummary*)> isPrevailing