class MIPrinter

Declaration

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

Description

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

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

Member Variables

private llvm::raw_ostream& OS
private llvm::ModuleSlotTracker& MST
private const DenseMap<const uint32_t*, unsigned int>& RegisterMaskIds
private anonymous struct / union StackObjectOperandMapping
private SmallVector<llvm::StringRef, 8> SSNs
Synchronization scope names registered with LLVMContext.

Method Overview

  • public MIPrinter(llvm::raw_ostream & OS, llvm::ModuleSlotTracker & MST, const DenseMap<const uint32_t *, unsigned int> & RegisterMaskIds, const DenseMap<int, (anonymous namespace)::FrameIndexOperand> & StackObjectOperandMapping)
  • private bool canPredictBranchProbabilities(const llvm::MachineBasicBlock & MBB) const
  • private bool canPredictSuccessors(const llvm::MachineBasicBlock & MBB) const
  • public void print(const llvm::MachineBasicBlock & MBB)
  • public void print(const llvm::MachineInstr & MI)
  • public void print(const llvm::MachineInstr & MI, unsigned int OpIdx, const llvm::TargetRegisterInfo * TRI, const llvm::TargetInstrInfo * TII, bool ShouldPrintRegisterTies, llvm::LLT TypeToPrint, bool PrintDef = true)
  • public void printStackObjectReference(int FrameIndex)

Methods

MIPrinter(
    llvm::raw_ostream& OS,
    llvm::ModuleSlotTracker& MST,
    const DenseMap<const uint32_t*, unsigned int>&
        RegisterMaskIds,
    const DenseMap<
        int,
        (anonymous namespace)::FrameIndexOperand>&
        StackObjectOperandMapping)

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

Parameters

llvm::raw_ostream& OS
llvm::ModuleSlotTracker& MST
const DenseMap<const uint32_t*, unsigned int>& RegisterMaskIds
const DenseMap< int, (anonymous namespace)::FrameIndexOperand>& StackObjectOperandMapping

bool canPredictBranchProbabilities(
    const llvm::MachineBasicBlock& MBB) const

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

Parameters

const llvm::MachineBasicBlock& MBB

bool canPredictSuccessors(
    const llvm::MachineBasicBlock& MBB) const

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

Parameters

const llvm::MachineBasicBlock& MBB

void print(const llvm::MachineBasicBlock& MBB)

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

Parameters

const llvm::MachineBasicBlock& MBB

void print(const llvm::MachineInstr& MI)

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

Parameters

const llvm::MachineInstr& MI

void print(const llvm::MachineInstr& MI,
           unsigned int OpIdx,
           const llvm::TargetRegisterInfo* TRI,
           const llvm::TargetInstrInfo* TII,
           bool ShouldPrintRegisterTies,
           llvm::LLT TypeToPrint,
           bool PrintDef = true)

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

Parameters

const llvm::MachineInstr& MI
unsigned int OpIdx
const llvm::TargetRegisterInfo* TRI
const llvm::TargetInstrInfo* TII
bool ShouldPrintRegisterTies
llvm::LLT TypeToPrint
bool PrintDef = true

void printStackObjectReference(int FrameIndex)

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

Parameters

int FrameIndex