gem5  v21.1.0.2
Public Member Functions | List of all members
gem5::StaticRegisterManagerPolicy Class Reference

#include <static_register_manager_policy.hh>

Inheritance diagram for gem5::StaticRegisterManagerPolicy:
gem5::RegisterManagerPolicy

Public Member Functions

 StaticRegisterManagerPolicy ()
 
void exec () override
 
int mapVgpr (Wavefront *w, int vgprIndex) override
 
int mapSgpr (Wavefront *w, int sgprIndex) override
 
bool canAllocateVgprs (int simdId, int nWfs, int demandPerWf) override
 
bool canAllocateSgprs (int simdId, int nWfs, int demandPerWf) override
 
void allocateRegisters (Wavefront *w, int vectorDemand, int scalarDemand) override
 
void freeRegisters (Wavefront *w) override
 
- Public Member Functions inherited from gem5::RegisterManagerPolicy
virtual void setParent (ComputeUnit *_cu)
 

Additional Inherited Members

- Protected Attributes inherited from gem5::RegisterManagerPolicy
ComputeUnitcu
 

Detailed Description

Definition at line 44 of file static_register_manager_policy.hh.

Constructor & Destructor Documentation

◆ StaticRegisterManagerPolicy()

gem5::StaticRegisterManagerPolicy::StaticRegisterManagerPolicy ( )

Definition at line 48 of file static_register_manager_policy.cc.

Member Function Documentation

◆ allocateRegisters()

void gem5::StaticRegisterManagerPolicy::allocateRegisters ( Wavefront w,
int  vectorDemand,
int  scalarDemand 
)
overridevirtual

◆ canAllocateSgprs()

bool gem5::StaticRegisterManagerPolicy::canAllocateSgprs ( int  simdId,
int  nWfs,
int  demandPerWf 
)
overridevirtual

◆ canAllocateVgprs()

bool gem5::StaticRegisterManagerPolicy::canAllocateVgprs ( int  simdId,
int  nWfs,
int  demandPerWf 
)
overridevirtual

◆ exec()

void gem5::StaticRegisterManagerPolicy::exec ( )
overridevirtual

Implements gem5::RegisterManagerPolicy.

Definition at line 53 of file static_register_manager_policy.cc.

◆ freeRegisters()

void gem5::StaticRegisterManagerPolicy::freeRegisters ( Wavefront w)
overridevirtual

◆ mapSgpr()

int gem5::StaticRegisterManagerPolicy::mapSgpr ( Wavefront w,
int  sgprIndex 
)
overridevirtual

Implements gem5::RegisterManagerPolicy.

Definition at line 78 of file static_register_manager_policy.cc.

References panic_if, and gem5::MipsISA::w.

Referenced by freeRegisters().

◆ mapVgpr()

int gem5::StaticRegisterManagerPolicy::mapVgpr ( Wavefront w,
int  vgprIndex 
)
overridevirtual

Implements gem5::RegisterManagerPolicy.

Definition at line 58 of file static_register_manager_policy.cc.

References panic_if, and gem5::MipsISA::w.

Referenced by freeRegisters().


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

Generated on Tue Sep 21 2021 12:28:14 for gem5 by doxygen 1.8.17