Package iota

Class NGraphRegisterAllocator

java.lang.Object
iota.NRegisterAllocator
iota.NGraphRegisterAllocator

class NGraphRegisterAllocator extends NRegisterAllocator
A register allocator that uses the graph coloring algorithm to allocate physical registers to virtual registers.
  • Constructor Details

    • NGraphRegisterAllocator

      public NGraphRegisterAllocator(NControlFlowGraph cfg)
      Constructs an NGraphRegisterAllocator object.
      Parameters:
      cfg - control flow graph for the method.
  • Method Details

    • run

      public void run()
      Allocates physical registers to virtual registers.
      Specified by:
      run in class NRegisterAllocator