LLVM 20.0.0git
|
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< Module > | parseIRModule (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 . | |
bool | parseMachineFunctions (Module &M, ModuleAnalysisManager &MAM) |
Parses MachineFunctions in the MIR file and add them as the result of MachineFunctionAnalysis in ModulePassManager MAM . | |
This class initializes machine functions by applying the state loaded from a MIR file.
Definition at line 45 of file MIRParser.h.
MIRParser::MIRParser | ( | std::unique_ptr< MIRParserImpl > | Impl | ) |
Definition at line 1110 of file MIRParser.cpp.
|
default |
std::unique_ptr< Module > MIRParser::parseIRModule | ( | DataLayoutCallbackTy | DataLayoutCallback = [](StringRef, StringRef) { 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.
Definition at line 1116 of file MIRParser.cpp.
bool MIRParser::parseMachineFunctions | ( | Module & | M, |
MachineModuleInfo & | MMI | ||
) |
Parses MachineFunctions in the MIR file and add them to the given MachineModuleInfo MMI
.
Definition at line 1120 of file MIRParser.cpp.
bool MIRParser::parseMachineFunctions | ( | Module & | M, |
ModuleAnalysisManager & | MAM | ||
) |
Parses MachineFunctions in the MIR file and add them as the result of MachineFunctionAnalysis in ModulePassManager MAM
.
User should register at least MachineFunctionAnalysis, MachineModuleAnalysis, FunctionAnalysisManagerModuleProxy and PassInstrumentationAnalysis in MAM
before parsing MIR.
Definition at line 1124 of file MIRParser.cpp.
References llvm::AnalysisManager< IRUnitT, ExtraArgTs >::getResult(), and MAM.