gem5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Public Attributes | List of all members
HsailISA::Call Class Reference

#include <decl.hh>

Inheritance diagram for HsailISA::Call:
HsailISA::HsailGPUStaticInst GPUStaticInst

Public Member Functions

void calcAddr (Wavefront *w, GPUDynInstPtr m)
 
void generateDisassembly ()
 
bool isPseudoOp ()
 
void execPseudoInst (Wavefront *w, GPUDynInstPtr gpuDynInst)
 
void MagicPrintLane (Wavefront *w)
 
void MagicPrintLane64 (Wavefront *w)
 
void MagicPrintWF32 (Wavefront *w)
 
void MagicPrintWF64 (Wavefront *w)
 
void MagicPrintWFFloat (Wavefront *w)
 
void MagicSimBreak (Wavefront *w)
 
void MagicPrefixSum (Wavefront *w)
 
void MagicReduction (Wavefront *w)
 
void MagicMaskLower (Wavefront *w)
 
void MagicMaskUpper (Wavefront *w)
 
void MagicJoinWFBar (Wavefront *w)
 
void MagicWaitWFBar (Wavefront *w)
 
void MagicPanic (Wavefront *w)
 
void MagicAtomicNRAddGlobalU32Reg (Wavefront *w, GPUDynInstPtr gpuDynInst)
 
void MagicAtomicNRAddGroupU32Reg (Wavefront *w, GPUDynInstPtr gpuDynInst)
 
void MagicLoadGlobalU32Reg (Wavefront *w, GPUDynInstPtr gpuDynInst)
 
void MagicXactCasLd (Wavefront *w)
 
void MagicMostSigThread (Wavefront *w)
 
void MagicMostSigBroadcast (Wavefront *w)
 
void MagicPrintWF32ID (Wavefront *w)
 
void MagicPrintWFID64 (Wavefront *w)
 
 Call (const Brig::BrigInstBase *ib, const BrigObject *obj)
 
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)
 
void execute (GPUDynInstPtr gpuDynInst)
 
int numSrcRegOperands ()
 
int numDstRegOperands ()
 
int getNumOperands ()
 
- 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
 
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

ListOperand dest
 
FunctionRefOperand src0
 
ListOperand src1
 
HsailCodefunc_ptr
 
- 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

Definition at line 1151 of file decl.hh.

Constructor & Destructor Documentation

HsailISA::Call::Call ( const Brig::BrigInstBase ib,
const BrigObject obj 
)
inline

Member Function Documentation

void HsailISA::Call::calcAddr ( Wavefront w,
GPUDynInstPtr  m 
)
void HsailISA::Call::execPseudoInst ( Wavefront w,
GPUDynInstPtr  gpuDynInst 
)
void HsailISA::Call::execute ( GPUDynInstPtr  gpuDynInst)
inlinevirtual

Implements GPUStaticInst.

Definition at line 1256 of file decl.hh.

References FunctionRefOperand::disassemble(), execPseudoInst(), fatal, isPseudoOp(), and src0.

void HsailISA::Call::generateDisassembly ( )
inlinevirtual
int HsailISA::Call::getNumOperands ( )
inlinevirtual

Implements GPUStaticInst.

Definition at line 1270 of file decl.hh.

int HsailISA::Call::getOperandSize ( int  operandIndex)
inlinevirtual

Implements GPUStaticInst.

Definition at line 1247 of file decl.hh.

int HsailISA::Call::getRegisterIndex ( int  operandIndex,
GPUDynInstPtr  gpuDynInst 
)
inlinevirtual

Implements GPUStaticInst.

Definition at line 1250 of file decl.hh.

bool HsailISA::Call::isCondRegister ( int  operandIndex)
inlinevirtual

Implements GPUStaticInst.

Definition at line 1243 of file decl.hh.

bool HsailISA::Call::isDstOperand ( int  operandIndex)
inlinevirtual

Implements GPUStaticInst.

Definition at line 1246 of file decl.hh.

bool HsailISA::Call::isPseudoOp ( )
inline

Definition at line 1171 of file decl.hh.

References FunctionRefOperand::disassemble(), and src0.

Referenced by Call(), and execute().

bool HsailISA::Call::isScalarRegister ( int  operandIndex)
inlinevirtual

Implements GPUStaticInst.

Definition at line 1244 of file decl.hh.

bool HsailISA::Call::isSrcOperand ( int  operandIndex)
inlinevirtual

Implements GPUStaticInst.

Definition at line 1245 of file decl.hh.

bool HsailISA::Call::isVectorRegister ( int  operandIndex)
inlinevirtual

Implements GPUStaticInst.

Definition at line 1242 of file decl.hh.

void HsailISA::Call::MagicAtomicNRAddGlobalU32Reg ( Wavefront w,
GPUDynInstPtr  gpuDynInst 
)
void HsailISA::Call::MagicAtomicNRAddGroupU32Reg ( Wavefront w,
GPUDynInstPtr  gpuDynInst 
)
void HsailISA::Call::MagicJoinWFBar ( Wavefront w)
void HsailISA::Call::MagicLoadGlobalU32Reg ( Wavefront w,
GPUDynInstPtr  gpuDynInst 
)
void HsailISA::Call::MagicMaskLower ( Wavefront w)
void HsailISA::Call::MagicMaskUpper ( Wavefront w)
void HsailISA::Call::MagicMostSigBroadcast ( Wavefront w)
void HsailISA::Call::MagicMostSigThread ( Wavefront w)
void HsailISA::Call::MagicPanic ( Wavefront w)
void HsailISA::Call::MagicPrefixSum ( Wavefront w)
void HsailISA::Call::MagicPrintLane ( Wavefront w)
void HsailISA::Call::MagicPrintLane64 ( Wavefront w)
void HsailISA::Call::MagicPrintWF32 ( Wavefront w)
void HsailISA::Call::MagicPrintWF32ID ( Wavefront w)
void HsailISA::Call::MagicPrintWF64 ( Wavefront w)
void HsailISA::Call::MagicPrintWFFloat ( Wavefront w)
void HsailISA::Call::MagicPrintWFID64 ( Wavefront w)
void HsailISA::Call::MagicReduction ( Wavefront w)
void HsailISA::Call::MagicSimBreak ( Wavefront w)
void HsailISA::Call::MagicWaitWFBar ( Wavefront w)
void HsailISA::Call::MagicXactCasLd ( Wavefront w)
int HsailISA::Call::numDstRegOperands ( )
inlinevirtual

Implements GPUStaticInst.

Definition at line 1269 of file decl.hh.

int HsailISA::Call::numSrcRegOperands ( )
inlinevirtual

Implements GPUStaticInst.

Definition at line 1268 of file decl.hh.

Member Data Documentation

ListOperand HsailISA::Call::dest
HsailCode* HsailISA::Call::func_ptr

Definition at line 1184 of file decl.hh.

Referenced by Call().

FunctionRefOperand HsailISA::Call::src0

Definition at line 1182 of file decl.hh.

Referenced by Call(), execute(), generateDisassembly(), and isPseudoOp().

ListOperand HsailISA::Call::src1

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

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