|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcoins.flow.BBlockImpl
coins.flow.BBlockHirImpl
BBlockHirImpl Implements BBlock methods applicalble for HIR.
| Field Summary |
| Fields inherited from class coins.flow.BBlockImpl |
aflowBBlock, fAvailIn, fAvailOut, fBBlockNumber, fControlTransfer, fDbgLevel, fDef, fDefIn, fDefined, fDefNodes, fDefOut, fDominatedChildren, fEGen, fEKill, fEKillAll, fExpNodeListMap, fExposed, fFlagBox, fImmediateDominator, fImmediatePostDominator, fIn, fIrLink, fKill, fLiveIn, fLiveOut, flowRoot, fNextInDFO, fNextInInverseDFO, fOut, fPostDominatedChildren, fPredEdgeList, fPredList, fReach, fSuccEdgeList, fSuccList, fUsed, fWork, fWorkFA, subpFlow |
| Fields inherited from interface coins.flow.BBlock |
HAS_CALL, HAS_JUMP, HAS_PTR_ASSIGN, HAS_STRUCT_UNION, IS_DELETED, IS_ENTRY, IS_EXIT, IS_MODIFIED, IS_RESTRUCTURED, LOOP_HEAD, LOOP_TAIL, UNDER_VISIT, USE_PTR, VISIT_OVER |
| Constructor Summary | |
BBlockHirImpl(FlowRoot pFlowRoot,
LabeledStmt pLabeledStmt,
int pBBlockNumber)
Create new basic block corresponding to the HIR labeled statement pLabeledStmt. |
|
| Method Summary | |
void |
addToExpNodeList(ExpId pExpId,
HIR pExpNode)
addToExpNodeList //##25 Add pExpNode to the list corresponding to pExpId to show that the expression for pExpId is computed at pExpNode. |
BBlockNodeIterator |
bblockNodeIterator()
bblockNodeIterator Create an iterator to traverse all HIR nodes in this basic block. |
BBlockSubtreeIterator |
bblockSubtreeIterator()
bblockSubtreeIterator Create an iterator to traverse all top-subtree in this basic block. |
java.util.List |
getExpNodeList(ExpId pExpId)
|
Stmt |
getFirstStmt()
|
IR |
getFirstSubtree()
getFirstSubtree Get the first subtree contained in this block. |
Stmt |
getLastStmt()
|
IR |
getLastSubtree()
getLastSubtree Get the last subtree contained in this block. |
void |
printSubtrees()
printSubtrees Print the sequence of subtrees contained in this block. |
void |
setIrLink(LabeledStmt pLabeledStmt)
setIrLink Set HIR statement pLabeledStmt or LIR DefLabel subtree as the first top-subtree that starts this basic block. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public BBlockHirImpl(FlowRoot pFlowRoot,
LabeledStmt pLabeledStmt,
int pBBlockNumber)
| Method Detail |
public void setIrLink(LabeledStmt pLabeledStmt)
BBlock
setIrLink in interface BBlocksetIrLink in class BBlockImplpublic BBlockSubtreeIterator bblockSubtreeIterator()
BBlock
bblockSubtreeIterator in interface BBlockbblockSubtreeIterator in class BBlockImplpublic BBlockNodeIterator bblockNodeIterator()
BBlock
bblockNodeIterator in interface BBlockbblockNodeIterator in class BBlockImplpublic IR getFirstSubtree()
BBlock
getFirstSubtree in interface BBlockpublic IR getLastSubtree()
BBlock
getLastSubtree in interface BBlockpublic void printSubtrees()
printSubtrees in class BBlockImpl
public void addToExpNodeList(ExpId pExpId,
HIR pExpNode)
pExpId - ExpId for pExpNode.pExpNode - Expression other than LHS of assignment.public java.util.List getExpNodeList(ExpId pExpId)
public Stmt getFirstStmt()
getFirstStmt in interface BBlockHirpublic Stmt getLastStmt()
getLastStmt in interface BBlockHir
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||