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

Description

This function is a main interface to the LLVM Assembly Parser. It parses an ASCII file that (presumably) contains LLVM Assembly code, including a module summary. It returns a Module (intermediate representation) and a ModuleSummaryIndex with the corresponding features. Note that this does not verify that the generated Module or Index are valid, so you should run the verifier after parsing the file to check that they are okay. Parse LLVM Assembly from a file

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

Parameters

llvm::StringRef Filename
The name of the file to parse
llvm::SMDiagnostic& Err
Error result info.
llvm::LLVMContext& Context
Context in which to allocate globals info.
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.