ΒΆllvm::ParsedModuleAndIndex parseAssemblyWithIndex(
    llvm::MemoryBufferRef F,
    llvm::SMDiagnostic& Err,
    llvm::LLVMContext& Context,
    llvm::SlotMapping* Slots = nullptr,
    bool UpgradeDebugInfo = true,
    llvm::StringRef DataLayoutString = "")

Description

Parse LLVM Assembly including the summary index from a MemoryBuffer. parseAssemblyFileWithIndex is a wrapper around this function.

Declared at: llvm/include/llvm/AsmParser/Parser.h:138

Parameters

llvm::MemoryBufferRef F
The MemoryBuffer containing assembly with summary
llvm::SMDiagnostic& Err
Error result info.
llvm::LLVMContext& Context
llvm::SlotMapping* Slots = nullptr
The optional slot mapping that will be initialized during parsing.
bool UpgradeDebugInfo = true
Run UpgradeDebugInfo, which runs the Verifier. This option should only be set to false by llvm-as for use inside the LLVM testuite!
llvm::StringRef DataLayoutString = ""
Override datalayout in the llvm assembly.