Parse LLVM Assembly including the summary index from a MemoryBuffer.

Synopsis

Declared in <llvm/AsmParser/Parser.h>

ParsedModuleAndIndex
parseAssemblyWithIndex(
    MemoryBufferRef F,
    SMDiagnostic& Err,
    LLVMContext& Context,
    SlotMapping* Slots = nullptr);

Description

parseAssemblyFileWithIndex is a wrapper around this function.

Return Value

The parsed Module and ModuleSummaryIndex.

Parameters

Name

Description

F

The MemoryBuffer containing assembly with summary

Err

Error result info.

Context

Context in which to allocate globals info.

Slots

The optional slot mapping that will be initialized during parsing.

Created with MrDocs