|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectscale.common.Root
scale.score.Note
scale.score.expr.Expr
scale.score.expr.UnaryExpr
scale.score.expr.FieldExpr
public abstract class FieldExpr
This is the base class for field reference operations.
$Id: FieldExpr.java,v 1.50 2007-01-04 17:26:10 burrill Exp $
Copyright 2007 by the
Scale Compiler Group,
Department of Computer Science
University of Massachusetts,
Amherst MA. 01003, USA
All Rights Reserved.
| Field Summary |
|---|
| Fields inherited from class scale.score.expr.Expr |
|---|
fpReorder, SE_DOMAIN, SE_NONE, SE_OVERFLOW, SE_STATE |
| Constructor Summary | |
|---|---|
FieldExpr(Type type,
Expr structure,
FieldDecl field)
|
|
| Method Summary | |
|---|---|
long |
canonical()
Return a unique value representing this particular expression. |
boolean |
equivalent(Expr exp)
Return true if the expressions are equivalent. |
java.lang.String |
getDisplayLabel()
Return a String suitable for labeling this node in a graphical display. |
FieldDecl |
getField()
Return the expression specifying the field. |
Expr |
getReference()
Return the structure associated with the field expression. |
Expr |
getStructure()
Return the expression specifying the structure. |
boolean |
isDefined(Expr expr)
The given expression is defined if the FieldExpr expression is defined and the given expression is the structure. |
boolean |
isLoopInvariant(LoopHeaderChord loop)
Return true if this expression is loop invariant. |
boolean |
isMemRefExpr()
Return true if the expression loads a value from memory. |
| Methods inherited from class scale.score.expr.UnaryExpr |
|---|
containsDeclaration, dependsOnDeclaration, executionCostEstimate, getAliasAnnote, getArg, getDeclList, getExprList, getLoadExprList, getOperand, getOperandArray, loopClean, numOperands, optimizationCandidate, pushOperands, recordRefs, removeRefs, removeUseDef, replaceDecl, setArg, setOperand, sideEffects, unlinkExpression, validate |
| Methods inherited from class scale.score.Note |
|---|
getChord, getEssentialUse, setAnnotationLevel, setReportLevel, toString, visit |
| Methods inherited from class scale.common.Root |
|---|
addAnnotation, allAnnotations, allMatchingAnnotations, getAnnotation, getDisplayName, getDisplayString, getNodeCount, getNodeID, hasAnnotation, hasEqualAnnotation, hashCode, removeAnnotation, removeAnnotations, toStringAnnotations, toStringClass, trace, trace, trace |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public FieldExpr(Type type,
Expr structure,
FieldDecl field)
type - is the result type of the field referencestructure - is the address of the structure accessedfield - specifies the field being referenced| Method Detail |
|---|
public boolean equivalent(Expr exp)
equivalent in class UnaryExprpublic final Expr getStructure()
public FieldDecl getField()
public boolean isMemRefExpr()
isMemRefExpr in class Exprpublic java.lang.String getDisplayLabel()
Expr
getDisplayLabel in interface DisplayNodegetDisplayLabel in class Exprpublic boolean isDefined(Expr expr)
isDefined in class Exprexpr - the expression representing the structure name
public Expr getReference()
getReference in class Exprpublic long canonical()
canonical in class Exprpublic boolean isLoopInvariant(LoopHeaderChord loop)
isLoopInvariant in class Exprloop - is the loop
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||