coins.flow
Class UseDefListImpl

java.lang.Object
  extended bycoins.flow.UseDefListImpl
All Implemented Interfaces:
UseDefList

public class UseDefListImpl
extends java.lang.Object
implements UseDefList

UseDefListImpl class Use-def list representaing list of use nodes of a symbol where each use node has a list of its def points. UseDefList will be accessed from Var, Reg, ExpId, etc.


Field Summary
 FlowRoot flowRoot
           
protected  java.util.List fUseDefChainList
           
protected  java.util.Map fUseDefChainMap
           
 
Constructor Summary
UseDefListImpl(FlowRoot pFlowRoot)
           
 
Method Summary
 UseDefChain addUseDefChain(IR pUseNode)
          addUseDefChain Add UseDefChain which will be created by pUseNode that uses some symbol.
 UseDefChain getOrAddUseDefChain(IR pUseNode)
           
 UseDefChain getUseDefChain(IR pUseNode)
          getUseDefChain Get UseDefChain having pUseDefNode as its use node.
 java.util.List getUseDefChainList()
           
 void print()
          print Print this DefUseList.
 java.lang.String toString()
           
 java.lang.String toStringByName()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

flowRoot

public final FlowRoot flowRoot

fUseDefChainMap

protected java.util.Map fUseDefChainMap

fUseDefChainList

protected java.util.List fUseDefChainList
Constructor Detail

UseDefListImpl

public UseDefListImpl(FlowRoot pFlowRoot)
Method Detail

addUseDefChain

public UseDefChain addUseDefChain(IR pUseNode)
Description copied from interface: UseDefList
addUseDefChain Add UseDefChain which will be created by pUseNode that uses some symbol.

Specified by:
addUseDefChain in interface UseDefList

getUseDefChain

public UseDefChain getUseDefChain(IR pUseNode)
getUseDefChain Get UseDefChain having pUseDefNode as its use node.

Specified by:
getUseDefChain in interface UseDefList

getOrAddUseDefChain

public UseDefChain getOrAddUseDefChain(IR pUseNode)

getUseDefChainList

public java.util.List getUseDefChainList()

print

public void print()
Description copied from interface: UseDefList
print Print this DefUseList.

Specified by:
print in interface UseDefList

toString

public java.lang.String toString()
Specified by:
toString in interface UseDefList

toStringByName

public java.lang.String toStringByName()
Specified by:
toStringByName in interface UseDefList