HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

Moduleghc-9.10.3GHC2021

GHC.CmmToAsm.Reg.Graph

Graph coloring register allocator.

  • 1 value
  • Packageghc-9.10.3
  • 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. -> UniqSM ([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.