LLVM  10.0.0svn
Public Member Functions | List of all members
llvm::MIPrinter Class Reference

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

Public Member Functions

 MIPrinter (raw_ostream &OS, ModuleSlotTracker &MST, const DenseMap< const uint32_t *, unsigned > &RegisterMaskIds, const DenseMap< int, FrameIndexOperand > &StackObjectOperandMapping)
 
void print (const MachineBasicBlock &MBB)
 
void print (const MachineInstr &MI)
 
void printStackObjectReference (int FrameIndex)
 
void print (const MachineInstr &MI, unsigned OpIdx, const TargetRegisterInfo *TRI, bool ShouldPrintRegisterTies, LLT TypeToPrint, bool PrintDef=true)
 

Detailed Description

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

Definition at line 142 of file MIRPrinter.cpp.

Constructor & Destructor Documentation

◆ MIPrinter()

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

Definition at line 154 of file MIRPrinter.cpp.

References llvm::ISD::FrameIndex, MI, print(), and TRI.

Member Function Documentation

◆ print() [1/3]

void MIPrinter::print ( const MachineBasicBlock MBB)

◆ print() [2/3]

void MIPrinter::print ( const MachineInstr MI)

◆ print() [3/3]

void MIPrinter::print ( const MachineInstr MI,
unsigned  OpIdx,
const TargetRegisterInfo TRI,
bool  ShouldPrintRegisterTies,
LLT  TypeToPrint,
bool  PrintDef = true 
)

Definition at line 818 of file MIRPrinter.cpp.

References llvm::MachineInstr::findTiedOperandIdx(), llvm::MachineOperand::getImm(), llvm::MachineOperand::getIndex(), llvm::TargetMachine::getIntrinsicInfo(), llvm::MachineInstr::getMF(), llvm::MachineInstr::getOperand(), llvm::MachineOperand::getParent(), llvm::MachineOperand::getRegMask(), llvm::TargetRegisterInfo::getRegMaskNames(), llvm::MachineFunction::getTarget(), llvm::MachineOperand::getType(), llvm::MachineOperand::isDef(), llvm::MachineInstr::isOperandSubregIdx(), llvm::MachineOperand::isReg(), llvm::MachineOperand::isTied(), LLVM_FALLTHROUGH, llvm::MachineOperand::MO_BlockAddress, llvm::MachineOperand::MO_CFIIndex, llvm::MachineOperand::MO_CImmediate, llvm::MachineOperand::MO_ConstantPoolIndex, llvm::MachineOperand::MO_ExternalSymbol, llvm::MachineOperand::MO_FPImmediate, llvm::MachineOperand::MO_FrameIndex, llvm::MachineOperand::MO_GlobalAddress, llvm::MachineOperand::MO_Immediate, llvm::MachineOperand::MO_IntrinsicID, llvm::MachineOperand::MO_JumpTableIndex, llvm::MachineOperand::MO_MachineBasicBlock, llvm::MachineOperand::MO_MCSymbol, llvm::MachineOperand::MO_Metadata, llvm::MachineOperand::MO_Predicate, llvm::MachineOperand::MO_Register, llvm::MachineOperand::MO_RegisterLiveOut, llvm::MachineOperand::MO_RegisterMask, llvm::MachineOperand::MO_ShuffleMask, llvm::MachineOperand::MO_TargetIndex, llvm::MachineOperand::print(), printCustomRegMask(), llvm::MachineOperand::printSubRegIdx(), llvm::MachineOperand::printTargetFlags(), TII, and TRI.

◆ printStackObjectReference()

void MIPrinter::printStackObjectReference ( int  FrameIndex)

The documentation for this class was generated from the following file: