ΒΆvoid computeDeadSymbols(
    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.

Declared at: llvm/include/llvm/Transforms/IPO/FunctionImport.h:173

Parameters

llvm::ModuleSummaryIndex& Index
const DenseSet<GlobalValue::GUID>& GUIDPreservedSymbols
function_ref<llvm::PrevailingType( GlobalValue::GUID)> isPrevailing