ΒΆstd::unique_ptr<Module> parseAssembly(
llvm::MemoryBufferRef F,
llvm::SMDiagnostic& Err,
llvm::LLVMContext& Context,
llvm::SlotMapping* Slots = nullptr,
llvm::DataLayoutCallbackTy
DataLayoutCallback =
[](llvm::StringRef) { return None; })
std::unique_ptr<Module> parseAssembly(
llvm::MemoryBufferRef F,
llvm::SMDiagnostic& Err,
llvm::LLVMContext& Context,
llvm::SlotMapping* Slots = nullptr,
llvm::DataLayoutCallbackTy
DataLayoutCallback =
[](llvm::StringRef) { return None; })
Description
parseAssemblyFile and parseAssemblyString are wrappers around this function. Parse LLVM Assembly from a MemoryBuffer.
Declared at: llvm/include/llvm/AsmParser/Parser.h:115
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.
- llvm::DataLayoutCallbackTy DataLayoutCallback = [](llvm::StringRef) { return None; }
- Override datalayout in the llvm assembly.