final class ValueGraphVertex extends SpaceEffGraphNode
SpaceEffGraphNode.GraphEdgeEnumeration<T extends GraphEdge>, SpaceEffGraphNode.OutEdgeEnumeration
Modifier and Type | Field and Description |
---|---|
private int |
arity
number of operands needed
|
private Object |
label
the name of the operator that does the definition
|
private Object |
name
the name of the variable defined by this node
|
private ValueGraphVertex[] |
targets
operand vertices, in order
|
private int |
valueNumber
integer value number
|
_inEdgeEnd, _inEdgeStart, _outEdgeEnd, _outEdgeStart, info, next, nextSorted, prev
Constructor and Description |
---|
ValueGraphVertex(Object name) |
Modifier and Type | Method and Description |
---|---|
void |
addTarget(ValueGraphVertex target,
int pos) |
(package private) void |
copyVertex(ValueGraphVertex v)
Sets up properties of this vertex identically to another vertex.
|
int |
getArity() |
(package private) Object |
getLabel() |
(package private) Object |
getName() |
ValueGraphVertex |
getTarget(int i) |
(package private) int |
getValueNumber() |
(package private) boolean |
isBornAtAllocation() |
(package private) boolean |
isConstant() |
(package private) boolean |
representsParameter() |
(package private) void |
setLabel(Object label,
int arity)
Set the label for this vertex.
|
(package private) void |
setValueNumber(int number) |
String |
toString() |
_sortDFS, _sortRevTop, _sortTop, append, appendInEdge, appendOutEdge, clearDfsVisited, clearFlags, clearInFlags, clearLoopHeader, clearOnStack, clearOutFlags, clearTopVisited, deleteIn, deleteOut, deleteOut, deleteOut, dfsVisited, findOutEdgeTo, firstInEdge, firstInNode, firstOutEdge, firstOutNode, flagsOn, getIndex, getNext, getNumber, getNumberOfIn, getNumberOfOut, getPrev, hasIn, hasOneIn, hasOneIn, hasOneOut, hasOneOut, hasOut, hasZeroIn, hasZeroOut, inEdges, inNodes, insertOut, insertOut, isLoopHeader, onStack, outEdges, outNodes, pointsIn, pointsOut, printExtended, printInEdges, printInNodes, printOutEdges, printOutNodes, remove, removeIn, removeIn, removeOut, removeOut, replaceInEdge, replaceOut, setDfsVisited, setDfsVisitedOnStack, setIndex, setLoopHeader, setNumber, setOnStack, setTopVisited, sortDFS, sortRevTop, sortTop, topVisited
private ValueGraphVertex[] targets
private int valueNumber
private int arity
ValueGraphVertex(Object name)
void copyVertex(ValueGraphVertex v)
v
- the vertex to copy the properties fromboolean representsParameter()
void setLabel(Object label, int arity)
label
- the label (an operator of some type)arity
- the number of operands neededint getValueNumber()
void setValueNumber(int number)
boolean isConstant()
boolean isBornAtAllocation()
public ValueGraphVertex getTarget(int i)
i
- operand numberpublic void addTarget(ValueGraphVertex target, int pos)
public int getArity()