gem5  v22.1.0.0
Public Member Functions | Private Attributes | List of all members
gem5::RegisterOperandInfo Class Reference

#include <gpu_dyn_inst.hh>

Public Member Functions

 RegisterOperandInfo ()=delete
 
 RegisterOperandInfo (int op_idx, int num_dwords, const std::vector< int > &virt_indices, const std::vector< int > &phys_indices)
 
int numRegisters () const
 The number of registers required to store this operand. More...
 
int operandIdx () const
 
int virtIdx (int reg_num=0) const
 We typically only need the first virtual register for the operand regardless of its size. More...
 

Private Attributes

const int opIdx
 Index of this operand within the set of its parent instruction's operand list. More...
 
const int numDWORDs
 Size of this operand in DWORDs. More...
 
const std::vector< int > virtIndices
 
const std::vector< int > physIndices
 

Detailed Description

Definition at line 79 of file gpu_dyn_inst.hh.

Constructor & Destructor Documentation

◆ RegisterOperandInfo() [1/2]

gem5::RegisterOperandInfo::RegisterOperandInfo ( )
delete

◆ RegisterOperandInfo() [2/2]

gem5::RegisterOperandInfo::RegisterOperandInfo ( int  op_idx,
int  num_dwords,
const std::vector< int > &  virt_indices,
const std::vector< int > &  phys_indices 
)
inline

Definition at line 83 of file gpu_dyn_inst.hh.

Member Function Documentation

◆ numRegisters()

int gem5::RegisterOperandInfo::numRegisters ( ) const
inline

The number of registers required to store this operand.

Definition at line 94 of file gpu_dyn_inst.hh.

References numDWORDs, and gem5::Gcn3ISA::RegSizeDWords.

◆ operandIdx()

int gem5::RegisterOperandInfo::operandIdx ( ) const
inline

Definition at line 95 of file gpu_dyn_inst.hh.

References opIdx.

◆ virtIdx()

int gem5::RegisterOperandInfo::virtIdx ( int  reg_num = 0) const
inline

We typically only need the first virtual register for the operand regardless of its size.

Definition at line 100 of file gpu_dyn_inst.hh.

References virtIndices.

Member Data Documentation

◆ numDWORDs

const int gem5::RegisterOperandInfo::numDWORDs
private

Size of this operand in DWORDs.

Definition at line 111 of file gpu_dyn_inst.hh.

Referenced by numRegisters().

◆ opIdx

const int gem5::RegisterOperandInfo::opIdx
private

Index of this operand within the set of its parent instruction's operand list.

Definition at line 107 of file gpu_dyn_inst.hh.

Referenced by operandIdx().

◆ physIndices

const std::vector<int> gem5::RegisterOperandInfo::physIndices
private

Definition at line 113 of file gpu_dyn_inst.hh.

◆ virtIndices

const std::vector<int> gem5::RegisterOperandInfo::virtIndices
private

Definition at line 112 of file gpu_dyn_inst.hh.

Referenced by virtIdx().


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

Generated on Wed Dec 21 2022 10:23:23 for gem5 by doxygen 1.9.1