Package jminusminus
Class NLinearRegisterAllocator
java.lang.Object
jminusminus.NRegisterAllocator
jminusminus.NLinearRegisterAllocator
Implements register allocation using linear scan algorithm.
-
Field Summary
Fields inherited from class jminusminus.NRegisterAllocator
cfg
-
Constructor Summary
ConstructorDescriptionConstructs an NLinearRegisterAllocator object. -
Method Summary
Modifier and TypeMethodDescriptionvoid
The work horse that does the allocation, implemented in the sub-classes of this class.Methods inherited from class jminusminus.NRegisterAllocator
buildIntervals, preprocess, writeLivenessInfoToStdOut
-
Constructor Details
-
NLinearRegisterAllocator
Constructs an NLinearRegisterAllocator object.- Parameters:
cfg
- an instance of a control flow graph.
-
-
Method Details
-
allocation
public void allocation()The work horse that does the allocation, implemented in the sub-classes of this class.- Specified by:
allocation
in classNRegisterAllocator
-