harpoon.Analysis.Maps
Interface UseDefMap

All Known Implementing Classes:
UseDef

public interface UseDefMap

A UseDefMap is a mapping from temporaries to the HCodeElements that define them.

Version:
$Id: UseDefMap.java,v 1.4 2002/02/25 20:58:10 cananian Exp $
Author:
C. Scott Ananian <cananian@alumni.princeton.edu>

Method Summary
 HCodeElement[] defMap(HCode hc, Temp t)
          Return an array of HCodeElements that define Temp t.
 Enumeration defMapE(HCode hc, Temp t)
          Return an Enumeration of HCodeElements that define Temp t.
 HCodeElement[] useMap(HCode hc, Temp t)
          Return an array of HCodeElements that use Temp t.
 Enumeration useMapE(HCode hc, Temp t)
          Return an Enumeration of HCodeElements that use Temp t.
 

Method Detail

useMap

public HCodeElement[] useMap(HCode hc,
                             Temp t)
Return an array of HCodeElements that use Temp t.

Parameters:
hc - The HCode containing t.
t - The temporary to examine.
Returns:
an array of HCodeElements where HCodeElement.use() includes t.

useMapE

public Enumeration useMapE(HCode hc,
                           Temp t)
Return an Enumeration of HCodeElements that use Temp t.

Parameters:
hc - The HCode containing t.
t - The temporary to examine.
Returns:
an Enumeration of HCodeElements where HCodeElement.use() includes t.

defMap

public HCodeElement[] defMap(HCode hc,
                             Temp t)
Return an array of HCodeElements that define Temp t.

Parameters:
hc - The HCode containing t.
t - The temporary to examine.
Returns:
an array of HCodeElements where HCodeElement.def() includes t.

defMapE

public Enumeration defMapE(HCode hc,
                           Temp t)
Return an Enumeration of HCodeElements that define Temp t.

Parameters:
hc - The HCode containing t.
t - The temporary to examine.
Returns:
an Enumeration of HCodeElements where HCodeElement.def() includes t.