llvm::printMIR

printMIR overloads

Synopses

Declared in <llvm/CodeGen/MIRPrinter.h>

Print LLVM IR using the MIR serialization format to the given output stream.

void
printMIR(
    raw_ostream& OS,
    Module const& M);
» more...

Print MIR using New Pass Manager (uses FunctionAnalysisManager). If VRM is non-null, the printer will serialize VirtRegMap state (split-from, assigned-phys).

void
printMIR(
    raw_ostream& OS,
    FunctionAnalysisManager& FAM,
    MachineFunction const& MF,
    VirtRegMap const* VRM = nullptr);
» more...

Print MIR using Legacy Pass Manager (uses MachineModuleInfo). If VRM is non-null, the printer will serialize VirtRegMap state (split-from, assigned-phys).

void
printMIR(
    raw_ostream& OS,
    MachineModuleInfo const& MMI,
    MachineFunction const& MF,
    VirtRegMap const* VRM = nullptr);
» more...

Parameters

NameDescription
OSOutput stream that receives the printed IR.
MModule whose LLVM IR is printed.
FAMFunction analysis manager associated with MF.
MFMachine function to print.
VRMOptional virtual register map whose state is serialized when non-null.
MMIMachine module info associated with MF.