LLVM  4.0.0
Public Member Functions | List of all members
llvm::MIRParser Class Reference

This class initializes machine functions by applying the state loaded from a MIR file. More...

#include <MIRParser.h>

Inheritance diagram for llvm::MIRParser:
[legend]
Collaboration diagram for llvm::MIRParser:
[legend]

Public Member Functions

 MIRParser (std::unique_ptr< MIRParserImpl > Impl)
 
 MIRParser (const MIRParser &)=delete
 
 ~MIRParser () override
 
std::unique_ptr< ModuleparseLLVMModule ()
 Parse the optional LLVM IR module that's embedded in the MIR file. More...
 
bool initializeMachineFunction (MachineFunction &MF) override
 Initialize the machine function to the state that's described in the MIR file. More...
 
- Public Member Functions inherited from llvm::MachineFunctionInitializer
virtual ~MachineFunctionInitializer ()
 

Detailed Description

This class initializes machine functions by applying the state loaded from a MIR file.

Definition at line 34 of file MIRParser.h.

Constructor & Destructor Documentation

MIRParser::MIRParser ( std::unique_ptr< MIRParserImpl Impl)

Definition at line 837 of file MIRParser.cpp.

llvm::MIRParser::MIRParser ( const MIRParser )
delete
MIRParser::~MIRParser ( )
override

Definition at line 840 of file MIRParser.cpp.

Member Function Documentation

bool MIRParser::initializeMachineFunction ( MachineFunction MF)
overridevirtual

Initialize the machine function to the state that's described in the MIR file.

Return true if error occurred.

Implements llvm::MachineFunctionInitializer.

Definition at line 844 of file MIRParser.cpp.

std::unique_ptr< Module > MIRParser::parseLLVMModule ( )

Parse the optional LLVM IR module that's embedded in the MIR file.

A new, empty module is created if the LLVM IR isn't present. Returns null if a parsing error occurred.

Definition at line 842 of file MIRParser.cpp.


The documentation for this class was generated from the following files: