Package EDU.purdue.cs.bloat.tree
Class SCStmt
- java.lang.Object
-
- EDU.purdue.cs.bloat.tree.Node
-
- EDU.purdue.cs.bloat.tree.Stmt
-
- EDU.purdue.cs.bloat.tree.SCStmt
-
public class SCStmt extends Stmt
SCStmt represents a swizzle check on an element in an array.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Exprarray()java.lang.Objectclone()Exprindex()booleanredundant()voidset_redundant(boolean val)voidvisit(TreeVisitor visitor)voidvisitForceChildren(TreeVisitor visitor)Visit the children of this node.-
Methods inherited from class EDU.purdue.cs.bloat.tree.Stmt
cleanupOnly
-
Methods inherited from class EDU.purdue.cs.bloat.tree.Node
block, cleanup, copyInto, hasParent, key, parent, replaceWith, replaceWith, setKey, setParent, setValueNumber, toString, valueNumber, visitChildren, visitOnly
-
-
-
-
Method Detail
-
array
public Expr array()
-
index
public Expr index()
-
redundant
public boolean redundant()
- Returns:
- True, if the swizzle check is redundent.
-
set_redundant
public void set_redundant(boolean val)
-
visit
public void visit(TreeVisitor visitor)
-
visitForceChildren
public void visitForceChildren(TreeVisitor visitor)
Description copied from class:NodeVisit the children of this node. Not all Nodes will have children to visit.- Specified by:
visitForceChildrenin classNode
-
-