harpoon.Analysis.LowQuad.Loop
Class Induction

java.lang.Object
  extended by harpoon.Analysis.LowQuad.Loop.Induction

public class Induction
extends Object

Induction

Version:
$Id: Induction.java,v 1.4 2002/04/10 02:59:57 cananian Exp $ This class allows us to store information on Basic/Derived Induction variables.
Author:
Brian Demsky <bdemsky@mit.edu>

Nested Class Summary
 class Induction.IntMultAdd
           
 
Field Summary
 boolean copied
           
 HClass objectsize
          The objectsize HClass saves the array type.
 boolean pointerindex
          The pointerindex boolean describes whether the Temp induction variable is a pointer [true] or an integer [false].
 ArrayList pointeroffset
          The ArrayList saves pointer Temps that are added in.
 boolean ptrsign
          The ptrsign saves the relative sign.
 Temp ptrvariable
           
 
Method Summary
 Induction add(int operand)
           
 Induction add(Temp operand)
           
 Induction.IntMultAdd bottom()
           
 boolean constant()
           
 int depth()
           
 int intmultiplier()
           
 Induction multiply(int operand)
           
 Induction multiply(Temp operand)
           
 Induction negate()
           
 int offset()
           
 void padd(Temp operand)
           
 String toString()
          toString method returns string describing contents of the class.
 Temp variable()
          The variable Temp stores the basic induction variable.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

pointerindex

public boolean pointerindex
The pointerindex boolean describes whether the Temp induction variable is a pointer [true] or an integer [false].


ptrvariable

public Temp ptrvariable

ptrsign

public boolean ptrsign
The ptrsign saves the relative sign. True being the same sign


objectsize

public HClass objectsize
The objectsize HClass saves the array type.


pointeroffset

public ArrayList pointeroffset
The ArrayList saves pointer Temps that are added in.


copied

public boolean copied
Method Detail

add

public Induction add(int operand)

multiply

public Induction multiply(int operand)

add

public Induction add(Temp operand)

multiply

public Induction multiply(Temp operand)

padd

public void padd(Temp operand)

bottom

public Induction.IntMultAdd bottom()

negate

public Induction negate()

toString

public String toString()
toString method returns string describing contents of the class.

Overrides:
toString in class Object

variable

public Temp variable()
The variable Temp stores the basic induction variable.


constant

public boolean constant()

intmultiplier

public int intmultiplier()

offset

public int offset()

depth

public int depth()