|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcoins.backend.cfg.FlowGraph
Represent Control Flow Graph, a directed graph whose nodes are basic blocks.
| Field Summary | |
BiList |
basicBlkList
List of basic blocks. |
Function |
function
Function owning this CFG. |
| Constructor Summary | |
FlowGraph(Function f,
BiList anInstrList)
Split LIR instruction list into basic blocks and build up CFG. |
|
| Method Summary | |
java.util.Iterator |
basicBlkIterator()
Return iterator for accessing basic blocks. |
BasicBlk[] |
blkVectorByPre()
Deprecated. use DFST class instead. |
BasicBlk[] |
blkVectorByRPost()
Deprecated. use DFST class instead. |
void |
dfstOrder()
Deprecated. use DFST class instead. |
void |
dfstOrderHook(DfstHook h)
Deprecated. use DFST class instead. |
BasicBlk |
entryBlk()
Return the entry basic block. |
BasicBlk |
exitBlk()
Return the exit basic block. |
int |
idBound()
Return maximum block numer + 1. |
BasicBlk |
insertNewBlkBefore(BasicBlk x)
Insert new empty basic block before block x. |
int |
maxDfn()
Deprecated. use DFST class instead. |
(package private) BasicBlk |
newBasicBlk(BiList instr)
Create new basic block with instruction list instr. |
void |
printIt(java.io.PrintWriter output)
Print CFG |
void |
printIt(java.io.PrintWriter output,
LocalAnalysis[] anals)
Print CFG with callback |
void |
printStandardForm(java.io.PrintWriter output,
java.lang.String indent)
Print standard form |
int |
timeStamp()
Return last modified time of the graph. |
java.lang.Object |
toSexp()
Convert to external LIR format. |
void |
touch()
Notify that the graph has been modified. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public final Function function
public final BiList basicBlkList
| Constructor Detail |
public FlowGraph(Function f,
BiList anInstrList)
| Method Detail |
public int timeStamp()
public void touch()
BasicBlk newBasicBlk(BiList instr)
instr.
public BasicBlk insertNewBlkBefore(BasicBlk x)
public int idBound()
public void dfstOrder()
public void dfstOrderHook(DfstHook h)
public int maxDfn()
public BasicBlk[] blkVectorByRPost()
public BasicBlk[] blkVectorByPre()
public BasicBlk entryBlk()
public BasicBlk exitBlk()
public java.util.Iterator basicBlkIterator()
public java.lang.Object toSexp()
public void printStandardForm(java.io.PrintWriter output,
java.lang.String indent)
public void printIt(java.io.PrintWriter output)
public void printIt(java.io.PrintWriter output,
LocalAnalysis[] anals)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||