scale.score.analyses
Class SubVirtualVar

java.lang.Object
  extended by scale.common.Root
      extended by scale.clef.Node
          extended by scale.clef.decl.Declaration
              extended by scale.clef.decl.ValueDecl
                  extended by scale.clef.decl.VariableDecl
                      extended by scale.score.analyses.VirtualVar
                          extended by scale.score.analyses.SubVirtualVar
All Implemented Interfaces:
java.lang.Comparable, AnnotationInterface, DisplayNode

public class SubVirtualVar
extends VirtualVar

A class that represents a subset virtual variable.

$Id: SubVirtualVar.java,v 1.12 2005-03-24 13:57:16 burrill Exp $

Copyright 2005 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.analyses.VirtualVar
var
 
Fields inherited from class scale.clef.decl.VariableDecl
ignoreAddressTaken
 
Constructor Summary
SubVirtualVar(java.lang.String n, ECR v, SuperVirtualVar supvv)
          Create a new virtual variable with a given name and associated ECR.
 
Method Summary
 Declaration copy(java.lang.String name)
          Make a copy of this declaration using a new name.
 VirtualVar getSuperset()
          Return the superset virtual variable.
 boolean isSuper()
          Return true if this is a superset variable.
 
Methods inherited from class scale.score.analyses.VirtualVar
created, getDisplayLabel, getECR, getSubset, inSubsets, isVirtual, numSubsets, subsetEquiv
 
Methods inherited from class scale.clef.decl.VariableDecl
addressTaken, computeAttributes, declareFtnResultVar, getAddressRegister, getConstantValue, getDisplacement, getInitialValue, getOriginal, getStorageLoc, getValueRegister, hasHiddenAliases, hasHiddenPtrAliases, hasInvalidArrayReferences, inMemory, isCommonBaseVar, isCommonBaseVariable, isConst, isFtnResultVar, isNotAliasCandidate, isNotSSACandidate, isReferenced, isRestricted, isStatic, isStorageLocSet, isTemporary, isVariableDecl, isVolatile, optimizationCandidate, residency, returnVariableDecl, setAddressRegister, setAddressTaken, setDisplacement, setHiddenAliases, setHiddenPtrAliases, setInitialValue, setInvalidArrayReferences, setReferenced, setResidency, setStorageLoc, setTemporary, setType, setValue, setValueRegister, setVisibility, shouldBeInRegister, specifyCommonBaseVariable, toStringSpecial, valueRegMode, visit
 
Methods inherited from class scale.clef.decl.ValueDecl
getChild, getValue, isValueDecl, numChildren, returnValueDecl
 
Methods inherited from class scale.clef.decl.Declaration
accessibility, compareTo, getActualType, getAlias, getCoreType, getDecl, getDisplayColorHint, getDisplayShapeHint, getMode, getName, getPointedToCore, getTag, getType, hashCode, isCaseLabelDecl, isEnumElementDecl, isEquivalenceDecl, isExceptionDecl, isFieldDecl, isFileDecl, isFormalDecl, isForwardProcedureDecl, isGlobal, isLabelDecl, isProcedureDecl, isPure, isRenamed, isRenamedVariableDecl, isRoutineDecl, isStmtFtnDecl, isTypeDecl, isTypeName, isUnknownFormals, isWeak, returnCaseLabelDecl, returnEnumElementDecl, returnEquivalenceDecl, returnExceptionDecl, returnFieldDecl, returnFileDecl, returnFormalDecl, returnForwardProcedureDecl, returnLabelDecl, returnProcedureDecl, returnRenamedVariableDecl, returnRoutineDecl, returnStmtFtnDecl, returnTypeDecl, returnTypeName, returnUnknownFormals, setAccessibility, setAlias, setName, setTag, setWeak, visibility
 
Methods inherited from class scale.clef.Node
getSourceLineNumber, setAnnotationLevel, setReportLevel, setSourceLineNumber, toString, toString, toStringChildren
 
Methods inherited from class scale.common.Root
addAnnotation, allAnnotations, allMatchingAnnotations, getAnnotation, getDisplayName, getDisplayString, getNodeCount, getNodeID, hasAnnotation, hasEqualAnnotation, 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

SubVirtualVar

public SubVirtualVar(java.lang.String n,
                     ECR v,
                     SuperVirtualVar supvv)
Create a new virtual variable with a given name and associated ECR. and pointer to the superset virtual variable

Method Detail

getSuperset

public VirtualVar getSuperset()
Return the superset virtual variable.

Overrides:
getSuperset in class VirtualVar

isSuper

public boolean isSuper()
Return true if this is a superset variable.

Overrides:
isSuper in class VirtualVar

copy

public Declaration copy(java.lang.String name)
Make a copy of this declaration using a new name.

Overrides:
copy in class VirtualVar