|
|||||||||
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 HCodeElement s of this loop that aren't in a nested
loop. |
Set |
loopExitEdges()
Returns a Set of all HCodeEdge s
exiting the loop. |
Set |
loopExits()
Returns a Set of all HCodeElement s
in the loop which have an edge exiting the loop. |
Set |
loopIncElements()
Returns a Set with all of the HCodeElement s 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 HCodeElement
s.
loopEntrances
in interface Loops
public Set loopEntranceEdges()
Loops
Set
of HCodeEdge
s.
loopEntranceEdges
in interface Loops
public Set loopExits()
Set
of all HCodeElement
s
in the loop which have an edge exiting the loop.
loopExits
in interface Loops
public Set loopExitEdges()
Set
of all HCodeEdge
s
exiting the loop.
loopExitEdges
in interface Loops
public Set loopBackEdges()
Set
of
HCodeEdge
s.
loopBackEdges
in interface Loops
public Set loopIncElements()
Set
with all of the HCodeElement
s of the loop and
loops included entirely within this loop.
loopIncElements
in interface Loops
public Set loopExcElements()
HCodeElement
s of this loop that aren't in a nested
loop. This returns a Set
of HCodeElement
s.
loopExcElements
in interface Loops
public Set nestedLoops()
Set
of loops that are nested inside of this loop.
nestedLoops
in interface Loops
public 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 |