class MIRParser
Declaration
class MIRParser { /* full declaration omitted */ };
Description
This class initializes machine functions by applying the state loaded from a MIR file.
Declared at: llvm/include/llvm/CodeGen/MIRParser/MIRParser.h:34
Method Overview
- public MIRParser(std::unique_ptr<MIRParserImpl> Impl)
- public MIRParser(const llvm::MIRParser &)
- public std::unique_ptr<Module> parseIRModule()
- public bool parseMachineFunctions(llvm::Module & M, llvm::MachineModuleInfo & MMI)
- public ~MIRParser()
Methods
¶MIRParser(std::unique_ptr<MIRParserImpl> Impl)
MIRParser(std::unique_ptr<MIRParserImpl> Impl)
Declared at: llvm/include/llvm/CodeGen/MIRParser/MIRParser.h:38
Parameters
- std::unique_ptr<MIRParserImpl> Impl
¶MIRParser(const llvm::MIRParser&)
MIRParser(const llvm::MIRParser&)
Declared at: llvm/include/llvm/CodeGen/MIRParser/MIRParser.h:39
Parameters
- const llvm::MIRParser&
¶std::unique_ptr<Module> parseIRModule()
std::unique_ptr<Module> parseIRModule()
Description
Parses the optional LLVM IR module in the MIR file. A new, empty module is created if the LLVM IR isn't present.
Declared at: llvm/include/llvm/CodeGen/MIRParser/MIRParser.h:46
Returns
nullptr if a parsing error occurred.
¶bool parseMachineFunctions(
llvm::Module& M,
llvm::MachineModuleInfo& MMI)
bool parseMachineFunctions(
llvm::Module& M,
llvm::MachineModuleInfo& MMI)
Description
Parses MachineFunctions in the MIR file and add them to the given MachineModuleInfo \p MMI.
Declared at: llvm/include/llvm/CodeGen/MIRParser/MIRParser.h:52
Parameters
Returns
true if an error occurred.
¶~MIRParser()
~MIRParser()
Declared at: llvm/include/llvm/CodeGen/MIRParser/MIRParser.h:40