harpoon.IR.Tree
Class TreeUseDefer
java.lang.Object
harpoon.IR.Properties.UseDefer<Tree>
harpoon.IR.Tree.TreeUseDefer
public class TreeUseDefer
- extends UseDefer<Tree>
TreeUseDefer
implements the Properties.UseDefer
interface for non-SEQ
Stm
s of a tree.
- Version:
- $Id: TreeUseDefer.java,v 1.5 2004/02/08 01:55:51 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<Temp> defC(Tree tree)
- 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<Tree>
useC
public Collection<Temp> useC(Tree hce)
- Returns a collection of
Temp
s which are used by the
statement/expression subtree rooted at hce
.
- Specified by:
useC
in class UseDefer<Tree>