harpoon.Analysis.Maps
Interface UseDefMap<HCE extends HCodeElement>

All Known Implementing Classes:
UseDef

public interface UseDefMap<HCE extends HCodeElement>

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

Version:
$Id: UseDefMap.java,v 1.6 2002/09/02 19:23:27 cananian Exp $
Author:
C. Scott Ananian <cananian@alumni.princeton.edu>

Method Summary
 HCE[] defMap(HCode<HCE> hc, Temp t)
          Return an array of HCodeElements that define Temp t.
 HCE[] useMap(HCode<HCE> hc, Temp t)
          Return an array of HCodeElements that use Temp t.
 

Method Detail

useMap

HCE[] useMap(HCode<HCE> 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.

defMap

HCE[] defMap(HCode<HCE> 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.