llvm::MIRParser::parseMachineFunctions

Parses MachineFunctions into MachineFunctionAnalysis results in MAM.

Synopsis

Declared in <llvm/CodeGen/MIRParser/MIRParser.h>

bool
parseMachineFunctions(
    Module& M,
    ModuleAnalysisManager& MAM);

Description

Machine functions from the MIR file are added as the result of MachineFunctionAnalysis in ModulePassManager MAM. User should register at least MachineFunctionAnalysis, MachineModuleAnalysis, FunctionAnalysisManagerModuleProxy and PassInstrumentationAnalysis in MAM before parsing MIR.

Return Value

true if an error occurred.

Parameters

NameDescription
M- The LLVM IR module that owns the machine functions.
MAM- Module analysis manager that holds MachineFunctionAnalysis.