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
Stm
s 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>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TreeUseDefer
public TreeUseDefer(Code code)
- Creates a
UseDefer
.
defC
public Collection defC(HCodeElement hce)
- Returns a collection of
Temp
s defined by hce
.
The only Tree.Tree
s which define Temp
s
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
Temp
s which are used by the
statement/expression subtree rooted at hce
.
- Specified by:
useC
in class UseDefer