org.jikesrvm.compilers.opt.ir.operand.ia32
Class IA32ConditionOperand

java.lang.Object
  extended by org.jikesrvm.compilers.opt.ir.operand.Operand
      extended by org.jikesrvm.compilers.opt.ir.operand.ia32.IA32ConditionOperand
All Implemented Interfaces:
AssemblerConstants

public final class IA32ConditionOperand
extends Operand
implements AssemblerConstants

An IA32 condition operand


Field Summary
 byte value
          Value of this operand (one of the ConditionCode constants operands defined in AssemblerConstants)
 
Fields inherited from class org.jikesrvm.compilers.opt.ir.operand.Operand
instruction
 
Fields inherited from interface org.jikesrvm.compilers.common.assembler.ia32.AssemblerConstants
BYTE, CONDITION, EQ, GE, GT, LE, LGE, LGT, LLE, LLT, LONG, LT, NE, NO, NS, O, PE, PO, S, SHORT, WORD
 
Constructor Summary
private IA32ConditionOperand(byte c)
           
  IA32ConditionOperand(ConditionOperand c)
          Construct the IA32 Condition Operand that corresponds to the argument ConditionOperand
 
Method Summary
 Operand copy()
          Return a new operand that is semantically equivalent to this.
static IA32ConditionOperand EQ()
           
 IA32ConditionOperand flipCode()
          flip the direction of the condition (return this, mutated to flip value)
 IA32ConditionOperand flipOperands()
          change the condition when operands are flipped (return this mutated to change value)
static IA32ConditionOperand GE()
           
static IA32ConditionOperand GT()
           
static IA32ConditionOperand LE()
           
static IA32ConditionOperand LGE()
           
static IA32ConditionOperand LGT()
           
static IA32ConditionOperand LLE()
           
static IA32ConditionOperand LLT()
           
static IA32ConditionOperand LT()
           
static IA32ConditionOperand NE()
           
static IA32ConditionOperand NO()
           
static IA32ConditionOperand O()
           
static IA32ConditionOperand PE()
           
static IA32ConditionOperand PO()
           
 boolean similar(Operand op)
          Are two operands semantically equivalent?
 String toString()
           
private  void translate(ConditionOperand c)
           
 
Methods inherited from class org.jikesrvm.compilers.opt.ir.operand.Operand
asAddressConstant, asBlock, asBranch, asClassConstant, asCondition, asDoubleConstant, asFloatConstant, asIntConstant, asLocation, asLongConstant, asMemory, asMethod, asNullConstant, asObjectConstant, asRegister, asStackLocation, asStringConstant, asTIBConstant, asType, conservativelyApproximates, getIndexInInstruction, getType, isAddress, isAddressConstant, isBlock, isBranch, isClassConstant, isConstant, isDefinitelyNull, isDouble, isDoubleConstant, isFloat, isFloatConstant, isInt, isIntConstant, isIntLike, isLocation, isLong, isLongConstant, isMemory, isMethod, isMovableObjectConstant, isNullConstant, isObjectConstant, isRef, isRegister, isStackLocation, isStringConstant, isTIBConstant, isTrueGuard, isType, meet
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

value

public byte value
Value of this operand (one of the ConditionCode constants operands defined in AssemblerConstants)

Constructor Detail

IA32ConditionOperand

public IA32ConditionOperand(ConditionOperand c)
Construct the IA32 Condition Operand that corresponds to the argument ConditionOperand


IA32ConditionOperand

private IA32ConditionOperand(byte c)
Method Detail

copy

public Operand copy()
Description copied from class: Operand
Return a new operand that is semantically equivalent to this.

Specified by:
copy in class Operand
Returns:
a copy of this

similar

public boolean similar(Operand op)
Description copied from class: Operand
Are two operands semantically equivalent?

Specified by:
similar in class Operand
Parameters:
op - other operand
Returns:
true if this and op are semantically equivalent or false if they are not.

flipCode

public IA32ConditionOperand flipCode()
flip the direction of the condition (return this, mutated to flip value)


flipOperands

public IA32ConditionOperand flipOperands()
change the condition when operands are flipped (return this mutated to change value)


EQ

public static IA32ConditionOperand EQ()

NE

public static IA32ConditionOperand NE()

LT

public static IA32ConditionOperand LT()

LE

public static IA32ConditionOperand LE()

GT

public static IA32ConditionOperand GT()

GE

public static IA32ConditionOperand GE()

O

public static IA32ConditionOperand O()

NO

public static IA32ConditionOperand NO()

LGT

public static IA32ConditionOperand LGT()

LLT

public static IA32ConditionOperand LLT()

LGE

public static IA32ConditionOperand LGE()

LLE

public static IA32ConditionOperand LLE()

PE

public static IA32ConditionOperand PE()

PO

public static IA32ConditionOperand PO()

translate

private void translate(ConditionOperand c)

toString

public String toString()
Overrides:
toString in class Object