org.jikesrvm.ia32
Enum RegisterConstants.MM

java.lang.Object
  extended by java.lang.Enum<RegisterConstants.MM>
      extended by org.jikesrvm.ia32.RegisterConstants.MM
All Implemented Interfaces:
Serializable, Comparable<RegisterConstants.MM>, RegisterConstants.MachineRegister
Enclosing interface:
RegisterConstants

public static enum RegisterConstants.MM
extends Enum<RegisterConstants.MM>
implements RegisterConstants.MachineRegister

Representation of MMX MM registers N.B. MM and x87 FPR registers alias


Enum Constant Summary
MM0
           
MM1
           
MM10
           
MM11
           
MM12
           
MM13
           
MM14
           
MM15
           
MM2
           
MM3
           
MM4
           
MM5
           
MM6
           
MM7
           
MM8
           
MM9
           
 
Field Summary
private static RegisterConstants.MM[] vals
          Local copy of the backing array.
 
Method Summary
static RegisterConstants.MM lookup(int num)
          Convert encoded value into the MM it represents
 boolean needsREXprefix()
           
 byte value()
           
static RegisterConstants.MM valueOf(String name)
          Returns the enum constant of this type with the specified name.
static RegisterConstants.MM[] 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

MM0

public static final RegisterConstants.MM MM0

MM1

public static final RegisterConstants.MM MM1

MM2

public static final RegisterConstants.MM MM2

MM3

public static final RegisterConstants.MM MM3

MM4

public static final RegisterConstants.MM MM4

MM5

public static final RegisterConstants.MM MM5

MM6

public static final RegisterConstants.MM MM6

MM7

public static final RegisterConstants.MM MM7

MM8

public static final RegisterConstants.MM MM8

MM9

public static final RegisterConstants.MM MM9

MM10

public static final RegisterConstants.MM MM10

MM11

public static final RegisterConstants.MM MM11

MM12

public static final RegisterConstants.MM MM12

MM13

public static final RegisterConstants.MM MM13

MM14

public static final RegisterConstants.MM MM14

MM15

public static final RegisterConstants.MM MM15
Field Detail

vals

private static final RegisterConstants.MM[] vals
Local copy of the backing array. Copied here to avoid calls to clone

Method Detail

values

public static RegisterConstants.MM[] 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 (RegisterConstants.MM c : RegisterConstants.MM.values())
    System.out.println(c);

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

valueOf

public static RegisterConstants.MM 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

value

public byte value()
Specified by:
value in interface RegisterConstants.MachineRegister
Returns:
encoded value of this register

needsREXprefix

public boolean needsREXprefix()
Specified by:
needsREXprefix in interface RegisterConstants.MachineRegister
Returns:
does this register require a REX prefix byte?

lookup

public static RegisterConstants.MM lookup(int num)
Convert encoded value into the MM it represents

Parameters:
num - encoded value
Returns:
represented MM