LLVM 20.0.0git
|
#include "Target/AMDGPU/AMDGPUMIRFormatter.h"
Public Member Functions | |
AMDGPUMIRFormatter ()=default | |
virtual | ~AMDGPUMIRFormatter ()=default |
virtual void | printImm (raw_ostream &OS, const MachineInstr &MI, std::optional< unsigned > OpIdx, int64_t Imm) const override |
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 override |
Implement target specific parsing of immediate mnemonics. | |
bool | parseCustomPseudoSourceValue (StringRef Src, MachineFunction &MF, PerFunctionMIParsingState &PFS, const PseudoSourceValue *&PSV, ErrorCallbackType ErrorCallback) const override |
Implement target specific parsing of target custom pseudo source value. | |
Public Member Functions inherited from llvm::MIRFormatter | |
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. | |
Additional Inherited Members | |
Public Types inherited from llvm::MIRFormatter | |
typedef function_ref< bool(StringRef::iterator Loc, const Twine &)> | ErrorCallbackType |
Static Public Member Functions inherited from llvm::MIRFormatter | |
static void | printIRValue (raw_ostream &OS, const Value &V, ModuleSlotTracker &MST) |
Helper functions to print IR value as MIR serialization format which will be useful for target specific printer, e.g. | |
static bool | parseIRValue (StringRef Src, MachineFunction &MF, PerFunctionMIParsingState &PFS, const Value *&V, ErrorCallbackType ErrorCallback) |
Helper functions to parse IR value from MIR serialization format which will be useful for target specific parser, e.g. | |
Definition at line 26 of file AMDGPUMIRFormatter.h.
|
default |
|
virtualdefault |
|
overridevirtual |
Implement target specific parsing of target custom pseudo source value.
Reimplemented from llvm::MIRFormatter.
Definition at line 171 of file AMDGPUMIRFormatter.cpp.
References llvm::SIMachineFunctionInfo::getGWSPSV(), llvm::MachineFunction::getInfo(), llvm::MachineFunction::getTarget(), and llvm_unreachable.
|
overridevirtual |
Implement target specific parsing of immediate mnemonics.
The mnemonic is a string with a leading dot.
Reimplemented from llvm::MIRFormatter.
Definition at line 36 of file AMDGPUMIRFormatter.cpp.
|
overridevirtual |
Implement target specific printing for machine operand immediate value, so that we can have more meaningful mnemonic than a 64-bit integer.
Passing None to OpIdx means the index is unknown.
Reimplemented from llvm::MIRFormatter.
Definition at line 20 of file AMDGPUMIRFormatter.cpp.
References assert(), MI, OS, and llvm::MIRFormatter::printImm().