Package iota
Class NRegisterAllocator
java.lang.Object
iota.NRegisterAllocator
- Direct Known Subclasses:
NGraphRegisterAllocator
,NNaiveRegisterAllocator
An abstract representation of a register allocator.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected NControlFlowGraph
The control flow graph for a method. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Constructs an NRegisterAllocator object. -
Method Summary
Modifier and TypeMethodDescriptionabstract void
run()
Allocates physical registers to virtual registers.
-
Field Details
-
cfg
The control flow graph for a method.
-
-
Constructor Details
-
NRegisterAllocator
Constructs an NRegisterAllocator object.- Parameters:
cfg
- control flow graph for the method.
-
-
Method Details
-
run
public abstract void run()Allocates physical registers to virtual registers.
-