Class SCStmt


public class SCStmt extends Stmt
SCStmt represents a swizzle check on an element in an array.
  • Constructor Details

    • SCStmt

      public SCStmt(Expr a, Expr i)
      Constructor.
      Parameters:
      a - The array on which to place the swizzle check.
      i - The element in array a to swizzle.
  • Method Details

    • 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)
      Specified by:
      visit in class Node
    • clone

      public Object clone()
      Specified by:
      clone in class Stmt
    • visitForceChildren

      public void visitForceChildren(TreeVisitor visitor)
      Description copied from class: Node
      Visit the children of this node. Not all Nodes will have children to visit.
      Specified by:
      visitForceChildren in class Node