gem5  v21.1.0.2
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 81 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 85 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 96 of file gpu_dyn_inst.hh.

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

◆ operandIdx()

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

Definition at line 97 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 102 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 113 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 109 of file gpu_dyn_inst.hh.

Referenced by operandIdx().

◆ physIndices

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

Definition at line 115 of file gpu_dyn_inst.hh.

◆ virtIndices

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

Definition at line 114 of file gpu_dyn_inst.hh.

Referenced by virtIdx().


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

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