Package jminusminus

Class NGraphRegisterAllocator

java.lang.Object
jminusminus.NRegisterAllocator
jminusminus.NGraphRegisterAllocator

public class NGraphRegisterAllocator extends NRegisterAllocator
Implements register allocation using graph coloring algorithm.
  • Constructor Details

    • NGraphRegisterAllocator

      public NGraphRegisterAllocator(NControlFlowGraph cfg)
      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 class NRegisterAllocator