harpoon.IR.LowQuad
Class LQop

java.lang.Object
  extended by harpoon.IR.Quads.Qop
      extended by harpoon.IR.LowQuad.LQop

public abstract class LQop
extends Qop

LQop is an enumerated type for the various kinds of OPER opcodes in LowQuad form.

Version:
$Id: LQop.java,v 1.2 2002/02/25 21:04:38 cananian Exp $
Author:
C. Scott Ananian <cananian@alumni.princeton.edu>

Field Summary
static int PADD
          Computes the sum of two POINTER values.
static int PCMPEQ
          Evaluates to true if the two POINTER values are equal.
static int PCMPGT
          Evaluates to true if the first POINTER value is greater than the second POINTER value.
static int PNEG
          Negates a POINTER value (used to compute differences).
 
Fields inherited from class harpoon.IR.Quads.Qop
ACMPEQ, D2F, D2I, D2L, DADD, DCMPEQ, DCMPGE, DCMPGT, DDIV, DMUL, DNEG, DREM, F2D, F2I, F2L, FADD, FCMPEQ, FCMPGE, FCMPGT, FDIV, FMUL, FNEG, FREM, I2B, I2C, I2D, I2F, I2L, I2S, IADD, IAND, ICMPEQ, ICMPGT, IDIV, IMUL, INEG, IOR, IREM, ISHL, ISHR, IUSHR, IXOR, L2D, L2F, L2I, LADD, LAND, LCMPEQ, LCMPGT, LDIV, LMUL, LNEG, LOR, LREM, LSHL, LSHR, LUSHR, LXOR
 
Constructor Summary
LQop()
           
 
Method Summary
static Object evaluation(int opc, Object[] opd)
          Evaluates a constant value for the result of an OPER, given constant values for the operands.
static int forString(String op)
           
static boolean isValid(int v)
           
static HClass resultType(int v)
          Determines the result type of an OPER.
static String toString(int v)
           
 
Methods inherited from class harpoon.IR.Quads.Qop
evaluate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PCMPEQ

public static final int PCMPEQ
Evaluates to true if the two POINTER values are equal.

See Also:
Constant Field Values

PCMPGT

public static final int PCMPGT
Evaluates to true if the first POINTER value is greater than the second POINTER value.

See Also:
Constant Field Values

PADD

public static final int PADD
Computes the sum of two POINTER values.

See Also:
Constant Field Values

PNEG

public static final int PNEG
Negates a POINTER value (used to compute differences).

See Also:
Constant Field Values
Constructor Detail

LQop

public LQop()
Method Detail

isValid

public static boolean isValid(int v)

toString

public static String toString(int v)

forString

public static int forString(String op)

resultType

public static HClass resultType(int v)
Determines the result type of an OPER.


evaluation

public static Object evaluation(int opc,
                                Object[] opd)
Evaluates a constant value for the result of an OPER, given constant values for the operands.