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

Methods

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&)

Declared at: llvm/include/llvm/CodeGen/MIRParser/MIRParser.h:39

Parameters

const llvm::MIRParser&

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)

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

llvm::Module& M
llvm::MachineModuleInfo& MMI

Returns

true if an error occurred.

~MIRParser()

Declared at: llvm/include/llvm/CodeGen/MIRParser/MIRParser.h:40