Identifier for a stack slot.
Moduleghc-10.0.0.20260917GHC2024
GHC.CmmToAsm.Reg.Linear.StackMap
The assignment of virtual registers to stack slots
- 2 types
- 3 values
- Packageghc-10.0.0.20260917
- Exports5
- LanguageGHC2024
- LicenceBSD-3-Clause
- SourceStackMap.hs
Constructors
StackMapstackMapNextFreeSlot :: !IntThe slots that are still available to be allocated.
stackMapAssignment :: UniqFM Unique (StackSlot, Int)Assignment of vregs to stack slots.
We record not just the slot, but also how many stack slots the vreg takes up, in order to avoid re-using a stack slot for a register that has grown but already had a stack slot (#26668).
An empty stack map, with all slots available.
If this vreg unique already has a stack assignment then return the slot number, otherwise allocate a new slot, and update the map.
Return the number of stack slots that were allocated