ghc-6.12.3: The GHC APISource codeContentsIndex
RegAlloc.Linear.StackMap
Description
The assignment of virtual registers to stack slots
Synopsis
type StackSlot = Int
data StackMap = StackMap {
stackMapFreeSlots :: [StackSlot]
stackMapAssignment :: UniqFM StackSlot
}
emptyStackMap :: StackMap
getStackSlotFor :: StackMap -> Unique -> (StackMap, Int)
Documentation
type StackSlot = IntSource
Identifier for a stack slot.
data StackMap Source
Constructors
StackMap
stackMapFreeSlots :: [StackSlot]The slots that are still available to be allocated.
stackMapAssignment :: UniqFM StackSlotAssignment of vregs to stack slots.
emptyStackMap :: StackMapSource
An empty stack map, with all slots available.
getStackSlotFor :: StackMap -> Unique -> (StackMap, Int)Source
If this vreg unique already has a stack assignment then return the slot number, otherwise allocate a new slot, and update the map.
Produced by Haddock version 2.6.1