|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectharpoon.IR.Tree.Uop
public class Uop
Uop is an enumerated type for UNOPs.
Operations are typed: pointer (P), integer (I), long (L), float (F) or
double (D).
See Bop for basic rationale. We provide full set of
conversion operations and both negation and bitwise-not. Some of
these Uops are not in harpoon.IR.Quads.Qop
and thus will require pattern-matching during translation for
proper generation. This could also be done in a peephole optimization.
| Field Summary | |
|---|---|
static int |
_2D
Converts to double. |
static int |
_2F
Converts to float. |
static int |
_2I
Converts to int. |
static int |
_2L
Converts to long. |
static int |
I2B
Converts an int to a byte. |
static int |
I2C
Converts an int to a character. |
static int |
I2S
Converts an int to a short. |
static int |
NEG
Negation ( -). |
static int |
NOT
Bit-wise NOT ( ~). |
| Constructor Summary | |
|---|---|
Uop()
|
|
| Method Summary | |
|---|---|
static boolean |
isValid(int op)
Determines if the given Uop value is valid. |
static String |
toString(int op)
Converts the enumerated Uop value to
a human-readable string. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int NEG
-).
public static final int NOT
~).
public static final int I2B
public static final int I2C
public static final int I2S
public static final int _2I
public static final int _2L
public static final int _2F
public static final int _2D
| Constructor Detail |
|---|
public Uop()
| Method Detail |
|---|
public static boolean isValid(int op)
Uop value is valid.
public static String toString(int op)
Uop value to
a human-readable string.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||