class MIRPrinter

Declaration

class MIRPrinter { /* full declaration omitted */ };

Description

This class prints out the machine functions using the MIR serialization format.

Declared at: llvm/lib/CodeGen/MIRPrinter.cpp:100

Member Variables

private llvm::raw_ostream& OS
private DenseMap<const uint32_t*, unsigned int> RegisterMaskIds
private anonymous struct / union StackObjectOperandMapping
Maps from stack object indices to operand indices which will be used when printing frame index machine operands.

Method Overview

  • public MIRPrinter(llvm::raw_ostream & OS)
  • public void convert(yaml::MachineFunction & MF, const llvm::MachineRegisterInfo & RegInfo, const llvm::TargetRegisterInfo * TRI)
  • public void convert(llvm::ModuleSlotTracker & MST, yaml::MachineFrameInfo & YamlMFI, const llvm::MachineFrameInfo & MFI)
  • public void convert(yaml::MachineFunction & MF, const llvm::MachineConstantPool & ConstantPool)
  • public void convert(llvm::ModuleSlotTracker & MST, yaml::MachineJumpTable & YamlJTI, const llvm::MachineJumpTableInfo & JTI)
  • public void convertCallSiteObjects(yaml::MachineFunction & YMF, const llvm::MachineFunction & MF, llvm::ModuleSlotTracker & MST)
  • public void convertMachineMetadataNodes(yaml::MachineFunction & YMF, const llvm::MachineFunction & MF, llvm::MachineModuleSlotTracker & MST)
  • public void convertStackObjects(yaml::MachineFunction & YMF, const llvm::MachineFunction & MF, llvm::ModuleSlotTracker & MST)
  • private void initRegisterMaskIds(const llvm::MachineFunction & MF)
  • public void print(const llvm::MachineFunction & MF)

Methods

MIRPrinter(llvm::raw_ostream& OS)

Declared at: llvm/lib/CodeGen/MIRPrinter.cpp:108

Parameters

llvm::raw_ostream& OS

void convert(
    yaml::MachineFunction& MF,
    const llvm::MachineRegisterInfo& RegInfo,
    const llvm::TargetRegisterInfo* TRI)

Declared at: llvm/lib/CodeGen/MIRPrinter.cpp:112

Parameters

yaml::MachineFunction& MF
const llvm::MachineRegisterInfo& RegInfo
const llvm::TargetRegisterInfo* TRI

void convert(llvm::ModuleSlotTracker& MST,
             yaml::MachineFrameInfo& YamlMFI,
             const llvm::MachineFrameInfo& MFI)

Declared at: llvm/lib/CodeGen/MIRPrinter.cpp:114

Parameters

llvm::ModuleSlotTracker& MST
yaml::MachineFrameInfo& YamlMFI
const llvm::MachineFrameInfo& MFI

void convert(
    yaml::MachineFunction& MF,
    const llvm::MachineConstantPool& ConstantPool)

Declared at: llvm/lib/CodeGen/MIRPrinter.cpp:116

Parameters

yaml::MachineFunction& MF
const llvm::MachineConstantPool& ConstantPool

void convert(
    llvm::ModuleSlotTracker& MST,
    yaml::MachineJumpTable& YamlJTI,
    const llvm::MachineJumpTableInfo& JTI)

Declared at: llvm/lib/CodeGen/MIRPrinter.cpp:118

Parameters

llvm::ModuleSlotTracker& MST
yaml::MachineJumpTable& YamlJTI
const llvm::MachineJumpTableInfo& JTI

void convertCallSiteObjects(
    yaml::MachineFunction& YMF,
    const llvm::MachineFunction& MF,
    llvm::ModuleSlotTracker& MST)

Declared at: llvm/lib/CodeGen/MIRPrinter.cpp:122

Parameters

yaml::MachineFunction& YMF
const llvm::MachineFunction& MF
llvm::ModuleSlotTracker& MST

void convertMachineMetadataNodes(
    yaml::MachineFunction& YMF,
    const llvm::MachineFunction& MF,
    llvm::MachineModuleSlotTracker& MST)

Declared at: llvm/lib/CodeGen/MIRPrinter.cpp:125

Parameters

yaml::MachineFunction& YMF
const llvm::MachineFunction& MF
llvm::MachineModuleSlotTracker& MST

void convertStackObjects(
    yaml::MachineFunction& YMF,
    const llvm::MachineFunction& MF,
    llvm::ModuleSlotTracker& MST)

Declared at: llvm/lib/CodeGen/MIRPrinter.cpp:120

Parameters

yaml::MachineFunction& YMF
const llvm::MachineFunction& MF
llvm::ModuleSlotTracker& MST

void initRegisterMaskIds(
    const llvm::MachineFunction& MF)

Declared at: llvm/lib/CodeGen/MIRPrinter.cpp:130

Parameters

const llvm::MachineFunction& MF

void print(const llvm::MachineFunction& MF)

Declared at: llvm/lib/CodeGen/MIRPrinter.cpp:110

Parameters

const llvm::MachineFunction& MF