harpoon.Analysis.Instr
Class IgnoreSpillUseDefer

java.lang.Object
  extended by harpoon.IR.Properties.UseDefer
      extended by harpoon.Analysis.Instr.IgnoreSpillUseDefer

public class IgnoreSpillUseDefer
extends UseDefer

IgnoreSpillUseDefer defines a view of the code that will skip over newly inserted spill instructions when deciding what Temps instructions read and write. This is useful for the garbage collection analyses which need to know what Temps are live in terms of the program itself, ignoring memory communication due to spill code.

For example, a SpillLoad from the stack location for t0 to r3 is no longer considered a definition of t0 by this UseDefer.

This class may need to be updated to take a UseDefer parameter, rather than relying on the underlying IR implementing the UseDefable interface.

Version:
$Id: IgnoreSpillUseDefer.java,v 1.2 2002/02/25 20:57:30 cananian Exp $
Author:
Felix S. Klock II <pnkfelix@mit.edu>

Field Summary
static IgnoreSpillUseDefer USEDEFER
           
 
Fields inherited from class harpoon.IR.Properties.UseDefer
DEFAULT
 
Constructor Summary
IgnoreSpillUseDefer()
          Creates a IgnoreSpillUDr.
 
Method Summary
 Collection defC(HCodeElement hce)
          Returns a Collection of all the Temps that are defined by hce.
 Collection useC(HCodeElement hce)
          Returns a Collection of all the Temps that may be read by 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
 

Field Detail

USEDEFER

public static IgnoreSpillUseDefer USEDEFER
Constructor Detail

IgnoreSpillUseDefer

public IgnoreSpillUseDefer()
Creates a IgnoreSpillUDr.

Method Detail

useC

public Collection useC(HCodeElement hce)
Description copied from class: UseDefer
Returns a Collection of all the Temps that may be read by hce.

Specified by:
useC in class UseDefer

defC

public Collection defC(HCodeElement hce)
Description copied from class: UseDefer
Returns a Collection of all the Temps that are defined by hce.

Specified by:
defC in class UseDefer