gem5  v20.1.0.0
Public Member Functions | List of all members
StaticRegisterManagerPolicy Class Reference

#include <static_register_manager_policy.hh>

Inheritance diagram for StaticRegisterManagerPolicy:
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
 
void regStats () override
 
- Public Member Functions inherited from RegisterManagerPolicy
virtual void setParent (ComputeUnit *_cu)
 

Additional Inherited Members

- Protected Attributes inherited from RegisterManagerPolicy
ComputeUnitcu
 

Detailed Description

Definition at line 43 of file static_register_manager_policy.hh.

Constructor & Destructor Documentation

◆ StaticRegisterManagerPolicy()

StaticRegisterManagerPolicy::StaticRegisterManagerPolicy ( )

Definition at line 47 of file static_register_manager_policy.cc.

Member Function Documentation

◆ allocateRegisters()

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

◆ canAllocateSgprs()

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

◆ canAllocateVgprs()

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

◆ exec()

void StaticRegisterManagerPolicy::exec ( )
overridevirtual

Implements RegisterManagerPolicy.

Definition at line 52 of file static_register_manager_policy.cc.

◆ freeRegisters()

void StaticRegisterManagerPolicy::freeRegisters ( Wavefront w)
overridevirtual

Implements RegisterManagerPolicy.

Definition at line 139 of file static_register_manager_policy.cc.

References ArmISA::i, mapSgpr(), mapVgpr(), panic_if, and MipsISA::w.

◆ mapSgpr()

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

Implements RegisterManagerPolicy.

Definition at line 77 of file static_register_manager_policy.cc.

References panic_if, and MipsISA::w.

Referenced by freeRegisters().

◆ mapVgpr()

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

Implements RegisterManagerPolicy.

Definition at line 57 of file static_register_manager_policy.cc.

References panic_if, and MipsISA::w.

Referenced by freeRegisters().

◆ regStats()

void StaticRegisterManagerPolicy::regStats ( )
overridevirtual

Implements RegisterManagerPolicy.

Definition at line 186 of file static_register_manager_policy.cc.


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

Generated on Wed Sep 30 2020 14:02:32 for gem5 by doxygen 1.8.17