ghc-7.4.1: The GHC API

Safe HaskellSafe-Infered

RegAlloc.Graph.Main

Description

Graph coloring register allocator.

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

Synopsis

Documentation

regAllocSource

Arguments

:: (PlatformOutputable statics, PlatformOutputable instr, Instruction instr) 
=> DynFlags 
-> UniqFM (UniqSet RealReg)

the registers we can use for allocation

-> UniqSet Int

the set of available spill slots.

-> [LiveCmmDecl statics instr]

code annotated with liveness information.

-> UniqSM ([NatCmmDecl statics instr], [RegAllocStats statics instr])

code with registers allocated and stats for each stage of allocation

The top level of the graph coloring register allocator.