Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members

Operand Class Reference

#include <Instruction.h>

Inheritance diagram for Operand:

GPRegisterOperand IntegerOperand List of all members.

Public Member Functions

 ~Operand ()
bool isInteger ()
bool isGPRegister ()
void print ()
int32_t getIconst ()
uint32_t getRegister ()

Static Public Member Functions

OperandinitGPRegisterOperands ()

Static Public Attributes

OperandGPRegisterOperands = initGPRegisterOperands()
Operand IntegerOperand0 = IntegerOperand(0)

Protected Member Functions

 Operand (uint32_t flgs)
 Operand ()

Protected Attributes

uint32_t flags
union {
   int32_t   iconst
   uint32_t   regist
value

Static Protected Attributes

const uint32_t IntegerType = 0x1
const uint32_t GPRegisterType = 0x2

Constructor & Destructor Documentation

Operand::Operand uint32_t  flgs  )  [inline, protected]
 

Definition at line 19 of file Instruction.h.

References flags.

Operand::Operand  )  [inline, protected]
 

Definition at line 20 of file Instruction.h.

References flags.

Operand::~Operand  )  [inline]
 

Definition at line 23 of file Instruction.h.


Member Function Documentation

int32_t Operand::getIconst  )  [inline]
 

Definition at line 33 of file Instruction.h.

References value.

Referenced by CacheSimulator::byteCountForInst(), and CacheSimulator::generateCodeForInst().

uint32_t Operand::getRegister  )  [inline]
 

Definition at line 34 of file Instruction.h.

References value.

Referenced by CacheSimulator::byteCountForInst(), and CacheSimulator::generateCodeForInst().

Operand * Operand::initGPRegisterOperands  )  [static]
 

Definition at line 18 of file Instruction.C.

References NUM_OF_GPR_REGS.

bool Operand::isGPRegister  )  [inline]
 

Definition at line 25 of file Instruction.h.

References flags, and GPRegisterType.

Referenced by CacheSimulator::byteCountForInst(), CacheSimulator::generateCodeForInst(), and print().

bool Operand::isInteger  )  [inline]
 

Definition at line 24 of file Instruction.h.

References flags, and IntegerType.

Referenced by CacheSimulator::byteCountForInst(), CacheSimulator::generateCodeForInst(), and print().

void Operand::print  )  [inline]
 

Definition at line 26 of file Instruction.h.

References isGPRegister(), isInteger(), PRINT_INFOR, and value.

Referenced by MemoryOperation::print().


Member Data Documentation

uint32_t Operand::flags [protected]
 

Definition at line 13 of file Instruction.h.

Referenced by isGPRegister(), isInteger(), and Operand().

Operand * Operand::GPRegisterOperands = initGPRegisterOperands() [static]
 

Definition at line 16 of file Instruction.C.

const uint32_t Operand::GPRegisterType = 0x2 [static, protected]
 

Definition at line 11 of file Instruction.h.

Referenced by isGPRegister().

int32_t Operand::iconst [protected]
 

Definition at line 15 of file Instruction.h.

Operand Operand::IntegerOperand0 = IntegerOperand(0) [static]
 

Later we can make it pointer depending on what the sub classes will do *

Definition at line 14 of file Instruction.C.

const uint32_t Operand::IntegerType = 0x1 [static, protected]
 

Definition at line 10 of file Instruction.h.

Referenced by isInteger().

uint32_t Operand::regist [protected]
 

Definition at line 16 of file Instruction.h.

union { ... } Operand::value [protected]
 

Referenced by getIconst(), getRegister(), and print().


The documentation for this class was generated from the following files:
Generated on Mon Jan 28 11:08:41 2008 for PMaCInstrumentor by doxygen 1.3.5