harpoon.Backend.CSAHack.RegAlloc
Class RegAlloc

java.lang.Object
  extended by harpoon.Backend.CSAHack.RegAlloc.RegAlloc
All Implemented Interfaces:
TempMap

public class RegAlloc
extends Object
implements TempMap

Register allocation module.

Version:
1.00, 25 Nov 1996
Author:
C. Scott Ananian

Constructor Summary
RegAlloc(Frame f, Code c, Instr root, DerivationGenerator dg)
          Allocate the temporaries defined and used in an Assem.InstrList to machine registers defined in a Frame.
 
Method Summary
 Temp tempMap(Temp temp)
          A mapping of temporaries to registers.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RegAlloc

public RegAlloc(Frame f,
                Code c,
                Instr root,
                DerivationGenerator dg)
Allocate the temporaries defined and used in an Assem.InstrList to machine registers defined in a Frame. The resulting InstrList is placed in the instrs field of this class.

Parameters:
f - a machine-specific frame and register description
il - a list of instructions to be register allocated.
Method Detail

tempMap

public Temp tempMap(Temp temp)
A mapping of temporaries to registers.

Specified by:
tempMap in interface TempMap