This function is the main interface to the MIR serialization format parser.
Synopsis
Declared in <llvm/CodeGen/MIRParser/MIRParser.h>
std::unique_ptr<MIRParser>
createMIRParserFromFile(
StringRef Filename,
SMDiagnostic& Error,
LLVMContext& Context,
std::function<void(Function&)> ProcessIRFunction = nullptr);
Description
It reads in a MIR file and returns a MIR parser 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 file, or nullptr if a parsing error occurred.
Parameters
Name |
Description |
Filename |
‐ The name of the file to parse. |
Error |
‐ Error result info. |
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. |
Created with MrDocs