LLVM
13.0.0git
|
#include "llvm/MCA/Stages/RetireStage.h"
Public Member Functions | |
RetireStage (RetireControlUnit &R, RegisterFile &F, LSUnitBase &LS) | |
bool | hasWorkToComplete () const override |
Returns true if some instructions are still executing this stage. More... | |
Error | cycleStart () override |
Called once at the start of each cycle. More... | |
Error | execute (InstRef &IR) override |
The primary action that this stage performs on instruction IR. More... | |
void | notifyInstructionRetired (const InstRef &IR) const |
![]() | |
Stage () | |
virtual | ~Stage () |
virtual bool | isAvailable (const InstRef &IR) const |
Returns true if it can execute IR during this cycle. More... | |
virtual Error | cycleEnd () |
Called once at the end of each cycle. More... | |
void | setNextInSequence (Stage *NextStage) |
bool | checkNextStage (const InstRef &IR) const |
Error | moveToTheNextStage (InstRef &IR) |
Called when an instruction is ready to move the next pipeline stage. More... | |
void | addListener (HWEventListener *Listener) |
Add a listener to receive callbacks during the execution of this stage. More... | |
template<typename EventT > | |
void | notifyEvent (const EventT &Event) const |
Notify listeners of a particular hardware event. More... | |
Additional Inherited Members | |
![]() | |
const std::set< HWEventListener * > & | getListeners () const |
Definition at line 27 of file RetireStage.h.
|
inline |
Definition at line 37 of file RetireStage.h.
|
overridevirtual |
Called once at the start of each cycle.
This can be used as a setup phase to prepare for the executions during the cycle.
Reimplemented from llvm::mca::Stage.
Definition at line 25 of file RetireStage.cpp.
References llvm::mca::RetireControlUnit::consumeCurrentToken(), llvm::mca::RetireControlUnit::RUToken::Executed, llvm::mca::RetireControlUnit::getCurrentToken(), llvm::mca::RetireControlUnit::getMaxRetirePerCycle(), llvm::mca::RetireControlUnit::RUToken::IR, llvm::mca::RetireControlUnit::isEmpty(), and notifyInstructionRetired().
|
overridevirtual |
The primary action that this stage performs on instruction IR.
Implements llvm::mca::Stage.
Definition at line 45 of file RetireStage.cpp.
References IR, and llvm::mca::RetireControlUnit::onInstructionExecuted().
|
inlineoverridevirtual |
Returns true if some instructions are still executing this stage.
Implements llvm::mca::Stage.
Definition at line 40 of file RetireStage.h.
Definition at line 50 of file RetireStage.cpp.
References llvm::dbgs(), llvm::mca::InstructionBase::getDefs(), llvm::mca::RegisterFile::getNumRegisterFiles(), IR, llvm::mca::InstructionBase::isMemOp(), LLVM_DEBUG, llvm::mca::LSUnitBase::onInstructionRetired(), and llvm::mca::RegisterFile::removeRegisterWrite().
Referenced by cycleStart().