coins.alias
Class MyExpId

java.lang.Object
  extended bycoins.alias.MyExpId

public class MyExpId
extends java.lang.Object

ExpId class used for alias analysis. Currently doesn't implement coins.sym.ExpId or extend coins.sym.ExpIdImpl.


Field Summary
(package private)  HIR fCopy
           
(package private)  HIR fHIR
           
(package private)  Tag fTag
           
 java.lang.Object work
          Workspace object that can be used for any purpose.
 
Constructor Summary
MyExpId(HIR pHIR)
          Creates a new instance of MyExpId
 
Method Summary
 HIR getHir()
          Returns an instance of HIR node that is the root of the HIR tree represented by this MyExpId object.
 HIR getLinkedNode()
          Returns an instance of HIR node that is the root of the HIR tree represented by this MyExpId object.
 java.lang.String toString()
          Returns a String representation of this MyExpId object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

fHIR

HIR fHIR

fCopy

HIR fCopy

fTag

Tag fTag

work

public java.lang.Object work
Workspace object that can be used for any purpose.

Constructor Detail

MyExpId

public MyExpId(HIR pHIR)
Creates a new instance of MyExpId

Parameters:
pHIR - HIR node the subtree rooted at which this MyExpId object represents.
Method Detail

getLinkedNode

public HIR getLinkedNode()
Returns an instance of HIR node that is the root of the HIR tree represented by this MyExpId object. The returned node is part of the program tree (if not optimized out) so should not be modified.

Returns:
a root node of the tree this MyExpId represents, which may be part of the program tree.

getHir

public HIR getHir()
Returns an instance of HIR node that is the root of the HIR tree represented by this MyExpId object. The returned node is detached from the program tree so modification to it is free (but note this method does not return a fresh copy of such a tree each time it is called).

Returns:
a root node of the tree this MyExpId represents, detached from the program tree.

toString

public java.lang.String toString()
Returns a String representation of this MyExpId object.

Returns:
a String representation of this MyExpId object.