ghc-8.2.2: The GHC API

Safe HaskellNone
LanguageHaskell2010

RegAlloc.Linear.StackMap

Description

The assignment of virtual registers to stack slots

Synopsis

Documentation

type StackSlot = Int #

Identifier for a stack slot.

data StackMap #

Constructors

StackMap 

Fields

emptyStackMap :: DynFlags -> StackMap #

An empty stack map, with all slots available.

getStackSlotFor :: StackMap -> Unique -> (StackMap, Int) #

If this vreg unique already has a stack assignment then return the slot number, otherwise allocate a new slot, and update the map.

getStackUse :: StackMap -> Int #

Return the number of stack slots that were allocated