coins.ssa
Class SsaGraphNode

java.lang.Object
  extended bycoins.ssa.SsaGraphNode

class SsaGraphNode
extends java.lang.Object

The node of the SSA graph


Field Summary
 BasicBlk belong
          The basic block which the LIR node of this node is in
 LirNode node
          The LIR node of this node
 int opCode
          The operator code of this node
 SsaGraphNode[] parents
          The parents of this node
 
Constructor Summary
SsaGraphNode(SsaEnvironment e, LirNode n, BasicBlk blk, int numOfParents)
          Constructor
 
Method Summary
(package private)  LirNode apply(BiList nodeList)
          Translate this node into LIR node.
(package private)  void printGraph(java.io.OutputStreamWriter output, BiList list)
          Print the node as graphviz format.
(package private)  void setSymbol(Symbol s)
          Set the symbol of this node.
(package private)  Symbol symbol()
          Return the symbol of this node.
 java.lang.String toString()
          The String representation of this node.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

belong

public final BasicBlk belong
The basic block which the LIR node of this node is in


opCode

public final int opCode
The operator code of this node


node

public final LirNode node
The LIR node of this node


parents

public final SsaGraphNode[] parents
The parents of this node

Constructor Detail

SsaGraphNode

public SsaGraphNode(SsaEnvironment e,
                    LirNode n,
                    BasicBlk blk,
                    int numOfParents)
Constructor

Parameters:
e - The environment of the SSA module
n - The LIR node of this node
blk - The basic block which the LIR node of this node is in
numOfParents - The number of parents of this node
Method Detail

symbol

Symbol symbol()
Return the symbol of this node.

Returns:
The symbol of this node

setSymbol

void setSymbol(Symbol s)
Set the symbol of this node.

Parameters:
s - The symbol of this node

toString

public java.lang.String toString()
The String representation of this node.


apply

LirNode apply(BiList nodeList)
Translate this node into LIR node.

Returns:
LIR node from this SSA graph's node

printGraph

void printGraph(java.io.OutputStreamWriter output,
                BiList list)
Print the node as graphviz format.

Parameters:
output - The output stream
list - The list of the node of the SSA graph