|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectharpoon.Analysis.LowQuad.Loop.LoopAnalysis
public class LoopAnalysis
LoopAnalysis
implements AllInductionsMap
,
BasicInductionsMap
, and InvariantsMap
.
Nested Class Summary | |
---|---|
class |
LoopAnalysis.ForLoopInfo
ForLoopInfo encapsulated information on a for loop. |
Constructor Summary | |
---|---|
LoopAnalysis(TempMap tm)
Creates a LoopAnalysis . |
Method Summary | |
---|---|
Map |
allInductionsMap(HCode hc,
Loops lp)
Returns a Set of basic induction Temp s. |
Map |
basicInductionsMap(HCode hc,
Loops lp)
Returns a Set of basic induction Temp s. |
LoopAnalysis.ForLoopInfo |
forloop(HCode hc,
Loops lp)
forloop takes in an HCode and
Loops to analyze. |
Set |
invariantsMap(HCode hc,
Loops lp)
Returns a Set of invariant loop elements. |
Loops |
rootloop(HCode hc)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LoopAnalysis(TempMap tm)
LoopAnalysis
. Takes in a TempMap
that for SSI forms needs to map SSI->SSA.
Method Detail |
---|
public Loops rootloop(HCode hc)
public Map allInductionsMap(HCode hc, Loops lp)
AllInductionsMap
Set
of basic induction Temp
s.
allInductionsMap
in interface AllInductionsMap
public Map basicInductionsMap(HCode hc, Loops lp)
BasicInductionsMap
Set
of basic induction Temp
s.
basicInductionsMap
in interface BasicInductionsMap
public Set invariantsMap(HCode hc, Loops lp)
InvariantsMap
Set
of invariant loop elements.
invariantsMap
in interface InvariantsMap
public LoopAnalysis.ForLoopInfo forloop(HCode hc, Loops lp)
forloop
takes in an HCode
and
Loops
to analyze. It returns a null if there is
no for loop, or a ForLoopInfo
if it finds a for loop.
It works on Quads and LowQuads on both SSI and SSA forms.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |