org.jikesrvm.compilers.opt
Enum Simplifier.DefUseEffect

java.lang.Object
  extended by java.lang.Enum<Simplifier.DefUseEffect>
      extended by org.jikesrvm.compilers.opt.Simplifier.DefUseEffect
All Implemented Interfaces:
Serializable, Comparable<Simplifier.DefUseEffect>
Enclosing class:
Simplifier

public static enum Simplifier.DefUseEffect
extends Enum<Simplifier.DefUseEffect>

Effect of the simplification on Def-Use chains


Enum Constant Summary
MOVE_FOLDED
          Enumeration value to indicate an operation has been replaced by a move instruction with a constant right hand side.
MOVE_REDUCED
          Enumeration value to indicate an operation has been replaced by a move instruction with a non-constant right hand side.
REDUCED
          Enumeration value to indicate an operation has been replaced by a cheaper, but non-move instruction.
TRAP_REDUCED
          Enumeration value to indicate an operation has been replaced by an unconditional trap instruction.
UNCHANGED
          Enumeration value to indicate an operation is unchanged, although the order of operands may have been canonicalized and type information strengthened.
 
Method Summary
static Simplifier.DefUseEffect valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Simplifier.DefUseEffect[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

UNCHANGED

public static final Simplifier.DefUseEffect UNCHANGED
Enumeration value to indicate an operation is unchanged, although the order of operands may have been canonicalized and type information strengthened.


MOVE_FOLDED

public static final Simplifier.DefUseEffect MOVE_FOLDED
Enumeration value to indicate an operation has been replaced by a move instruction with a constant right hand side.


MOVE_REDUCED

public static final Simplifier.DefUseEffect MOVE_REDUCED
Enumeration value to indicate an operation has been replaced by a move instruction with a non-constant right hand side.


TRAP_REDUCED

public static final Simplifier.DefUseEffect TRAP_REDUCED
Enumeration value to indicate an operation has been replaced by an unconditional trap instruction.


REDUCED

public static final Simplifier.DefUseEffect REDUCED
Enumeration value to indicate an operation has been replaced by a cheaper, but non-move instruction.

Method Detail

values

public static Simplifier.DefUseEffect[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (Simplifier.DefUseEffect c : Simplifier.DefUseEffect.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static Simplifier.DefUseEffect valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null