public abstract class NRegisterAllocator extends Object
| Modifier and Type | Field and Description |
|---|---|
protected NControlFlowGraph |
cfg
The control flow graph for a method.
|
| Modifier | Constructor and Description |
|---|---|
protected |
NRegisterAllocator(NControlFlowGraph cfg)
Construct an NRegisterAllocator object given the control flow graph for
method.
|
| Modifier and Type | Method and Description |
|---|---|
abstract void |
allocation()
The work horse that does the allocation, implemented in the concrete
sub-classes of NRegisterAllocator.
|
protected void |
buildIntervals()
Build the intervals for a control flow graph.
|
protected NControlFlowGraph cfg
protected NRegisterAllocator(NControlFlowGraph cfg)
cfg - control flow graph for a method.