ΒΆvoid computeDeadSymbolsAndUpdateIndirectCalls(
llvm::ModuleSummaryIndex& Index,
const DenseSet<GlobalValue::GUID>&
GUIDPreservedSymbols,
function_ref<llvm::PrevailingType(
GlobalValue::GUID)> isPrevailing)
void computeDeadSymbolsAndUpdateIndirectCalls(
llvm::ModuleSummaryIndex& Index,
const DenseSet<GlobalValue::GUID>&
GUIDPreservedSymbols,
function_ref<llvm::PrevailingType(
GlobalValue::GUID)> isPrevailing)
Description
Compute all the symbols that are "dead": i.e these that can't be reached in the graph from any of the given symbols listed in\p GUIDPreservedSymbols. Non-prevailing symbols are symbols without a prevailing copy anywhere in IR and are normally dead, \p isPrevailing predicate returns status of symbol. Also update call edges for indirect calls to local functions added from SamplePGO when needed.
Declared at: llvm/include/llvm/Transforms/IPO/FunctionImport.h:187
Parameters
- llvm::ModuleSummaryIndex& Index
- const DenseSet<GlobalValue::GUID>& GUIDPreservedSymbols
- function_ref<llvm::PrevailingType( GlobalValue::GUID)> isPrevailing