Class DefExpr
java.lang.Object
EDU.purdue.cs.bloat.tree.Node
EDU.purdue.cs.bloat.tree.Expr
EDU.purdue.cs.bloat.tree.DefExpr
- All Implemented Interfaces:
Cloneable
- Direct Known Subclasses:
MemExpr
An expression in which a definition occurs. Each instance has a unique
version number associated with it.
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidvoidClean up this expression.booleanbooleanisDef()Determines whether or not this DefExpr defines a local variable in its parent.protected voiduses()Returns the Exprs in which the variable defined by this are used.intversion()Returns Number DefExpr this is.Methods inherited from class Expr
clone, comparator, copyInto, def, equalsExpr, exprHashCode, setDef, setType, stmt, typeMethods inherited from class Node
block, cleanup, copyInto, hasParent, key, parent, replaceWith, replaceWith, setKey, setParent, setValueNumber, toString, valueNumber, visit, visitChildren, visitForceChildren, visitOnly
-
Constructor Details
-
DefExpr
-
-
Method Details
-
cleanupOnly
public void cleanupOnly()Clean up this expression. Notify all the expressions that use this definition that it is no longer their defining expression.- Overrides:
cleanupOnlyin classExpr
-
version
public int version()Returns Number DefExpr this is. This is also the SSA version number of the expression that this DefExpr defines. -
isDef
-
uses
Returns the Exprs in which the variable defined by this are used. -
hasUse
-
addUse
-
removeUse
-