harpoon.IR.Properties
Class UseDefer

java.lang.Object
  |
  +--harpoon.IR.Properties.UseDefer
Direct Known Subclasses:
BasePointerPreservingUseDefer, IgnoreSpillUseDefer, RegUseDefer, TreeUseDefer

public abstract class UseDefer
extends Object

UseDefer provides a means to externally associate use and def information with elements of an intermediate representation.

Version:
$Id: UseDefer.java,v 1.2 2002/02/25 21:04:45 cananian Exp $
Author:
Felix S. Klock II <pnkfelix@mit.edu>

Field Summary
static UseDefer DEFAULT
          Default UseDefer for HCodeElements which implement UseDefable.
 
Constructor Summary
UseDefer()
           
 
Method Summary
 Temp[] def(HCodeElement hce)
          Return all the Temps defined by hce.
abstract  Collection defC(HCodeElement hce)
          Returns a Collection of all the Temps that are defined by hce.
 Temp[] use(HCodeElement hce)
          Return all the Temps used by hce.
abstract  Collection useC(HCodeElement hce)
          Returns a Collection of all the Temps that may be read by hce.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT

public static final UseDefer DEFAULT
Default UseDefer for HCodeElements which implement UseDefable. Does nothing but cast the supplied HCodeElement to a UseDefable and invoke the appropriate corresponding method in the UseDefable interface.

See Also:
Comparator, Comparable, harpoon.Util.Default.comparator
Constructor Detail

UseDefer

public UseDefer()
Method Detail

use

public Temp[] use(HCodeElement hce)
Return all the Temps used by hce.


def

public Temp[] def(HCodeElement hce)
Return all the Temps defined by hce.


useC

public abstract Collection useC(HCodeElement hce)
Returns a Collection of all the Temps that may be read by hce.


defC

public abstract Collection defC(HCodeElement hce)
Returns a Collection of all the Temps that are defined by hce.