ghc-7.4.2: The GHC API

Safe HaskellNone

CmmStackLayout

Synopsis

Documentation

getSpEntryMap :: Int -> CmmGraph -> SpEntryMapSource

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

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 xSource

areaBuilder :: IGraphBuilder AreaSource

stubSlotsOnDeath :: CmmGraph -> FuelUniqSM CmmGraphSource

Sanity check: stub pointers immediately after they die