harpoon.IR.Tree
Class TreeUseDefer

java.lang.Object
  |
  +--harpoon.IR.Properties.UseDefer
        |
        +--harpoon.IR.Tree.TreeUseDefer

public class TreeUseDefer
extends UseDefer

TreeUseDefer implements the Properties.UseDefer interface for non-SEQ Stms of a tree.

Version:
$Id: TreeUseDefer.java,v 1.3 2002/02/26 22:46:11 cananian Exp $
Author:
C. Scott Ananian <cananian@alumni.princeton.edu>

Field Summary
 
Fields inherited from class harpoon.IR.Properties.UseDefer
DEFAULT
 
Constructor Summary
TreeUseDefer(Code code)
          Creates a UseDefer.
 
Method Summary
 Collection defC(HCodeElement hce)
          Returns a collection of Temps defined by hce.
 Collection useC(HCodeElement hce)
          Returns a collection of Temps which are used by the statement/expression subtree rooted at hce.
 
Methods inherited from class harpoon.IR.Properties.UseDefer
def, use
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TreeUseDefer

public TreeUseDefer(Code code)
Creates a UseDefer.

Method Detail

defC

public Collection defC(HCodeElement hce)
Returns a collection of Temps defined by hce.

The only Tree.Trees which define Temps are CALL, NATIVECALL, METHOD, and MOVE when the destination expression is a TEMP. For all other elements, this method returns a zero-element collection.

Specified by:
defC in class UseDefer

useC

public Collection useC(HCodeElement hce)
Returns a collection of Temps which are used by the statement/expression subtree rooted at hce.

Specified by:
useC in class UseDefer