LLVM 19.0.0git
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 "llvm/CodeGen/MIRParser/MIRParser.h"

Public Member Functions

 MIRParser (std::unique_ptr< MIRParserImpl > Impl)
 
 MIRParser (const MIRParser &)=delete
 
 ~MIRParser ()
 
std::unique_ptr< ModuleparseIRModule (DataLayoutCallbackTy DataLayoutCallback=[](StringRef, StringRef) { return std::nullopt;})
 Parses the optional LLVM IR module in the MIR file.
 
bool parseMachineFunctions (Module &M, MachineModuleInfo &MMI)
 Parses MachineFunctions in the MIR file and add them to the given MachineModuleInfo MMI.
 

Detailed Description

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

Definition at line 42 of file MIRParser.h.

Constructor & Destructor Documentation

◆ MIRParser() [1/2]

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

Definition at line 1090 of file MIRParser.cpp.

◆ MIRParser() [2/2]

llvm::MIRParser::MIRParser ( const MIRParser )
delete

◆ ~MIRParser()

MIRParser::~MIRParser ( )
default

Member Function Documentation

◆ parseIRModule()

std::unique_ptr< Module > MIRParser::parseIRModule ( DataLayoutCallbackTy  DataLayoutCallback = [](StringRefStringRef) { return std::nullopt; })

Parses the optional LLVM IR module in the MIR file.

A new, empty module is created if the LLVM IR isn't present.

Returns
nullptr if a parsing error occurred.

Definition at line 1096 of file MIRParser.cpp.

◆ parseMachineFunctions()

bool MIRParser::parseMachineFunctions ( Module M,
MachineModuleInfo MMI 
)

Parses MachineFunctions in the MIR file and add them to the given MachineModuleInfo MMI.

Returns
true if an error occurred.

Definition at line 1100 of file MIRParser.cpp.


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