ΒΆbool parseAssemblyInto(
llvm::MemoryBufferRef F,
llvm::Module* M,
llvm::ModuleSummaryIndex* Index,
llvm::SMDiagnostic& Err,
llvm::SlotMapping* Slots = nullptr,
llvm::DataLayoutCallbackTy
DataLayoutCallback =
[](llvm::StringRef) { return None; })
bool parseAssemblyInto(
llvm::MemoryBufferRef F,
llvm::Module* M,
llvm::ModuleSummaryIndex* Index,
llvm::SMDiagnostic& Err,
llvm::SlotMapping* Slots = nullptr,
llvm::DataLayoutCallbackTy
DataLayoutCallback =
[](llvm::StringRef) { return None; })
Description
This function is the low-level interface to the LLVM Assembly Parser. This is kept as an independent function instead of being inlined into parseAssembly for the convenience of interactive users that want to add recently parsed bits to an existing module.
Declared at: llvm/include/llvm/AsmParser/Parser.h:155
Parameters
- llvm::MemoryBufferRef F
- The MemoryBuffer containing assembly
- llvm::Module* M
- The module to add data to.
- llvm::ModuleSummaryIndex* Index
- The index to add data to.
- llvm::SMDiagnostic& Err
- Error result info.
- 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.
Returns
true on error.