ΒΆExpected<std::unique_ptr<ModuleSummaryIndex>>
getModuleSummaryIndexForFile(
    llvm::StringRef Path,
    bool IgnoreEmptyThinLTOIndexFile = false)

Description

Parse the module summary index out of an IR file and return the module summary index object if found, or an empty summary if not. If Path refers to an empty file and IgnoreEmptyThinLTOIndexFile is true, then this function will return nullptr.

Declared at: llvm/include/llvm/Bitcode/BitcodeReader.h:186

Parameters

llvm::StringRef Path
bool IgnoreEmptyThinLTOIndexFile = false