[#llvm-createMIRParser] = xref:llvm.adoc[llvm]::createMIRParser :relfileprefix: ../ :mrdocs: This function is another interface to the MIR serialization format parser. == Synopsis Declared in `<llvm/CodeGen/MIRParser/MIRParser.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::unique_ptr<MIRParser> createMIRParser( std::unique_ptr<MemoryBuffer> Contents, xref:llvm/LLVMContext.adoc[LLVMContext]& Context, std::function<void(xref:llvm/Function.adoc[Function]&)> ProcessIRFunction = nullptr); ---- == Description It returns a MIR parser that works with the given memory buffer and that can parse the embedded LLVM IR module and initialize the machine functions by parsing the machine function's state. == Return Value A MIR parser for the given buffer. == Parameters [cols="1,4"] |=== | Name| Description | *Contents* | ‐ The MemoryBuffer containing the machine level IR. | *Context* | ‐ Context which will be used for the parsed LLVM IR module. | *ProcessIRFunction* | ‐ function to run on every IR function or stub loaded from the MIR file. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#