harpoon.Analysis.LowQuad.Loop
Class LoopAnalysis.ForLoopInfo

java.lang.Object
  extended by harpoon.Analysis.LowQuad.Loop.LoopAnalysis.ForLoopInfo
Enclosing class:
LoopAnalysis

public class LoopAnalysis.ForLoopInfo
extends Object

ForLoopInfo encapsulated information on a for loop.


Field Summary
static int GT
          > case
static int GTE
          >= case
static int LT
          < case
static int LTE
          <= case
static int NEQ
          !
 
Method Summary
 Temp increment()
          increment gives the temp with the loop invariant value to increment the induction variable by.
 Temp indFinal()
          indFinal gives the final value of the induction variable.
 Temp indInitial()
          indInitial gives the initial value of the induction variable.
 Temp induction()
          induction gives the temp with the induction variable of the for loop.
 CJMP loopExit()
          loopExit gives the CJMP that is the first exit of the loop.
 OPER testOPER()
          testOPER gives the OPER containing the for loop test condition.
 int testtype()
          testtype tells the type of test used.
 String toString()
          toString returns a string representation of the for loop.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NEQ

public static final int NEQ
!= case

See Also:
Constant Field Values

LT

public static final int LT
< case

See Also:
Constant Field Values

LTE

public static final int LTE
<= case

See Also:
Constant Field Values

GT

public static final int GT
> case

See Also:
Constant Field Values

GTE

public static final int GTE
>= case

See Also:
Constant Field Values
Method Detail

testtype

public int testtype()
testtype tells the type of test used. This is the condition to continue in the loop.


increment

public Temp increment()
increment gives the temp with the loop invariant value to increment the induction variable by.


induction

public Temp induction()
induction gives the temp with the induction variable of the for loop.


indInitial

public Temp indInitial()
indInitial gives the initial value of the induction variable.


indFinal

public Temp indFinal()
indFinal gives the final value of the induction variable.


testOPER

public OPER testOPER()
testOPER gives the OPER containing the for loop test condition.


loopExit

public CJMP loopExit()
loopExit gives the CJMP that is the first exit of the loop.


toString

public String toString()
toString returns a string representation of the for loop.

Overrides:
toString in class Object