ghc-7.2.1: The GHC API

CmmStackLayout

Synopsis

Documentation

getSpEntryMap :: Int -> CmmGraph -> SpEntryMap

layout :: ProcPointSet -> SpEntryMap -> SlotEnv -> ByteOff -> CmmGraph -> AreaMap

Greedy stack layout. Compute liveness, build the interference graph, and allocate slots for the areas. We visit each basic block in a (generally) forward order.

igraph :: Ord x => IGraphBuilder x -> SlotEnv -> CmmGraph -> IGraph x

areaBuilder :: IGraphBuilder Area

stubSlotsOnDeath :: CmmGraph -> FuelUniqSM CmmGraph

Sanity check: stub pointers immediately after they die