|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
DefUseList interface DefUseList is used to map a def-node to corresponding DefUseChain. An instance of DefUseChain contains one def-node defining the value of a symbol and the list of use-nodes refering the symbol. An instance of DefUseList created by new DefUseListImpl(flowRoot, lSym) maps def-node defining lSym to corresponding DefUseChain, where lSym usually represents a variable. FlowAnalSym --> DefUSeList --> DefUseChain --> def-node defining the value of the symbol --> list of use-nodes refering the symbol --> DefUseChain ... An instance of DefUseList created by new DefUseListImpl(flowRoot) maps def-node to corresponding DefUseChain, where the def-node may not be restricted to define one paticular symbol, for example, the instance may map all def-nodes in a subprogram to corresponding DefUseChain irrespective of symbols.
| Method Summary | |
DefUseChain |
addDefUseChain(IR pDefNode)
addDefUseChain Add DefUseChain instance which will be created by pDefNode that defines some symbol. |
DefUseChain |
getDefUseChain(IR pDefNode)
getDefUseChain Get DefUseChain having pDefNode as its define node in this DefUseList. |
java.util.List |
getDefUseChainList()
getDefUseChain Get the list of DefUseChains in this DefUseList. |
java.util.List |
getDefUseChainListOfSym(FlowAnalSym pSym)
Get the list of DefUseChains having pSym as its define node symbol. |
void |
print()
print Print this DefUseList. |
| Method Detail |
public DefUseChain addDefUseChain(IR pDefNode)
public DefUseChain getDefUseChain(IR pDefNode)
pDefNode - definition node of a DefUseChain.
public java.util.List getDefUseChainList()
public java.util.List getDefUseChainListOfSym(FlowAnalSym pSym)
pSym - definition node symbol of DefUseChain.
public void print()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||