Parse the module summary index out of an IR file.
Declared in <llvm/Bitcode/BitcodeReader.h>
Expected<std::unique_ptr<ModuleSummaryIndex>>
getModuleSummaryIndexForFile(
StringRef Path,
bool IgnoreEmptyThinLTOIndexFile = false);
Returns 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.
The module summary index, an empty index if none is present, or nullptr when an empty file is ignored.
| Name | Description |
|---|---|
| Path | Path to the IR or bitcode file to read. |
| IgnoreEmptyThinLTOIndexFile | If true, treat an empty file as no index. |