Package jminusminus
Class NGraphRegisterAllocator
java.lang.Object
jminusminus.NRegisterAllocator
jminusminus.NGraphRegisterAllocator
Implements register allocation using graph coloring algorithm.
-
Field Summary
Fields inherited from class jminusminus.NRegisterAllocator
cfg
-
Constructor Summary
ConstructorDescriptionConstructs an NGraphRegisterAllocator 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
-
NGraphRegisterAllocator
Constructs an NGraphRegisterAllocator 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
-