gem5  v21.2.1.1
Public Member Functions | Private Attributes | Static Private Attributes | List of all members
gem5::RegClass Class Reference

#include <reg_class.hh>

Public Member Functions

 RegClass (size_t new_size, RegIndex new_zero=-1)
 
 RegClass (size_t new_size, RegClassOps &new_ops, RegIndex new_zero=-1)
 
size_t size () const
 
RegIndex zeroReg () const
 
std::string regName (const RegId &id) const
 

Private Attributes

size_t _size
 
const RegIndex _zeroReg
 
RegClassOps_ops = &defaultOps
 

Static Private Attributes

static DefaultRegClassOps defaultOps
 

Detailed Description

Definition at line 83 of file reg_class.hh.

Constructor & Destructor Documentation

◆ RegClass() [1/2]

gem5::RegClass::RegClass ( size_t  new_size,
RegIndex  new_zero = -1 
)
inline

Definition at line 93 of file reg_class.hh.

◆ RegClass() [2/2]

gem5::RegClass::RegClass ( size_t  new_size,
RegClassOps new_ops,
RegIndex  new_zero = -1 
)
inline

Definition at line 96 of file reg_class.hh.

References _ops.

Member Function Documentation

◆ regName()

std::string gem5::RegClass::regName ( const RegId id) const
inline

Definition at line 105 of file reg_class.hh.

References _ops, and gem5::RegClassOps::regName().

◆ size()

size_t gem5::RegClass::size ( ) const
inline

Definition at line 102 of file reg_class.hh.

References _size.

Referenced by gem5::o3::SimpleRenameMap::init().

◆ zeroReg()

RegIndex gem5::RegClass::zeroReg ( ) const
inline

Definition at line 103 of file reg_class.hh.

References _zeroReg.

Referenced by gem5::o3::SimpleRenameMap::init().

Member Data Documentation

◆ _ops

RegClassOps* gem5::RegClass::_ops = &defaultOps
private

Definition at line 90 of file reg_class.hh.

Referenced by RegClass(), and regName().

◆ _size

size_t gem5::RegClass::_size
private

Definition at line 86 of file reg_class.hh.

Referenced by size().

◆ _zeroReg

const RegIndex gem5::RegClass::_zeroReg
private

Definition at line 87 of file reg_class.hh.

Referenced by zeroReg().

◆ defaultOps

DefaultRegClassOps gem5::RegClass::defaultOps
inlinestaticprivate

Definition at line 89 of file reg_class.hh.


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

Generated on Wed May 4 2022 12:14:44 for gem5 by doxygen 1.8.17