18 #ifndef LLVM_CODEGEN_MIRPARSER_MIRPARSER_H
19 #define LLVM_CODEGEN_MIRPARSER_MIRPARSER_H
35 std::unique_ptr<MIRParserImpl> Impl;
38 MIRParser(std::unique_ptr<MIRParserImpl> Impl);
76 std::unique_ptr<MIRParser>
81 #endif // LLVM_CODEGEN_MIRPARSER_MIRPARSER_H
This class initializes machine functions by applying the state loaded from a MIR file.
std::unique_ptr< MIRParser > createMIRParser(std::unique_ptr< MemoryBuffer > Contents, LLVMContext &Context)
This function is another interface to the MIR serialization format parser.
This is an important class for using LLVM in a threaded context.
std::unique_ptr< Module > parseLLVMModule()
Parse the optional LLVM IR module that's embedded in the MIR file.
Module.h This file contains the declarations for the Module class.
bool initializeMachineFunction(MachineFunction &MF) override
Initialize the machine function to the state that's described in the MIR file.
MIRParser(std::unique_ptr< MIRParserImpl > Impl)
Lightweight error class with error context and mandatory checking.
StringRef - Represent a constant reference to a string, i.e.
This interface provides a way to initialize machine functions after they are created by the machine f...
std::unique_ptr< MIRParser > createMIRParserFromFile(StringRef Filename, SMDiagnostic &Error, LLVMContext &Context)
This function is the main interface to the MIR serialization format parser.
Instances of this class encapsulate one diagnostic report, allowing printing to a raw_ostream as a ca...