gem5  v20.1.0.0
Public Member Functions | Private Member Functions | List of all members
X86ISA::InstRegIndex Struct Reference

Class for register indices passed to instruction constructors. More...

#include <static_inst.hh>

Inheritance diagram for X86ISA::InstRegIndex:
RegId

Public Member Functions

 InstRegIndex (RegIndex _idx)
 
- Public Member Functions inherited from RegId
 RegId ()
 
 RegId (RegClass reg_class, RegIndex reg_idx)
 
 RegId (RegClass reg_class, RegIndex reg_idx, ElemIndex elem_idx)
 
bool operator== (const RegId &that) const
 
bool operator!= (const RegId &that) const
 
bool operator< (const RegId &that) const
 Order operator. More...
 
bool isRenameable () const
 Return true if this register can be renamed. More...
 
bool isZeroReg () const
 Check if this is the zero register. More...
 
bool isIntReg () const
 
bool isFloatReg () const
 
bool isVecReg () const
 @Return true if it is a condition-code physical register. More...
 
bool isVecElem () const
 @Return true if it is a condition-code physical register. More...
 
bool isVecPredReg () const
 @Return true if it is a predicate physical register. More...
 
bool isCCReg () const
 @Return true if it is a condition-code physical register. More...
 
bool isMiscReg () const
 @Return true if it is a condition-code physical register. More...
 
bool isRenameable ()
 Return true if this register can be renamed. More...
 
const RegIndexelemIndex () const
 Elem accessor. More...
 
const RegClassclassValue () const
 Class accessor. More...
 
const char * className () const
 Return a const char* with the register class name. More...
 
int getNumPinnedWrites () const
 
void setNumPinnedWrites (int num_writes)
 
const RegIndexindex () const
 Index accessors. More...
 
RegIndexindex ()
 
RegIndex flatIndex () const
 Index flattening. More...
 

Private Member Functions

RegClass computeRegClass (RegIndex _idx)
 

Additional Inherited Members

- Protected Attributes inherited from RegId
RegClass regClass
 
RegIndex regIdx
 
ElemIndex elemIdx
 
int numPinnedWrites
 
- Static Protected Attributes inherited from RegId
static const char * regClassStrings []
 
static constexpr size_t Scale = TheISA::NumVecElemPerVecReg
 

Detailed Description

Class for register indices passed to instruction constructors.

Using a wrapper struct for these lets take advantage of the compiler's type checking.

Definition at line 52 of file static_inst.hh.

Constructor & Destructor Documentation

◆ InstRegIndex()

X86ISA::InstRegIndex::InstRegIndex ( RegIndex  _idx)
inlineexplicit

Definition at line 54 of file static_inst.hh.

Member Function Documentation

◆ computeRegClass()

RegClass X86ISA::InstRegIndex::computeRegClass ( RegIndex  _idx)
inlineprivate

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

Generated on Wed Sep 30 2020 14:03:15 for gem5 by doxygen 1.8.17