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

Holds the Module and ModuleSummaryIndex returned by the interfaces that parse both.

Parameters

Name

Description

F

The MemoryBuffer containing assembly with summary

Err

Error result info.

Slots

The optional slot mapping that will be initialized during parsing.

Context

This is an important class for using LLVM in a threaded context. It (opaquely) owns and manages the core "global" data of LLVM's core infrastructure, including the type and constant uniquing tables. LLVMContext itself provides no locking guarantees, so you should be careful to have one context per thread.

Created with MrDocs