gem5  v20.0.0.3
Public Member Functions | Protected Attributes | Private Member Functions | List of all members
Gcn3ISA::Inst_VOP2 Class Reference

#include <op_encodings.hh>

Inheritance diagram for Gcn3ISA::Inst_VOP2:
Gcn3ISA::GCN3GPUStaticInst GPUStaticInst Gcn3ISA::Inst_VOP2__V_ADD_F16 Gcn3ISA::Inst_VOP2__V_ADD_F32 Gcn3ISA::Inst_VOP2__V_ADD_U16 Gcn3ISA::Inst_VOP2__V_ADD_U32 Gcn3ISA::Inst_VOP2__V_ADDC_U32 Gcn3ISA::Inst_VOP2__V_AND_B32 Gcn3ISA::Inst_VOP2__V_ASHRREV_I16 Gcn3ISA::Inst_VOP2__V_ASHRREV_I32 Gcn3ISA::Inst_VOP2__V_CNDMASK_B32 Gcn3ISA::Inst_VOP2__V_LDEXP_F16 Gcn3ISA::Inst_VOP2__V_LSHLREV_B16 Gcn3ISA::Inst_VOP2__V_LSHLREV_B32 Gcn3ISA::Inst_VOP2__V_LSHRREV_B16 Gcn3ISA::Inst_VOP2__V_LSHRREV_B32 Gcn3ISA::Inst_VOP2__V_MAC_F16 Gcn3ISA::Inst_VOP2__V_MAC_F32 Gcn3ISA::Inst_VOP2__V_MADAK_F16 Gcn3ISA::Inst_VOP2__V_MADAK_F32 Gcn3ISA::Inst_VOP2__V_MADMK_F16 Gcn3ISA::Inst_VOP2__V_MADMK_F32 Gcn3ISA::Inst_VOP2__V_MAX_F16 Gcn3ISA::Inst_VOP2__V_MAX_F32 Gcn3ISA::Inst_VOP2__V_MAX_I16 Gcn3ISA::Inst_VOP2__V_MAX_I32 Gcn3ISA::Inst_VOP2__V_MAX_U16 Gcn3ISA::Inst_VOP2__V_MAX_U32 Gcn3ISA::Inst_VOP2__V_MIN_F16 Gcn3ISA::Inst_VOP2__V_MIN_F32 Gcn3ISA::Inst_VOP2__V_MIN_I16 Gcn3ISA::Inst_VOP2__V_MIN_I32 Gcn3ISA::Inst_VOP2__V_MIN_U16 Gcn3ISA::Inst_VOP2__V_MIN_U32 Gcn3ISA::Inst_VOP2__V_MUL_F16 Gcn3ISA::Inst_VOP2__V_MUL_F32 Gcn3ISA::Inst_VOP2__V_MUL_HI_I32_I24 Gcn3ISA::Inst_VOP2__V_MUL_HI_U32_U24 Gcn3ISA::Inst_VOP2__V_MUL_I32_I24 Gcn3ISA::Inst_VOP2__V_MUL_LEGACY_F32 Gcn3ISA::Inst_VOP2__V_MUL_LO_U16 Gcn3ISA::Inst_VOP2__V_MUL_U32_U24 Gcn3ISA::Inst_VOP2__V_OR_B32 Gcn3ISA::Inst_VOP2__V_SUB_F16 Gcn3ISA::Inst_VOP2__V_SUB_F32 Gcn3ISA::Inst_VOP2__V_SUB_U16 Gcn3ISA::Inst_VOP2__V_SUB_U32 Gcn3ISA::Inst_VOP2__V_SUBB_U32 Gcn3ISA::Inst_VOP2__V_SUBBREV_U32 Gcn3ISA::Inst_VOP2__V_SUBREV_F16 Gcn3ISA::Inst_VOP2__V_SUBREV_F32 Gcn3ISA::Inst_VOP2__V_SUBREV_U16 Gcn3ISA::Inst_VOP2__V_SUBREV_U32 Gcn3ISA::Inst_VOP2__V_XOR_B32

Public Member Functions

 Inst_VOP2 (InFmt_VOP2 *, const std::string &opcode)
 
 ~Inst_VOP2 ()
 
int instSize () const override
 
void generateDisassembly () override
 
bool isScalarRegister (int opIdx) override
 
bool isVectorRegister (int opIdx) override
 
int getRegisterIndex (int opIdx, GPUDynInstPtr gpuDynInst) override
 
- Public Member Functions inherited from Gcn3ISA::GCN3GPUStaticInst
 GCN3GPUStaticInst (const std::string &opcode)
 
 ~GCN3GPUStaticInst ()
 
bool isFlatScratchRegister (int opIdx) override
 
bool isExecMaskRegister (int opIdx) override
 
bool isSrcOperand (int opIdx) override
 
bool isDstOperand (int opIdx) override
 
int getOperandSize (int opIdx) override
 
int coalescerTokenCount () const override
 Return the number of tokens needed by the coalescer. More...
 
ScalarRegU32 srcLiteral () const override
 
- Public Member Functions inherited from GPUStaticInst
 GPUStaticInst (const std::string &opcode)
 
void instAddr (int inst_addr)
 
int instAddr () const
 
int nextInstAddr () const
 
void instNum (int num)
 
int instNum ()
 
void ipdInstNum (int num)
 
int ipdInstNum () const
 
virtual void execute (GPUDynInstPtr gpuDynInst)=0
 
const std::string & disassemble ()
 
virtual int getNumOperands ()=0
 
virtual bool isCondRegister (int operandIndex)=0
 
virtual int numDstRegOperands ()=0
 
virtual int numSrcRegOperands ()=0
 
virtual bool isValid () const =0
 
bool isALU () const
 
bool isBranch () const
 
bool isNop () const
 
bool isReturn () const
 
bool isUnconditionalJump () const
 
bool isSpecialOp () const
 
bool isWaitcnt () const
 
bool isBarrier () const
 
bool isMemFence () const
 
bool isMemRef () const
 
bool isFlat () const
 
bool isLoad () const
 
bool isStore () const
 
bool isAtomic () const
 
bool isAtomicNoRet () const
 
bool isAtomicRet () const
 
bool isScalar () const
 
bool readsSCC () const
 
bool writesSCC () const
 
bool readsVCC () const
 
bool writesVCC () const
 
bool isAtomicAnd () const
 
bool isAtomicOr () const
 
bool isAtomicXor () const
 
bool isAtomicCAS () const
 
bool isAtomicExch () const
 
bool isAtomicAdd () const
 
bool isAtomicSub () const
 
bool isAtomicInc () const
 
bool isAtomicDec () const
 
bool isAtomicMax () const
 
bool isAtomicMin () const
 
bool isArgLoad () const
 
bool isGlobalMem () const
 
bool isLocalMem () const
 
bool isArgSeg () const
 
bool isGlobalSeg () const
 
bool isGroupSeg () const
 
bool isKernArgSeg () const
 
bool isPrivateSeg () const
 
bool isReadOnlySeg () const
 
bool isSpillSeg () const
 
bool isWorkitemScope () const
 
bool isWavefrontScope () const
 
bool isWorkgroupScope () const
 
bool isDeviceScope () const
 
bool isSystemScope () const
 
bool isNoScope () const
 
bool isRelaxedOrder () const
 
bool isAcquire () const
 
bool isRelease () const
 
bool isAcquireRelease () const
 
bool isNoOrder () const
 
bool isGloballyCoherent () const
 Coherence domain of a memory instruction. More...
 
bool isSystemCoherent () const
 
virtual void initiateAcc (GPUDynInstPtr gpuDynInst)
 
virtual void completeAcc (GPUDynInstPtr gpuDynInst)
 
virtual uint32_t getTargetPc ()
 
void setFlag (Flags flag)
 
virtual void execLdAcq (GPUDynInstPtr gpuDynInst)
 
virtual void execSt (GPUDynInstPtr gpuDynInst)
 
virtual void execAtomic (GPUDynInstPtr gpuDynInst)
 
virtual void execAtomicAcq (GPUDynInstPtr gpuDynInst)
 

Protected Attributes

InFmt_VOP2 instData
 
InstFormat extData
 
uint32_t varSize
 
- Protected Attributes inherited from Gcn3ISA::GCN3GPUStaticInst
ScalarRegU32 _srcLiteral
 if the instruction has a src literal - an immediate value that is part of the instruction stream - we store that here More...
 
- Protected Attributes inherited from GPUStaticInst
const std::string opcode
 
std::string disassembly
 
int _instNum
 
int _instAddr
 
int _ipdInstNum
 Identifier of the immediate post-dominator instruction. More...
 
std::bitset< Num_Flags > _flags
 

Private Member Functions

bool hasSecondDword (InFmt_VOP2 *)
 

Additional Inherited Members

- Public Attributes inherited from GPUStaticInst
Enums::StorageClassType executed_as
 
- Static Public Attributes inherited from GPUStaticInst
static uint64_t dynamic_id_count
 
- Protected Member Functions inherited from Gcn3ISA::GCN3GPUStaticInst
void panicUnimplemented () const
 

Detailed Description

Definition at line 288 of file op_encodings.hh.

Constructor & Destructor Documentation

◆ Inst_VOP2()

Gcn3ISA::Inst_VOP2::Inst_VOP2 ( InFmt_VOP2 iFmt,
const std::string &  opcode 
)

◆ ~Inst_VOP2()

Gcn3ISA::Inst_VOP2::~Inst_VOP2 ( )

Definition at line 701 of file op_encodings.cc.

Member Function Documentation

◆ generateDisassembly()

void Gcn3ISA::Inst_VOP2::generateDisassembly ( )
overridevirtual

◆ getRegisterIndex()

int Gcn3ISA::Inst_VOP2::getRegisterIndex ( int  opIdx,
GPUDynInstPtr  gpuDynInst 
)
overridevirtual

◆ hasSecondDword()

bool Gcn3ISA::Inst_VOP2::hasSecondDword ( InFmt_VOP2 iFmt)
private

◆ instSize()

int Gcn3ISA::Inst_VOP2::instSize ( ) const
overridevirtual

Implements GPUStaticInst.

Definition at line 706 of file op_encodings.cc.

References varSize.

◆ isScalarRegister()

bool Gcn3ISA::Inst_VOP2::isScalarRegister ( int  opIdx)
overridevirtual

◆ isVectorRegister()

bool Gcn3ISA::Inst_VOP2::isVectorRegister ( int  opIdx)
overridevirtual

Member Data Documentation

◆ extData

InstFormat Gcn3ISA::Inst_VOP2::extData
protected

◆ instData

InFmt_VOP2 Gcn3ISA::Inst_VOP2::instData
protected

Definition at line 303 of file op_encodings.hh.

Referenced by Gcn3ISA::Inst_VOP2__V_CNDMASK_B32::execute(), Gcn3ISA::Inst_VOP2__V_ADD_F32::execute(), Gcn3ISA::Inst_VOP2__V_SUB_F32::execute(), Gcn3ISA::Inst_VOP2__V_SUBREV_F32::execute(), Gcn3ISA::Inst_VOP2__V_MUL_LEGACY_F32::execute(), Gcn3ISA::Inst_VOP2__V_MUL_F32::execute(), Gcn3ISA::Inst_VOP2__V_MUL_I32_I24::execute(), Gcn3ISA::Inst_VOP2__V_MUL_HI_I32_I24::execute(), Gcn3ISA::Inst_VOP2__V_MUL_U32_U24::execute(), Gcn3ISA::Inst_VOP2__V_MUL_HI_U32_U24::execute(), Gcn3ISA::Inst_VOP2__V_MIN_F32::execute(), Gcn3ISA::Inst_VOP2__V_MAX_F32::execute(), Gcn3ISA::Inst_VOP2__V_MIN_I32::execute(), Gcn3ISA::Inst_VOP2__V_MAX_I32::execute(), Gcn3ISA::Inst_VOP2__V_MIN_U32::execute(), Gcn3ISA::Inst_VOP2__V_MAX_U32::execute(), Gcn3ISA::Inst_VOP2__V_LSHRREV_B32::execute(), Gcn3ISA::Inst_VOP2__V_ASHRREV_I32::execute(), Gcn3ISA::Inst_VOP2__V_LSHLREV_B32::execute(), Gcn3ISA::Inst_VOP2__V_AND_B32::execute(), Gcn3ISA::Inst_VOP2__V_OR_B32::execute(), Gcn3ISA::Inst_VOP2__V_XOR_B32::execute(), Gcn3ISA::Inst_VOP2__V_MAC_F32::execute(), Gcn3ISA::Inst_VOP2__V_MADMK_F32::execute(), Gcn3ISA::Inst_VOP2__V_MADAK_F32::execute(), Gcn3ISA::Inst_VOP2__V_ADD_U32::execute(), Gcn3ISA::Inst_VOP2__V_SUB_U32::execute(), Gcn3ISA::Inst_VOP2__V_SUBREV_U32::execute(), Gcn3ISA::Inst_VOP2__V_ADDC_U32::execute(), Gcn3ISA::Inst_VOP2__V_SUBB_U32::execute(), Gcn3ISA::Inst_VOP2__V_SUBBREV_U32::execute(), Gcn3ISA::Inst_VOP2__V_ADD_U16::execute(), Gcn3ISA::Inst_VOP2__V_SUB_U16::execute(), Gcn3ISA::Inst_VOP2__V_SUBREV_U16::execute(), Gcn3ISA::Inst_VOP2__V_MUL_LO_U16::execute(), Gcn3ISA::Inst_VOP2__V_LSHLREV_B16::execute(), Gcn3ISA::Inst_VOP2__V_LSHRREV_B16::execute(), Gcn3ISA::Inst_VOP2__V_ASHRREV_I16::execute(), Gcn3ISA::Inst_VOP2__V_MAX_U16::execute(), Gcn3ISA::Inst_VOP2__V_MAX_I16::execute(), Gcn3ISA::Inst_VOP2__V_MIN_U16::execute(), Gcn3ISA::Inst_VOP2__V_MIN_I16::execute(), generateDisassembly(), getRegisterIndex(), Inst_VOP2(), isScalarRegister(), and isVectorRegister().

◆ varSize

uint32_t Gcn3ISA::Inst_VOP2::varSize
protected

Definition at line 306 of file op_encodings.hh.

Referenced by Inst_VOP2(), and instSize().


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

Generated on Fri Jul 3 2020 15:53:38 for gem5 by doxygen 1.8.13