|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectharpoon.Analysis.Loops.LoopFinder
public class LoopFinder
LoopFinder implements Dominator Tree Loop detection.
| Constructor Summary | |
|---|---|
LoopFinder(HCode hc)
Creates a new LoopFinder object. |
|
LoopFinder(HCode hc,
CFGrapher grapher)
Creates a new LoopFinder object. |
|
| Method Summary | |
|---|---|
Loops |
getRootloop(HCode hc)
This method returns the Root level loop for a given HCode. |
Set |
loopBackEdges()
This method finds all of the backedges of the loop. |
Set |
loopEntranceEdges()
Returns entrances to the Loop. |
Set |
loopEntrances()
This method returns the entry point of the loop. |
Set |
loopExcElements()
Returns all of the HCodeElements of this loop that aren't in a nested
loop. |
Set |
loopExitEdges()
Returns a Set of all HCodeEdges
exiting the loop. |
Set |
loopExits()
Returns a Set of all HCodeElements
in the loop which have an edge exiting the loop. |
Set |
loopIncElements()
Returns a Set with all of the HCodeElements of the loop and
loops included entirely within this loop. |
Set |
nestedLoops()
Returns a Set of loops that are nested inside of this loop. |
Loops |
parentLoop()
Returns the Loops that contains this loop. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LoopFinder(HCode hc)
hc is a HCode implementing
the CFGraphable interface.
public LoopFinder(HCode hc,
CFGrapher grapher)
grapher is a
CFGrapher for hc .
| Method Detail |
|---|
public Loops getRootloop(HCode hc)
HCode.
Does the same thing as the constructor call, but for an existing
LoopFinder object.
public Set loopEntrances()
Set of HCodeElements.
loopEntrances in interface Loopspublic Set loopEntranceEdges()
LoopsSet of HCodeEdges.
loopEntranceEdges in interface Loopspublic Set loopExits()
Set of all HCodeElements
in the loop which have an edge exiting the loop.
loopExits in interface Loopspublic Set loopExitEdges()
Set of all HCodeEdges
exiting the loop.
loopExitEdges in interface Loopspublic Set loopBackEdges()
Set of
HCodeEdges.
loopBackEdges in interface Loopspublic Set loopIncElements()
Set with all of the HCodeElements of the loop and
loops included entirely within this loop.
loopIncElements in interface Loopspublic Set loopExcElements()
HCodeElements of this loop that aren't in a nested
loop. This returns a Set of HCodeElements.
loopExcElements in interface Loopspublic Set nestedLoops()
Set of loops that are nested inside of this loop.
nestedLoops in interface Loopspublic Loops parentLoop()
Loops that contains this loop.
If this is the top level loop, this call returns a null pointer.
parentLoop in interface Loops
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||