gem5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Public Attributes | List of all members
HsailISA::AtomicInstBase< OperandType, AddrOperandType, NumSrcOperands, HasDst > Class Template Reference

#include <mem.hh>

Inheritance diagram for HsailISA::AtomicInstBase< OperandType, AddrOperandType, NumSrcOperands, HasDst >:
HsailISA::HsailGPUStaticInst GPUStaticInst

Public Member Functions

 AtomicInstBase (const Brig::BrigInstBase *ib, const BrigObject *obj, const char *_opcode)
 
int numSrcRegOperands ()
 
int numDstRegOperands ()
 
int getNumOperands ()
 
bool isVectorRegister (int operandIndex)
 
bool isCondRegister (int operandIndex)
 
bool isScalarRegister (int operandIndex)
 
bool isSrcOperand (int operandIndex)
 
bool isDstOperand (int operandIndex)
 
int getOperandSize (int operandIndex)
 
int getRegisterIndex (int operandIndex, GPUDynInstPtr gpuDynInst)
 
- Public Member Functions inherited from HsailISA::HsailGPUStaticInst
 HsailGPUStaticInst (const BrigObject *obj, const std::string &opcode)
 
void generateDisassembly () override
 
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
 
virtual void execute (GPUDynInstPtr gpuDynInst)=0
 
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 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)
 

Public Attributes

OperandType::DestOperand dest
 
OperandType::SrcOperand src [NumSrcOperands]
 
AddrOperandType addr
 
Brig::BrigSegment segment
 
Brig::BrigMemoryOrder memoryOrder
 
Brig::BrigAtomicOperation atomicOperation
 
Brig::BrigMemoryScope memoryScope
 
Brig::BrigOpcode opcode
 
- Public Attributes inherited from GPUStaticInst
Enums::StorageClassType executed_as
 

Additional Inherited Members

- Static Public Attributes inherited from GPUStaticInst
static uint64_t dynamic_id_count
 
- Protected Attributes inherited from HsailISA::HsailGPUStaticInst
HsailCodehsailCode
 
- 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
 

Detailed Description

template<typename OperandType, typename AddrOperandType, int NumSrcOperands, bool HasDst>
class HsailISA::AtomicInstBase< OperandType, AddrOperandType, NumSrcOperands, HasDst >

Definition at line 1212 of file mem.hh.

Constructor & Destructor Documentation

template<typename OperandType, typename AddrOperandType, int NumSrcOperands, bool HasDst>
HsailISA::AtomicInstBase< OperandType, AddrOperandType, NumSrcOperands, HasDst >::AtomicInstBase ( const Brig::BrigInstBase ib,
const BrigObject obj,
const char *  _opcode 
)
inline

Definition at line 1225 of file mem.hh.

Member Function Documentation

template<typename OperandType, typename AddrOperandType, int NumSrcOperands, bool HasDst>
int HsailISA::AtomicInstBase< OperandType, AddrOperandType, NumSrcOperands, HasDst >::getNumOperands ( )
inlinevirtual

Implements GPUStaticInst.

Definition at line 1378 of file mem.hh.

template<typename OperandType, typename AddrOperandType, int NumSrcOperands, bool HasDst>
int HsailISA::AtomicInstBase< OperandType, AddrOperandType, NumSrcOperands, HasDst >::getOperandSize ( int  operandIndex)
inlinevirtual

Implements GPUStaticInst.

Definition at line 1431 of file mem.hh.

template<typename OperandType, typename AddrOperandType, int NumSrcOperands, bool HasDst>
int HsailISA::AtomicInstBase< OperandType, AddrOperandType, NumSrcOperands, HasDst >::getRegisterIndex ( int  operandIndex,
GPUDynInstPtr  gpuDynInst 
)
inlinevirtual

Implements GPUStaticInst.

Definition at line 1442 of file mem.hh.

template<typename OperandType, typename AddrOperandType, int NumSrcOperands, bool HasDst>
bool HsailISA::AtomicInstBase< OperandType, AddrOperandType, NumSrcOperands, HasDst >::isCondRegister ( int  operandIndex)
inlinevirtual

Implements GPUStaticInst.

Definition at line 1394 of file mem.hh.

template<typename OperandType, typename AddrOperandType, int NumSrcOperands, bool HasDst>
bool HsailISA::AtomicInstBase< OperandType, AddrOperandType, NumSrcOperands, HasDst >::isDstOperand ( int  operandIndex)
inlinevirtual

Implements GPUStaticInst.

Definition at line 1424 of file mem.hh.

template<typename OperandType, typename AddrOperandType, int NumSrcOperands, bool HasDst>
bool HsailISA::AtomicInstBase< OperandType, AddrOperandType, NumSrcOperands, HasDst >::isScalarRegister ( int  operandIndex)
inlinevirtual

Implements GPUStaticInst.

Definition at line 1404 of file mem.hh.

template<typename OperandType, typename AddrOperandType, int NumSrcOperands, bool HasDst>
bool HsailISA::AtomicInstBase< OperandType, AddrOperandType, NumSrcOperands, HasDst >::isSrcOperand ( int  operandIndex)
inlinevirtual

Implements GPUStaticInst.

Definition at line 1414 of file mem.hh.

template<typename OperandType, typename AddrOperandType, int NumSrcOperands, bool HasDst>
bool HsailISA::AtomicInstBase< OperandType, AddrOperandType, NumSrcOperands, HasDst >::isVectorRegister ( int  operandIndex)
inlinevirtual

Implements GPUStaticInst.

Definition at line 1384 of file mem.hh.

template<typename OperandType, typename AddrOperandType, int NumSrcOperands, bool HasDst>
int HsailISA::AtomicInstBase< OperandType, AddrOperandType, NumSrcOperands, HasDst >::numDstRegOperands ( )
inlinevirtual

Implements GPUStaticInst.

Definition at line 1377 of file mem.hh.

template<typename OperandType, typename AddrOperandType, int NumSrcOperands, bool HasDst>
int HsailISA::AtomicInstBase< OperandType, AddrOperandType, NumSrcOperands, HasDst >::numSrcRegOperands ( )
inlinevirtual

Implements GPUStaticInst.

Definition at line 1365 of file mem.hh.

Member Data Documentation

template<typename OperandType, typename AddrOperandType, int NumSrcOperands, bool HasDst>
AddrOperandType HsailISA::AtomicInstBase< OperandType, AddrOperandType, NumSrcOperands, HasDst >::addr

Definition at line 1217 of file mem.hh.

template<typename OperandType, typename AddrOperandType, int NumSrcOperands, bool HasDst>
Brig::BrigAtomicOperation HsailISA::AtomicInstBase< OperandType, AddrOperandType, NumSrcOperands, HasDst >::atomicOperation

Definition at line 1221 of file mem.hh.

template<typename OperandType, typename AddrOperandType, int NumSrcOperands, bool HasDst>
OperandType::DestOperand HsailISA::AtomicInstBase< OperandType, AddrOperandType, NumSrcOperands, HasDst >::dest

Definition at line 1215 of file mem.hh.

template<typename OperandType, typename AddrOperandType, int NumSrcOperands, bool HasDst>
Brig::BrigMemoryOrder HsailISA::AtomicInstBase< OperandType, AddrOperandType, NumSrcOperands, HasDst >::memoryOrder

Definition at line 1220 of file mem.hh.

template<typename OperandType, typename AddrOperandType, int NumSrcOperands, bool HasDst>
Brig::BrigMemoryScope HsailISA::AtomicInstBase< OperandType, AddrOperandType, NumSrcOperands, HasDst >::memoryScope

Definition at line 1222 of file mem.hh.

template<typename OperandType, typename AddrOperandType, int NumSrcOperands, bool HasDst>
Brig::BrigOpcode HsailISA::AtomicInstBase< OperandType, AddrOperandType, NumSrcOperands, HasDst >::opcode

Definition at line 1223 of file mem.hh.

template<typename OperandType, typename AddrOperandType, int NumSrcOperands, bool HasDst>
Brig::BrigSegment HsailISA::AtomicInstBase< OperandType, AddrOperandType, NumSrcOperands, HasDst >::segment

Definition at line 1219 of file mem.hh.

template<typename OperandType, typename AddrOperandType, int NumSrcOperands, bool HasDst>
OperandType::SrcOperand HsailISA::AtomicInstBase< OperandType, AddrOperandType, NumSrcOperands, HasDst >::src[NumSrcOperands]

Definition at line 1216 of file mem.hh.


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

Generated on Fri Jun 9 2017 13:04:32 for gem5 by doxygen 1.8.6