gem5 [DEVELOP-FOR-25.0]
Loading...
Searching...
No Matches
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.
 
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.
 

Private Attributes

const int opIdx
 Index of this operand within the set of its parent instruction's operand list.
 
const int numDWORDs
 Size of this operand in DWORDs.
 
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.

References numDWORDs, opIdx, physIndices, and virtIndices.

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.

◆ 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(), and RegisterOperandInfo().

◆ 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(), and RegisterOperandInfo().

◆ physIndices

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

Definition at line 113 of file gpu_dyn_inst.hh.

Referenced by RegisterOperandInfo().

◆ virtIndices

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

Definition at line 112 of file gpu_dyn_inst.hh.

Referenced by RegisterOperandInfo(), and virtIdx().


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

Generated on Mon May 26 2025 09:19:24 for gem5 by doxygen 1.13.2