Class Swizzler
java.lang.Object
EDU.purdue.cs.bloat.tree.Swizzler
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:
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Swizzler
Constructor.- Parameters:
var- Induction variable. (An index variable for an array.)tgt- Target of the phi statement that defines the induction variable.val- Initial value of the induction variable.phiblock- The block in which the phi statement resides.
-
-
Method Details
-
set_end_val
Sets the ending value for the induction variable.- Parameters:
end- The final value the induction variable will take on.
-
set_array
- Parameters:
a- The array that is indexed by the induction variable.
-
set_aswizzle
- Parameters:
sc- The aswizzle statement that could be removed from the block.
-
ind_var
-
target
-
init_val
-
end_val
-
array
-
phi_block
-
aswizzle
-