llvm::getModuleSummaryIndex

Parse the specified bitcode buffer, returning the module summary index.

Synopsis

Declared in <llvm/Bitcode/BitcodeReader.h>

Expected<std::unique_ptr<ModuleSummaryIndex>>
getModuleSummaryIndex(MemoryBufferRef Buffer);

Return Value

The parsed module summary index, or an Error on failure.

Parameters

NameDescription
BufferMemory buffer containing the bitcode.