ΒΆstd::unique_ptr<Module> parseAssemblyString(
    llvm::StringRef AsmString,
    llvm::SMDiagnostic& Err,
    llvm::LLVMContext& Context,
    llvm::SlotMapping* Slots = nullptr)

Description

The function is a secondary interface to the LLVM Assembly Parser. It parses an ASCII string that (presumably) contains LLVM Assembly code. It returns a Module (intermediate representation) with the corresponding features. Note that this does not verify that the generated Module is valid, so you should run the verifier after parsing the file to check that it is okay. Parse LLVM Assembly from a string

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

Parameters

llvm::StringRef AsmString
The string containing assembly
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.