LLVM: llvm::MIRFormatter Class Reference (original) (raw)

MIRFormater - Interface to format MIR operand based on target. More...

#include "[llvm/CodeGen/MIRFormatter.h](MIRFormatter%5F8h%5Fsource.html)"

Public Member Functions
MIRFormatter ()=default
virtual ~MIRFormatter ()=default
virtual void printImm (raw_ostream &OS, const MachineInstr &MI, std::optional< unsigned > OpIdx, int64_t Imm) const
Implement target specific printing for machine operand immediate value, so that we can have more meaningful mnemonic than a 64-bit integer.
virtual bool parseImmMnemonic (const unsigned OpCode, const unsigned OpIdx, StringRef Src, int64_t &Imm, ErrorCallbackType ErrorCallback) const
Implement target specific parsing of immediate mnemonics.
virtual void printCustomPseudoSourceValue (raw_ostream &OS, ModuleSlotTracker &MST, const PseudoSourceValue &PSV) const
Implement target specific printing of target custom pseudo source value.
virtual bool parseCustomPseudoSourceValue (StringRef Src, MachineFunction &MF, PerFunctionMIParsingState &PFS, const PseudoSourceValue *&PSV, ErrorCallbackType ErrorCallback) const
Implement target specific parsing of target custom pseudo source value.

MIRFormater - Interface to format MIR operand based on target.

Definition at line 33 of file MIRFormatter.h.

ErrorCallbackType

llvm::MIRFormatter::MIRFormatter ( ) default

~MIRFormatter()

virtual llvm::MIRFormatter::~MIRFormatter ( ) virtualdefault

parseCustomPseudoSourceValue()

parseImmMnemonic()

parseIRValue()

Helper functions to parse IR value from MIR serialization format which will be useful for target specific parser, e.g.

for parsing IR value for custom pseudo source value.

Definition at line 3710 of file MIParser.cpp.

References llvm::lexMIToken().

printCustomPseudoSourceValue()

Implement target specific printing of target custom pseudo source value.

Default implementation is not necessarily the correct MIR serialization format.

Definition at line 61 of file MIRFormatter.h.

Referenced by llvm::MachineMemOperand::print().

printImm()

printIRValue()


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