ΒΆstd::unique_ptr<Module> parseAssembly(
llvm::MemoryBufferRef F,
llvm::SMDiagnostic& Err,
llvm::LLVMContext& Context,
llvm::SlotMapping* Slots = nullptr,
bool UpgradeDebugInfo = true,
llvm::StringRef DataLayoutString = "")
std::unique_ptr<Module> parseAssembly(
llvm::MemoryBufferRef F,
llvm::SMDiagnostic& Err,
llvm::LLVMContext& Context,
llvm::SlotMapping* Slots = nullptr,
bool UpgradeDebugInfo = true,
llvm::StringRef DataLayoutString = "")
Description
parseAssemblyFile and parseAssemblyString are wrappers around this function. Parse LLVM Assembly from a MemoryBuffer.
Declared at: llvm/include/llvm/AsmParser/Parser.h:120
Parameters
- llvm::MemoryBufferRef F
- The MemoryBuffer containing assembly
- 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.