|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcoins.flow.LoopInfImpl
LoopInfImpl Loop information class. LoopInf IS NOT USED ANY MORE. lparallel used LoopInfo of lparallel. //##78
| Field Summary | |
protected java.util.LinkedList |
fAlternateEntryBBlockList
|
protected java.util.LinkedList |
fAlternateEntryNodeList
|
protected java.util.LinkedList |
fBBlockList
|
protected BBlock |
fEntryBBlock
|
protected IR |
fEntryNode
|
protected LoopInf |
fFirstChild
|
protected FlagBox |
fFlagBox
|
protected FlowRoot |
flowRoot
|
protected LoopInf |
fNextBrother
|
protected LoopInf |
fParent
|
| Fields inherited from interface coins.flow.LoopInf |
HAS_CALL, HAS_PTR_ASSIGN, HAS_STRUCT_UNION, IRREDUCIBLE, USE_PTR |
| Constructor Summary | |
LoopInfImpl(FlowRoot pFlowRoot,
IR pEntryNode)
|
|
| Method Summary | |
void |
addAlternateEntryBBlock(BBlock pEntryBBlock)
addAlternateEntryBBlock Add pEntryBBlock as an alternate entry BBlock of this LoopInf. |
void |
addAlternateEntryNode(IR pEntryNode)
addAlternateEntryNode Add pEntryNode as an alternate entry node of this LoopInf. |
void |
addBBlock(BBlock pBBlock)
addBBlock Add pBBlock to the BBlock list of this LoopInf. |
void |
deleteBBlock(BBlock pBBlock)
deleteBBlock Delete pBBlock from the BBlock list of this LoopInf. |
java.util.List |
getAlternateEntryBBlockList()
getAlternateEntryBBlockList Get the list of alternate entry BBlock. |
java.util.List |
getAlternateEntryNodeList()
getAlternateEntryNodeList Get the list of alternate entry node. |
java.util.List |
getBBlockList()
|
BBlock |
getEntryBBlock()
getEntryBBlock Get entry BBlock of the loop corresponding to this LoopInf. |
LoopInf |
getFirstChild()
getFirstChild setFirstChild Get/set the first child LoopInf of this LoopInf, where, the first child LoopInf is the LoopInf corresponding to the first loop directly contained in the loop correnponding to this LoopInf. |
boolean |
getFlag(int pFlagNumber)
getFlag setFlag getFlag returns the value (true/false) of the flag indicated by pFlagNumber. |
LoopInf |
getNextBrother()
getNextBrother setNextBrother Get/set the next brother LoopInf of this LoopInf, where, the next brother LoopInf is the LoopInf having the same parent LoopInf as this LoopInf. |
LoopInf |
getParent()
getParent setParent Get/set parent LoopInf of this LoopInf, where, parent LoopInf is the LoopInf corresponding to the loop directly containing the loop correnponding to this LoopInf. |
void |
print(int pDebugLevel)
print Print this LoopInf and its children and brother LoopInf for debugging purpose if dbgFlow >= pDebigLevel. |
void |
propagateFlag(int pFlagNumber)
propagateFlag Set flag of pFlagNumber to be true and if this has parent, then set the same flag of the parent and its ancestors. |
void |
setEntryBBlock(BBlock pEntryBBlock)
setEntryBBlock Set entry BBlock of the loop corresponding to this LoopInf. |
void |
setFirstChild(LoopInf pChild)
|
void |
setFlag(int pFlagNumber,
boolean pYesNo)
|
void |
setNextBrother(LoopInf pBrother)
|
void |
setParent(LoopInf pParent)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected final FlowRoot flowRoot
protected LoopInf fParent
protected LoopInf fFirstChild
protected LoopInf fNextBrother
protected java.util.LinkedList fBBlockList
protected IR fEntryNode
protected java.util.LinkedList fAlternateEntryNodeList
protected BBlock fEntryBBlock
protected java.util.LinkedList fAlternateEntryBBlockList
protected FlagBox fFlagBox
| Constructor Detail |
public LoopInfImpl(FlowRoot pFlowRoot,
IR pEntryNode)
| Method Detail |
public LoopInf getParent()
LoopInf
getParent in interface LoopInfpublic void setParent(LoopInf pParent)
setParent in interface LoopInfpublic LoopInf getFirstChild()
LoopInf
getFirstChild in interface LoopInfpublic void setFirstChild(LoopInf pChild)
setFirstChild in interface LoopInfpublic LoopInf getNextBrother()
LoopInf
getNextBrother in interface LoopInfpublic void setNextBrother(LoopInf pBrother)
setNextBrother in interface LoopInfpublic BBlock getEntryBBlock()
LoopInf
getEntryBBlock in interface LoopInfpublic void setEntryBBlock(BBlock pEntryBBlock)
LoopInf
setEntryBBlock in interface LoopInfpEntryBBlock - principal entry BBlock.
The entry BBlock is added to the BBlock list of this LoopInf
and its parent.public java.util.List getBBlockList()
getBBlockList in interface LoopInfpublic void addBBlock(BBlock pBBlock)
LoopInf
addBBlock in interface LoopInfpBBlock - BBlock to be added.public void deleteBBlock(BBlock pBBlock)
LoopInf
deleteBBlock in interface LoopInfpBBlock - BBlock to be deleted.public java.util.List getAlternateEntryNodeList()
LoopInf
getAlternateEntryNodeList in interface LoopInfpublic java.util.List getAlternateEntryBBlockList()
LoopInf
getAlternateEntryBBlockList in interface LoopInfpublic void addAlternateEntryNode(IR pEntryNode)
LoopInf
addAlternateEntryNode in interface LoopInfpEntryNode - an alternate entry node.public void addAlternateEntryBBlock(BBlock pEntryBBlock)
LoopInf
addAlternateEntryBBlock in interface LoopInfpEntryBBlock - an alternate entry BBlock.public boolean getFlag(int pFlagNumber)
LoopInf
getFlag in interface LoopInfpFlagNumber - flag identification number (see below).
public void setFlag(int pFlagNumber,
boolean pYesNo)
setFlag in interface LoopInfpublic void propagateFlag(int pFlagNumber)
LoopInf
propagateFlag in interface LoopInfpublic void print(int pDebugLevel)
LoopInf
print in interface LoopInf
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||