public class ValueNodeUtil extends Object
Constructor and Description |
---|
ValueNodeUtil() |
Modifier and Type | Method and Description |
---|---|
static ValueNode |
asNode(MemoryNode node) |
static ValueNode |
assertDouble(ValueNode x) |
static ValueNode |
assertFloat(ValueNode x) |
static void |
assertHigh(ValueNode x) |
static ValueNode |
assertInt(ValueNode x) |
static ValueNode |
assertKind(Kind kind,
ValueNode x) |
static ValueNode |
assertLong(ValueNode x) |
static ValueNode |
assertObject(ValueNode x) |
static <T extends Node> |
filter(Iterable<Node> nodes,
Class<T> clazz) |
static RuntimeException |
shouldNotReachHere() |
static RuntimeException |
shouldNotReachHere(String msg) |
static String |
valueString(ValueNode value)
Converts a given instruction to a value string.
|
public ValueNodeUtil()
public static ValueNode assertKind(Kind kind, ValueNode x)
public static RuntimeException shouldNotReachHere(String msg)
public static RuntimeException shouldNotReachHere()
public static ValueNode assertLong(ValueNode x)
public static ValueNode assertFloat(ValueNode x)
public static ValueNode assertObject(ValueNode x)
public static ValueNode assertDouble(ValueNode x)
public static void assertHigh(ValueNode x)
public static String valueString(ValueNode value)
"i13"
.value
- the instruction to convert to a value string. If value == null
, then "-"
is returned.public static ValueNode asNode(MemoryNode node)