LLVM 20.0.0git
|
Class which can be overriden by targets to modify the mca::Instruction objects before the pipeline starts. More...
#include "llvm/MCA/CustomBehaviour.h"
Public Member Functions | |
InstrPostProcess (const MCSubtargetInfo &STI, const MCInstrInfo &MCII) | |
virtual | ~InstrPostProcess ()=default |
virtual void | postProcessInstruction (std::unique_ptr< Instruction > &Inst, const MCInst &MCI) |
This method can be overriden by targets to modify the mca::Instruction object after it has been lowered from the MCInst. | |
virtual void | resetState () |
Protected Attributes | |
const MCSubtargetInfo & | STI |
const MCInstrInfo & | MCII |
Class which can be overriden by targets to modify the mca::Instruction objects before the pipeline starts.
A common usage of this class is to add immediate operands to certain instructions or to remove Defs/Uses from an instruction where the schedulinng model is incorrect.
Definition at line 36 of file CustomBehaviour.h.
|
inline |
Definition at line 42 of file CustomBehaviour.h.
|
virtualdefault |
|
inlinevirtual |
This method can be overriden by targets to modify the mca::Instruction object after it has been lowered from the MCInst.
This is generally a less disruptive alternative to modifying the scheduling model.
Reimplemented in llvm::mca::AMDGPUInstrPostProcess, and llvm::mca::X86InstrPostProcess.
Definition at line 51 of file CustomBehaviour.h.
|
inlinevirtual |
Definition at line 57 of file CustomBehaviour.h.
|
protected |
Definition at line 39 of file CustomBehaviour.h.
|
protected |
Definition at line 38 of file CustomBehaviour.h.