|
gem5
v21.0.1.0
|
#include <op_encodings.hh>
Public Member Functions | |
| Inst_VOP3_SDST_ENC (InFmt_VOP3_SDST_ENC *, const std::string &opcode) | |
| ~Inst_VOP3_SDST_ENC () | |
| 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) | |
| virtual | ~GPUStaticInst () |
| 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 int | numDstRegOperands ()=0 |
| virtual int | numSrcRegOperands ()=0 |
| int | numDstVecOperands () |
| int | numSrcVecOperands () |
| int | numDstVecDWORDs () |
| int | numSrcVecDWORDs () |
| int | numOpdDWORDs (int operandIdx) |
| bool | isALU () const |
| bool | isBranch () const |
| bool | isCondBranch () const |
| bool | isNop () const |
| bool | isReturn () const |
| bool | isEndOfKernel () const |
| bool | isKernelLaunch () const |
| bool | isSDWAInst () const |
| bool | isDPPInst () const |
| bool | isUnconditionalJump () const |
| bool | isSpecialOp () const |
| bool | isWaitcnt () const |
| bool | isSleep () const |
| bool | isBarrier () const |
| bool | isMemSync () 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 | readsEXEC () const |
| bool | writesEXEC () const |
| bool | readsMode () const |
| bool | writesMode () const |
| bool | ignoreExec () 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 | isGloballyCoherent () const |
| Coherence domain of a memory instruction. More... | |
| bool | isSystemCoherent () const |
| bool | isF16 () const |
| bool | isF32 () const |
| bool | isF64 () const |
| bool | isFMA () const |
| bool | isMAC () const |
| bool | isMAD () const |
| virtual void | initiateAcc (GPUDynInstPtr gpuDynInst) |
| virtual void | completeAcc (GPUDynInstPtr gpuDynInst) |
| virtual uint32_t | getTargetPc () |
| void | setFlag (Flags flag) |
| const std::string & | opcode () const |
Protected Attributes | |
| InFmt_VOP3_SDST_ENC | instData |
| InFmt_VOP3_1 | extData |
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 | srcVecOperands |
| int | dstVecOperands |
| int | srcVecDWORDs |
| int | dstVecDWORDs |
| int | _ipdInstNum |
| Identifier of the immediate post-dominator instruction. More... | |
| std::bitset< Num_Flags > | _flags |
Private Member Functions | |
| bool | hasSecondDword (InFmt_VOP3_SDST_ENC *) |
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 |
Definition at line 387 of file op_encodings.hh.
| Gcn3ISA::Inst_VOP3_SDST_ENC::Inst_VOP3_SDST_ENC | ( | InFmt_VOP3_SDST_ENC * | iFmt, |
| const std::string & | opcode | ||
| ) |
Definition at line 1520 of file op_encodings.cc.
References Gcn3ISA::GCN3GPUStaticInst::_srcLiteral, extData, and instData.
| Gcn3ISA::Inst_VOP3_SDST_ENC::~Inst_VOP3_SDST_ENC | ( | ) |
Definition at line 1531 of file op_encodings.cc.
|
overridevirtual |
Reimplemented from Gcn3ISA::GCN3GPUStaticInst.
Definition at line 1542 of file op_encodings.cc.
References GPUStaticInst::_opcode, GPUStaticInst::disassembly, extData, GPUStaticInst::getNumOperands(), Gcn3ISA::GCN3GPUStaticInst::getOperandSize(), instData, Gcn3ISA::InFmt_VOP3_1::NEG, GPUStaticInst::numDstRegOperands(), GPUStaticInst::numSrcRegOperands(), Gcn3ISA::opSelectorToRegSym(), GPUStaticInst::readsVCC(), Gcn3ISA::InFmt_VOP3_SDST_ENC::SDST, Gcn3ISA::InFmt_VOP3_1::SRC0, Gcn3ISA::InFmt_VOP3_1::SRC1, Gcn3ISA::InFmt_VOP3_1::SRC2, and Gcn3ISA::InFmt_VOP3_SDST_ENC::VDST.
|
overridevirtual |
Reimplemented from Gcn3ISA::GCN3GPUStaticInst.
Definition at line 1734 of file op_encodings.cc.
References extData, fatal, GPUStaticInst::getNumOperands(), instData, GPUStaticInst::numSrcRegOperands(), Gcn3ISA::opSelectorToRegIdx(), GPUStaticInst::readsVCC(), Gcn3ISA::InFmt_VOP3_SDST_ENC::SDST, Gcn3ISA::InFmt_VOP3_1::SRC0, Gcn3ISA::InFmt_VOP3_1::SRC1, Gcn3ISA::InFmt_VOP3_1::SRC2, Gcn3ISA::InFmt_VOP3_SDST_ENC::VDST, and GPUStaticInst::writesVCC().
|
private |
|
overridevirtual |
Implements GPUStaticInst.
Definition at line 1536 of file op_encodings.cc.
|
overridevirtual |
Reimplemented from Gcn3ISA::GCN3GPUStaticInst.
Definition at line 1586 of file op_encodings.cc.
References extData, fatal, GPUStaticInst::getNumOperands(), instData, Gcn3ISA::isScalarReg(), GPUStaticInst::numSrcRegOperands(), GPUStaticInst::readsVCC(), Gcn3ISA::REG_VCC_LO, Gcn3ISA::InFmt_VOP3_1::SRC0, Gcn3ISA::InFmt_VOP3_1::SRC1, Gcn3ISA::InFmt_VOP3_1::SRC2, Gcn3ISA::InFmt_VOP3_SDST_ENC::VDST, and GPUStaticInst::writesVCC().
|
overridevirtual |
Reimplemented from Gcn3ISA::GCN3GPUStaticInst.
Definition at line 1660 of file op_encodings.cc.
References extData, fatal, GPUStaticInst::getNumOperands(), instData, Gcn3ISA::isVectorReg(), GPUStaticInst::numSrcRegOperands(), GPUStaticInst::readsVCC(), Gcn3ISA::REG_VCC_LO, Gcn3ISA::InFmt_VOP3_1::SRC0, Gcn3ISA::InFmt_VOP3_1::SRC1, Gcn3ISA::InFmt_VOP3_1::SRC2, Gcn3ISA::InFmt_VOP3_SDST_ENC::VDST, and GPUStaticInst::writesVCC().
|
protected |
Definition at line 404 of file op_encodings.hh.
Referenced by Gcn3ISA::Inst_VOP3__V_ADD_U32::execute(), Gcn3ISA::Inst_VOP3__V_SUB_U32::execute(), Gcn3ISA::Inst_VOP3__V_SUBREV_U32::execute(), Gcn3ISA::Inst_VOP3__V_ADDC_U32::execute(), Gcn3ISA::Inst_VOP3__V_SUBB_U32::execute(), Gcn3ISA::Inst_VOP3__V_SUBBREV_U32::execute(), Gcn3ISA::Inst_VOP3__V_DIV_SCALE_F32::execute(), Gcn3ISA::Inst_VOP3__V_DIV_SCALE_F64::execute(), Gcn3ISA::Inst_VOP3__V_MAD_U64_U32::execute(), Gcn3ISA::Inst_VOP3__V_MAD_I64_I32::execute(), generateDisassembly(), getRegisterIndex(), Inst_VOP3_SDST_ENC(), isScalarRegister(), and isVectorRegister().
|
protected |
Definition at line 402 of file op_encodings.hh.
Referenced by Gcn3ISA::Inst_VOP3__V_ADD_U32::execute(), Gcn3ISA::Inst_VOP3__V_SUB_U32::execute(), Gcn3ISA::Inst_VOP3__V_SUBREV_U32::execute(), Gcn3ISA::Inst_VOP3__V_ADDC_U32::execute(), Gcn3ISA::Inst_VOP3__V_SUBB_U32::execute(), Gcn3ISA::Inst_VOP3__V_SUBBREV_U32::execute(), Gcn3ISA::Inst_VOP3__V_DIV_SCALE_F32::execute(), Gcn3ISA::Inst_VOP3__V_DIV_SCALE_F64::execute(), Gcn3ISA::Inst_VOP3__V_MAD_U64_U32::execute(), Gcn3ISA::Inst_VOP3__V_MAD_I64_I32::execute(), generateDisassembly(), getRegisterIndex(), Inst_VOP3_SDST_ENC(), isScalarRegister(), and isVectorRegister().