SandMark version 2.0


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
 
Constructor Summary
RegisterAllocator.IGNode(EDU.purdue.cs.bloat.tree.LocalExpr def)
           
 
Method Summary
(package private)  void coalesce(RegisterAllocator.IGNode node)
          Coalesce two nodes in the interference graph.
 java.lang.String toString()
           
 
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
 

Field Detail

defs

java.util.Set defs

key

EDU.purdue.cs.bloat.tree.LocalExpr key

color

int color

wide

boolean wide

weight

float weight
Constructor Detail

RegisterAllocator.IGNode

public RegisterAllocator.IGNode(EDU.purdue.cs.bloat.tree.LocalExpr def)
Method Detail

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

SandMark version 2.0

Mon Jun 17 12:30:47 MST 2002