|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object scale.score.analyses.MayUse
public final class MayUse
A node to represent MayUse information in the alias SSA form.
$Id: MayUse.java,v 1.7 2007-10-04 19:58:21 burrill Exp $
Copyright 2008 by the
Scale Compiler Group,
Department of Computer Science
University of Massachusetts,
Amherst MA. 01003, USA
All Rights Reserved.
The may use node represents a potential use of a variable. May use information is associated with variable references. We create virtual variables to describe the potential variables used in the may use.
We model the may use information as described in the paper Effective Representation of Aliases and Indirect Memory Operations in SSA Form by Chow et. al.
MayDef
Constructor Summary | |
---|---|
MayUse(VirtualVar decl)
Create may use information. |
Method Summary | |
---|---|
void |
addMayUse(MayUse mayUse)
Add may use information to the load expression. |
Expr |
copy()
Return a deep-copy of this object. |
MayUse |
copy(Expr graphNode)
Make a copy of this expression. |
MayDef |
findMayDef()
Find the use-def link that matches the virtual variable. |
VirtualVar |
getDecl()
Return the Clef declaration of the variable being loaded. |
DColor |
getDisplayColorHint()
Return an interger specifying the color to use for coloring this node in a graphical display. |
java.lang.String |
getDisplayLabel()
Return the representative name for the operation. |
java.lang.String |
getDisplayName()
Return a unique label for graphical displays. |
DShape |
getDisplayShapeHint()
Return a String specifying a shape to use when drawing this node in a graphical display. |
Expr |
getGraphNode()
Return the scribble/score node that represents the real use of the may use information. |
MayDef |
getMayDef()
Return the ExprChord that defines
the value load by this load expression. |
MayUse |
getMayUse()
Return the may use information assocaited with the load. |
java.lang.String |
getName()
Return the name of the variable declaration. |
Declaration |
getSubsetDecl()
Return the original declaration of the value loaded. |
void |
setDecl(VariableDecl decl)
Return the Clef declaration of the variable being loaded. |
void |
setDecl(VirtualVar decl)
Change the declaration associated with the load operation. |
void |
setGraphNode(Expr graphNode)
Connect the may-use to the node where the use occurs. |
void |
setMayDef(MayDef expr)
Define a link from this load of a value to the scale.score.chords.ExprChord that defines the value. |
void |
validate()
Check this node for validity. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MayUse(VirtualVar decl)
decl
- a declaration for the virtual variableMethod Detail |
---|
public MayUse copy(Expr graphNode)
public void setMayDef(MayDef expr)
expr
- the new use-def linkpublic MayDef getMayDef()
ExprChord
that defines
the value load by this load expression.
public void addMayUse(MayUse mayUse)
mayUse
- the expresion representing the may usepublic final MayUse getMayUse()
public final VirtualVar getDecl()
public final void setDecl(VariableDecl decl)
public final void setDecl(VirtualVar decl)
decl
- is the new declataionpublic java.lang.String getName()
public Expr copy()
public void setGraphNode(Expr graphNode)
public Expr getGraphNode()
public Declaration getSubsetDecl()
public MayDef findMayDef()
public DColor getDisplayColorHint()
DisplayNode
getDisplayColorHint
in interface DisplayNode
DColor
public java.lang.String getDisplayLabel()
getDisplayLabel
in interface DisplayNode
public DShape getDisplayShapeHint()
getDisplayShapeHint
in interface DisplayNode
DShape
public java.lang.String getDisplayName()
getDisplayName
in interface DisplayNode
public void validate()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |