ghc-6.12.1: The GHC APISource codeContentsIndex
RegAlloc.Graph.Main
Description

Graph coloring register allocator.

TODO: The colors in graphviz graphs for x86_64 and ppc could be nicer.

Synopsis
regAlloc :: (Outputable instr, Instruction instr) => DynFlags -> UniqFM (UniqSet RealReg) -> UniqSet Int -> [LiveCmmTop instr] -> UniqSM ([NatCmmTop instr], [RegAllocStats instr])
Documentation
regAllocSource
:: (Outputable instr, Instruction instr)
=> DynFlagsthe registers we can use for allocation
-> UniqFM (UniqSet RealReg)the set of available spill slots.
-> UniqSet Intcode annotated with liveness information.
-> [LiveCmmTop instr]code with registers allocated and stats for each stage of allocation
-> UniqSM ([NatCmmTop instr], [RegAllocStats instr])
The top level of the graph coloring register allocator.
Produced by Haddock version 2.6.0