dspl.backend.x86.operands
Class X86Register

java.lang.Object
  extended by dspl.backend.x86.operands.X86Operand
      extended by dspl.backend.x86.operands.X86Register

public class X86Register
extends X86Operand

Author:
David

Field Summary
(package private)  java.lang.String registerName
           
(package private)  int regSize
          Holds the size of the data type currently stored in the register.
Used with toString to return the appriopriate register name
 
Fields inherited from class dspl.backend.x86.operands.X86Operand
OPERAND_CLASS_ANY, OPERAND_CLASS_LVALUE, OPERAND_TYPE_IMMEDIATE, OPERAND_TYPE_INDEXED_MEMORY, OPERAND_TYPE_MEMORY, OPERAND_TYPE_REGISTER
 
Constructor Summary
X86Register(java.lang.String reg)
           
 
Method Summary
 void freeOperand()
          Frees any resources (registers) that have been allocated for the operand
 void freeRegister()
           
 int getOperandSize()
          Returns the operand's byte size, should be either 1, 2, or 4
 int getOperandType()
          Returns the X86Operand type, must be one of X86Operand.OPERAND_TYPE_xxx
 int getRegisterContentsSize()
           
 void setRegisterContentsSize(int regSize)
           
 void setRegisterContentsSize(Variable v)
           
 java.lang.String toString()
           
 
Methods inherited from class dspl.backend.x86.operands.X86Operand
isMemoryType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

registerName

java.lang.String registerName

regSize

int regSize
Holds the size of the data type currently stored in the register.
Used with toString to return the appriopriate register name

Constructor Detail

X86Register

public X86Register(java.lang.String reg)
Method Detail

freeRegister

public void freeRegister()

setRegisterContentsSize

public void setRegisterContentsSize(int regSize)

setRegisterContentsSize

public void setRegisterContentsSize(Variable v)

getRegisterContentsSize

public int getRegisterContentsSize()

toString

public java.lang.String toString()
Specified by:
toString in class X86Operand
Returns:
gnu assembler-friendly representation of the operand

freeOperand

public void freeOperand()
Description copied from class: X86Operand
Frees any resources (registers) that have been allocated for the operand

Specified by:
freeOperand in class X86Operand

getOperandType

public int getOperandType()
Description copied from class: X86Operand
Returns the X86Operand type, must be one of X86Operand.OPERAND_TYPE_xxx

Specified by:
getOperandType in class X86Operand
Returns:

getOperandSize

public int getOperandSize()
Description copied from class: X86Operand
Returns the operand's byte size, should be either 1, 2, or 4

Specified by:
getOperandSize in class X86Operand
Returns: