SandMark version 2.0


sandmark.obfuscate.boolsplitter.dtree
Class Swizzler

java.lang.Object
  |
  +--sandmark.obfuscate.boolsplitter.dtree.Swizzler

public class Swizzler
extends java.lang.Object

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.


Field Summary
(package private)  Expr array
           
(package private)  SCStmt aswizzle
           
(package private)  Expr end_val
           
(package private)  Expr ind_var
           
(package private)  Expr init_val
           
(package private)  Block phi_block
           
(package private)  Expr target
           
 
Constructor Summary
Swizzler(Expr var, Expr tgt, Expr val, Block phiblock)
          Constructor.
 
Method Summary
 Expr array()
           
 SCStmt aswizzle()
           
 Expr end_val()
           
 Expr ind_var()
           
 Expr init_val()
           
 Block phi_block()
           
 void set_array(Expr a)
           
 void set_aswizzle(SCStmt sc)
           
 void set_end_val(Expr end)
          Sets the ending value for the induction variable.
 Expr target()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ind_var

Expr ind_var

target

Expr target

init_val

Expr init_val

end_val

Expr end_val

array

Expr array

phi_block

Block phi_block

aswizzle

SCStmt aswizzle
Constructor Detail

Swizzler

public Swizzler(Expr var,
                Expr tgt,
                Expr val,
                Block phiblock)
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 Detail

set_end_val

public void set_end_val(Expr end)
Sets the ending value for the induction variable.

Parameters:
end - The final value the induction variable will take on.

set_array

public void set_array(Expr a)
Parameters:
a - The array that is indexed by the induction variable.

set_aswizzle

public void set_aswizzle(SCStmt sc)
Parameters:
sc - The aswizzle statement that could be removed from the block.

ind_var

public Expr ind_var()

target

public Expr target()

init_val

public Expr init_val()

end_val

public Expr end_val()

array

public Expr array()

phi_block

public Block phi_block()

aswizzle

public SCStmt aswizzle()

SandMark version 2.0

Mon Jun 17 12:30:47 MST 2002