gem5
|
#include <mem.hh>
Public Member Functions | |
void | generateDisassembly () override |
StInst (const Brig::BrigInstBase *ib, const BrigObject *obj, const char *_opcode, int srcIdx) | |
void | initiateAcc (GPUDynInstPtr gpuDynInst) override |
void | completeAcc (GPUDynInstPtr gpuDynInst) override |
bool | isVectorRegister (int operandIndex) override |
bool | isCondRegister (int operandIndex) override |
bool | isScalarRegister (int operandIndex) override |
bool | isSrcOperand (int operandIndex) override |
bool | isDstOperand (int operandIndex) override |
int | getOperandSize (int operandIndex) override |
int | getRegisterIndex (int operandIndex, GPUDynInstPtr gpuDynInst) override |
int | getNumOperands () override |
void | execute (GPUDynInstPtr gpuDynInst) override |
Public Member Functions inherited from HsailISA::StInstBase< MemDataType, SrcDataType::OperandType, AddrOperandType > | |
StInstBase (const Brig::BrigInstBase *ib, const BrigObject *obj, const char *_opcode) | |
int | numDstRegOperands () override |
int | numSrcRegOperands () override |
int | getNumOperands () override |
bool | isVectorRegister (int operandIndex) override |
bool | isCondRegister (int operandIndex) override |
bool | isScalarRegister (int operandIndex) override |
bool | isSrcOperand (int operandIndex) override |
bool | isDstOperand (int operandIndex) override |
int | getOperandSize (int operandIndex) override |
int | getRegisterIndex (int operandIndex, GPUDynInstPtr gpuDynInst) override |
Public Member Functions inherited from HsailISA::HsailGPUStaticInst | |
HsailGPUStaticInst (const BrigObject *obj, const std::string &opcode) | |
int | instSize () const override |
bool | isValid () 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 |
const std::string & | disassemble () |
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 uint32_t | getTargetPc () |
void | setFlag (Flags flag) |
virtual void | execLdAcq (GPUDynInstPtr gpuDynInst) |
virtual void | execAtomic (GPUDynInstPtr gpuDynInst) |
virtual void | execAtomicAcq (GPUDynInstPtr gpuDynInst) |
Public Member Functions inherited from HsailISA::MemInst | |
MemInst () | |
MemInst (Enums::MemType m_type) | |
void | init_addr (AddrOperandBase *_addr_operand) |
int | getMemOperandSize () |
AddrOperandBase * | getAddressOperand () |
Public Attributes | |
SrcDataType::OperandType::SrcOperand | src_vect [4] |
uint16_t | num_src_operands |
Public Attributes inherited from HsailISA::StInstBase< MemDataType, SrcDataType::OperandType, AddrOperandType > | |
SrcDataType::OperandType::SrcOperand | src |
AddrOperandType | addr |
Brig::BrigSegment | segment |
Brig::BrigMemoryScope | memoryScope |
Brig::BrigMemoryOrder | memoryOrder |
unsigned int | equivClass |
Public Attributes inherited from GPUStaticInst | |
Enums::StorageClassType | executed_as |
Private Member Functions | |
void | execSt (GPUDynInstPtr gpuDynInst) override |
Additional Inherited Members | |
Static Public Attributes inherited from GPUStaticInst | |
static uint64_t | dynamic_id_count |
Protected Attributes inherited from HsailISA::HsailGPUStaticInst | |
HsailCode * | hsailCode |
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 |
|
inline |
Definition at line 961 of file mem.hh.
References HsailISA::LdaInstBase< DestOperandType, AddrOperandType >::addr, Brig::BrigOperandConstantBytes::base, Brig::BRIG_KIND_OPERAND_CONSTANT_BYTES, Brig::BRIG_KIND_OPERAND_OPERAND_LIST, Brig::BRIG_TYPE_NONE, Brig::BrigOperandOperandList::elements, findRegDataType(), BrigObject::getData(), BrigObject::getOperand(), BrigObject::getOperandPtr(), ArmISA::i, Brig::BrigBase::kind, X86ISA::op, and Brig::BrigInstBase::operands.
|
inlineoverridevirtual |
Reimplemented from GPUStaticInst.
|
inlineoverrideprivatevirtual |
Reimplemented from GPUStaticInst.
Definition at line 1041 of file mem.hh.
References ArmISA::d, Packet::dataStatic(), ArmISA::i, GPUStaticInst::isLocalMem(), MipsISA::k, MipsISA::vaddr, and MemCmd::WriteReq.
|
overridevirtual |
Implements GPUStaticInst.
Definition at line 351 of file mem_impl.hh.
References addr, Brig::BRIG_SEGMENT_ARG, Brig::BRIG_SEGMENT_GLOBAL, Brig::BRIG_SEGMENT_GROUP, Brig::BRIG_SEGMENT_PRIVATE, Brig::BRIG_SEGMENT_SPILL, HsailISA::calcPrivAddr(), Wavefront::computeUnit, ComputeUnit::cu_id, data, DPRINTF, Wavefront::execMask(), fatal, LocalMemPipeline::getLMReqFIFO(), Wavefront::getPred(), GLBMEM_PIPE, ComputeUnit::globalMemoryPipe, GlobalMemPipeline::issueRequest(), MipsISA::k, Wavefront::kernId, LDSMEM_PIPE, ComputeUnit::localMemoryPipe, ArmISA::m, ArmISA::mask, Wavefront::memReqsInPipe, Wavefront::outstandingReqs, Wavefront::outstandingReqsWrGm, Wavefront::outstandingReqsWrLm, Wavefront::privBase, Wavefront::privSizePerItem, ComputeUnit::shader, Wavefront::simdId, Wavefront::spillBase, Wavefront::spillSizePerItem, Wavefront::spillWidth, Shader::tick_cnt, Shader::ticks(), MipsISA::w, Wavefront::wfDynId, ComputeUnit::wfSize(), Wavefront::wfSlotId, Wavefront::wrGmReqsInPipe, and Wavefront::wrLmReqsInPipe.
|
overridevirtual |
Reimplemented from HsailISA::HsailGPUStaticInst.
Definition at line 506 of file mem_impl.hh.
References addr, csprintf(), fatal, ArmISA::opcode, and segmentNames.
|
inlineoverridevirtual |
Implements GPUStaticInst.
Definition at line 1165 of file mem.hh.
References HsailISA::LdaInstBase< DestOperandType, AddrOperandType >::addr.
|
inlineoverridevirtual |
Implements GPUStaticInst.
Definition at line 1138 of file mem.hh.
References HsailISA::LdaInstBase< DestOperandType, AddrOperandType >::addr, and HsailISA::LdaInstBase< DestOperandType, AddrOperandType >::getNumOperands().
|
inlineoverridevirtual |
Implements GPUStaticInst.
Definition at line 1152 of file mem.hh.
References HsailISA::LdaInstBase< DestOperandType, AddrOperandType >::addr, and HsailISA::LdaInstBase< DestOperandType, AddrOperandType >::getNumOperands().
|
inlineoverridevirtual |
Reimplemented from GPUStaticInst.
Definition at line 1005 of file mem.hh.
References GPUStaticInst::execSt(), GPUStaticInst::isLocalMem(), Request::RELEASE, and Request::setFlags().
|
inlineoverridevirtual |
Implements GPUStaticInst.
Definition at line 1106 of file mem.hh.
References HsailISA::LdaInstBase< DestOperandType, AddrOperandType >::addr, HsailISA::LdaInstBase< DestOperandType, AddrOperandType >::getNumOperands(), and HsailISA::StInstBase< MemDataType, SrcOperandType, AddrOperandType >::isCondRegister().
|
inlineoverridevirtual |
Implements GPUStaticInst.
|
inlineoverridevirtual |
Implements GPUStaticInst.
Definition at line 1119 of file mem.hh.
References HsailISA::LdaInstBase< DestOperandType, AddrOperandType >::addr, HsailISA::LdaInstBase< DestOperandType, AddrOperandType >::getNumOperands(), and HsailISA::StInstBase< MemDataType, SrcOperandType, AddrOperandType >::isScalarRegister().
|
inlineoverridevirtual |
Implements GPUStaticInst.
Definition at line 1132 of file mem.hh.
References HsailISA::LdaInstBase< DestOperandType, AddrOperandType >::getNumOperands().
|
inlineoverridevirtual |
Implements GPUStaticInst.
Definition at line 1093 of file mem.hh.
References HsailISA::LdaInstBase< DestOperandType, AddrOperandType >::addr, HsailISA::LdaInstBase< DestOperandType, AddrOperandType >::getNumOperands(), and HsailISA::StInstBase< MemDataType, SrcOperandType, AddrOperandType >::isVectorRegister().
uint16_t HsailISA::StInst< MemDataType, SrcDataType, AddrOperandType >::num_src_operands |
SrcDataType::OperandType::SrcOperand HsailISA::StInst< MemDataType, SrcDataType, AddrOperandType >::src_vect[4] |