harpoon.Backend.CSAHack.RegAlloc
Class RegAlloc
java.lang.Object
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
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 |
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 descriptionil
- a list of instructions to be register allocated.
tempMap
public Temp tempMap(Temp temp)
- A mapping of temporaries to registers.
- Specified by:
tempMap
in interface TempMap