HORIZON HASKELLDocslts/ghc-10.0.xaa25b892026-10-10Search names, modules, packages, or :: a typeCtrl K

GHC 10.0.0.20260917 · lts/ghc-10.0.x · aa25b89 · 2026-10-10

Moduleghc-10.0.0.20260917GHC2024

GHC.CmmToAsm.Reg.Graph

Graph coloring register allocator.

  • 1 value
valueregAlloc
  1. :: (OutputableP Platform statics, Instruction instr)
  2. => NCGConfig
  3. -> UniqFM RegClass (UniqSet RealReg)

    registers we can use for allocation

  4. -> UniqSet Int

    set of available spill slots.

  5. -> Int

    current number of spill slots

  6. -> [LiveCmmDecl statics instr]

    code annotated with liveness information.

  7. -> Maybe CFG

    CFG of basic blocks if available

  8. -> UniqDSM ([NatCmmDecl statics instr], Maybe Int, [RegAllocStats statics instr])

    code with registers allocated, additional stacks required and stats for each stage of allocation

#

The top level of the graph coloring register allocator.