LLVM  14.0.0git
Public Member Functions | List of all members
llvm::mca::InOrderIssueStage Class Referencefinal

#include "llvm/MCA/Stages/InOrderIssueStage.h"

Inheritance diagram for llvm::mca::InOrderIssueStage:
Inheritance graph
[legend]
Collaboration diagram for llvm::mca::InOrderIssueStage:
Collaboration graph
[legend]

Public Member Functions

 InOrderIssueStage (const MCSubtargetInfo &STI, RegisterFile &PRF, CustomBehaviour &CB, LSUnit &LSU)
 
unsigned getIssueWidth () const
 
bool isAvailable (const InstRef &) const override
 Returns true if it can execute IR during this cycle. More...
 
bool hasWorkToComplete () const override
 Returns true if some instructions are still executing this stage. More...
 
Error execute (InstRef &IR) override
 The primary action that this stage performs on instruction IR. More...
 
Error cycleStart () override
 Called once at the start of each cycle. More...
 
Error cycleEnd () override
 Called once at the end of each cycle. More...
 
- Public Member Functions inherited from llvm::mca::Stage
 Stage ()
 
virtual ~Stage ()
 
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

- Protected Member Functions inherited from llvm::mca::Stage
const std::set< HWEventListener * > & getListeners () const
 

Detailed Description

Definition at line 54 of file InOrderIssueStage.h.

Constructor & Destructor Documentation

◆ InOrderIssueStage()

llvm::mca::InOrderIssueStage::InOrderIssueStage ( const MCSubtargetInfo STI,
RegisterFile PRF,
CustomBehaviour CB,
LSUnit LSU 
)

Definition at line 46 of file InOrderIssueStage.cpp.

Member Function Documentation

◆ cycleEnd()

llvm::Error llvm::mca::InOrderIssueStage::cycleEnd ( )
overridevirtual

Called once at the end of each cycle.

Reimplemented from llvm::mca::Stage.

Definition at line 424 of file InOrderIssueStage.cpp.

References llvm::mca::StallInfo::cycleEnd(), and llvm::mca::RegisterFile::cycleEnd().

◆ cycleStart()

llvm::Error llvm::mca::InOrderIssueStage::cycleStart ( )
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 382 of file InOrderIssueStage.cpp.

References assert(), llvm::mca::StallInfo::clear(), llvm::mca::LSUnitBase::cycleEvent(), llvm::mca::ResourceManager::cycleEvent(), llvm::mca::RegisterFile::cycleStart(), E, llvm::mca::StallInfo::getCyclesLeft(), llvm::mca::StallInfo::getInstruction(), getIssueWidth(), IR, and llvm::mca::StallInfo::isValid().

◆ execute()

llvm::Error llvm::mca::InOrderIssueStage::execute ( InstRef IR)
overridevirtual

The primary action that this stage performs on instruction IR.

Implements llvm::mca::Stage.

Definition at line 199 of file InOrderIssueStage.cpp.

References llvm::mca::LSUnit::dispatch(), E, IR, llvm::mca::InstructionBase::isMemOp(), llvm::mca::StallInfo::isValid(), and llvm::mca::Instruction::setLSUTokenID().

◆ getIssueWidth()

unsigned llvm::mca::InOrderIssueStage::getIssueWidth ( ) const

◆ hasWorkToComplete()

bool llvm::mca::InOrderIssueStage::hasWorkToComplete ( ) const
overridevirtual

Returns true if some instructions are still executing this stage.

Implements llvm::mca::Stage.

Definition at line 56 of file InOrderIssueStage.cpp.

References llvm::mca::StallInfo::isValid().

◆ isAvailable()

bool llvm::mca::InOrderIssueStage::isAvailable ( const InstRef IR) const
overridevirtual

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