LLVM  8.0.1
Public Member Functions | List of all members
llvm::mca::EntryStage Class Referencefinal

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

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

Public Member Functions

 EntryStage (SourceMgr &SM)
 
bool isAvailable (const InstRef &IR) 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 27 of file EntryStage.h.

Constructor & Destructor Documentation

◆ EntryStage()

llvm::mca::EntryStage::EntryStage ( SourceMgr SM)
inline

Definition at line 40 of file EntryStage.h.

References cycleEnd(), cycleStart(), execute(), hasWorkToComplete(), IR, and isAvailable().

Member Function Documentation

◆ cycleEnd()

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

Called once at the end of each cycle.

Reimplemented from llvm::mca::Stage.

Definition at line 58 of file EntryStage.cpp.

References llvm::find_if(), I, and llvm::make_range().

Referenced by EntryStage().

◆ cycleStart()

llvm::Error llvm::mca::EntryStage::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 52 of file EntryStage.cpp.

Referenced by EntryStage().

◆ execute()

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

The primary action that this stage performs on instruction IR.

Implements llvm::mca::Stage.

Definition at line 41 of file EntryStage.cpp.

References assert(), llvm::mca::InstRef::invalidate(), and llvm::mca::Stage::moveToTheNextStage().

Referenced by EntryStage().

◆ hasWorkToComplete()

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

Returns true if some instructions are still executing this stage.

Implements llvm::mca::Stage.

Definition at line 22 of file EntryStage.cpp.

Referenced by EntryStage().

◆ isAvailable()

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

Returns true if it can execute IR during this cycle.

Reimplemented from llvm::mca::Stage.

Definition at line 24 of file EntryStage.cpp.

References assert(), llvm::mca::Stage::checkNextStage(), llvm::mca::SourceMgr::hasNext(), llvm::mca::SourceMgr::peekNext(), and llvm::mca::SourceMgr::updateNext().

Referenced by EntryStage().


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