sandmark.watermark.potkonjak
Class RegisterAllocator.IGNode
java.lang.Object
|
+--EDU.purdue.cs.bloat.util.GraphNode
|
+--sandmark.watermark.potkonjak.RegisterAllocator.IGNode
- Enclosing class:
- RegisterAllocator
- class RegisterAllocator.IGNode
- extends EDU.purdue.cs.bloat.util.GraphNode
IGNode is a node in the interference graph. Note that this node
is different from the one in Liveness. For instance, this one
stores information about a node's color, its weight, etc.
Because nodes may be coalesced, an IGNode may represent more than
one LocalExpr. That's why there is a list of definitions.
Field Summary |
(package private) int |
color
|
(package private) java.util.Set |
defs
|
(package private) EDU.purdue.cs.bloat.tree.LocalExpr |
key
|
(package private) float |
weight
|
(package private) boolean |
wide
|
Fields inherited from class EDU.purdue.cs.bloat.util.GraphNode |
postIndex, preds, preIndex, succs |
Methods inherited from class EDU.purdue.cs.bloat.util.GraphNode |
preds, succs |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
defs
java.util.Set defs
key
EDU.purdue.cs.bloat.tree.LocalExpr key
color
int color
wide
boolean wide
weight
float weight
RegisterAllocator.IGNode
public RegisterAllocator.IGNode(EDU.purdue.cs.bloat.tree.LocalExpr def)
coalesce
void coalesce(RegisterAllocator.IGNode node)
- Coalesce two nodes in the interference graph. The weight of
the other node is added to that of this node. This node also
inherits all of the definitions of the other node.
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object