| java.lang.Object EDU.purdue.cs.bloat.tree.Swizzler
Swizzler | public class Swizzler (Code) | | Swizzler represents an induction variable that is used as an index into an
array. Analysis can be done to determine if array swizzle (aswizzle)
instruction(s) can be hoisted out of the loop.
See Also: EDU.purdue.cs.bloat.diva.InductionVarAnalyzer See Also: InductionVarAnalyzer |
Constructor Summary | |
public | Swizzler(Expr var, Expr tgt, Expr val, Block phiblock) Constructor.
Parameters: var - Induction variable. |
Swizzler | public Swizzler(Expr var, Expr tgt, Expr val, Block phiblock)(Code) | | Constructor.
Parameters: var - Induction variable. (An index variable for an array.) Parameters: tgt - Target of the phi statement that defines the inductionvariable. Parameters: val - Initial value of the induction variable. Parameters: phiblock - The block in which the phi statement resides. |
set_array | public void set_array(Expr a)(Code) | | Parameters: a - The array that is indexed by the induction variable. |
set_aswizzle | public void set_aswizzle(SCStmt sc)(Code) | | Parameters: sc - The aswizzle statement that could be removed from the block. |
set_end_val | public void set_end_val(Expr end)(Code) | | Sets the ending value for the induction variable.
Parameters: end - The final value the induction variable will take on. |
|
|