public class ValueNodeUtil extends Object
| Constructor and Description |
|---|
ValueNodeUtil() |
| Modifier and Type | Method and Description |
|---|---|
static ValueNode |
asNode(MemoryKill node) |
static ValueNode |
assertDouble(ValueNode x) |
static ValueNode |
assertFloat(ValueNode x) |
static void |
assertHigh(ValueNode x) |
static ValueNode |
assertInt(ValueNode x) |
static ValueNode |
assertKind(JavaKind 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 static RuntimeException shouldNotReachHere(String msg)
public static RuntimeException shouldNotReachHere()
public static void assertHigh(ValueNode x)
public static <T extends Node> Collection<T> filter(Iterable<Node> nodes, Class<T> clazz)
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(MemoryKill node)