HORIZON HASKELLDocslts/ghc-9.14.x3e2d5682026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 9.14.1 · lts/ghc-9.14.x · 3e2d568 · 2026-10-11

Moduleghc-9.14.1GHC2021

GHC.CmmToAsm.Reg.Graph

Graph coloring register allocator.

  • 1 value
  • Packageghc-9.14.1
  • Exports1
  • LanguageGHC2021
  • LicenceBSD-3-Clause
  • SourceGraph.hs
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.