LLVM 22.0.0git
llvm::mca::InstructionTables Class Referencefinal

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

Inheritance diagram for llvm::mca::InstructionTables:
[legend]

Public Member Functions

 InstructionTables (const MCSchedModel &Model)
bool hasWorkToComplete () const override
 Returns true if some instructions are still executing this stage.
Error execute (InstRef &IR) override
 The primary action that this stage performs on instruction IR.
Public Member Functions inherited from llvm::mca::Stage
 Stage ()=default
virtual ~Stage ()
virtual bool isAvailable (const InstRef &IR) const
 Returns true if it can execute IR during this cycle.
virtual Error cycleStart ()
 Called once at the start of each cycle.
virtual Error cycleResume ()
 Called after the pipeline is resumed from pausing state.
virtual Error cycleEnd ()
 Called once at the end of each cycle.
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.
void addListener (HWEventListener *Listener)
 Add a listener to receive callbacks during the execution of this stage.
template<typename EventT>
void notifyEvent (const EventT &Event) const
 Notify listeners of a particular hardware event.

Additional Inherited Members

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

Detailed Description

Definition at line 29 of file InstructionTables.h.

Constructor & Destructor Documentation

◆ InstructionTables()

llvm::mca::InstructionTables::InstructionTables ( const MCSchedModel & Model)
inline

Definition at line 35 of file InstructionTables.h.

References llvm::mca::computeProcResourceMasks().

Member Function Documentation

◆ execute()

Error llvm::mca::InstructionTables::execute ( InstRef & IR)
overridevirtual

The primary action that this stage performs on instruction IR.

Implements llvm::mca::Stage.

Definition at line 22 of file InstructionTables.cpp.

References E(), llvm::find(), I, IR, llvm::mca::Stage::notifyEvent(), llvm::MCProcResourceDesc::NumUnits, and llvm::MCProcResourceDesc::SubUnitsIdxBegin.

◆ hasWorkToComplete()

bool llvm::mca::InstructionTables::hasWorkToComplete ( ) const
inlineoverridevirtual

Returns true if some instructions are still executing this stage.

Implements llvm::mca::Stage.

Definition at line 40 of file InstructionTables.h.


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