HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

Moduleghc-9.10.3GHC2021

GHC.CmmToAsm.Reg.Linear.Base

Put common type definitions here to break recursive module dependencies.

  • 5 types
  • 5 values
  • Packageghc-9.10.3
  • Exports10
  • LanguageGHC2021
  • LicenceBSD-3-Clause
  • SourceBase.hs
datadata BlockAssignment freeRegs
#

Used to store the register assignment on entry to a basic block. We use this to handle join points, where multiple branch instructions target a particular label. We have to insert fixup code to make the register assignments from the different sources match up.

datadata Loc
#

Where a vreg is currently stored A temporary can be marked as living in both a register and memory (InBoth), for example if it was recently loaded from a spill location. This makes it cheap to spill (no save instruction required), but we have to be careful to turn this into InReg if the value in the register is changed.

Constructors

Instances4Eq, Ord, Show, Outputable
  • Eq LocDefined in ghc-9.10.3 · GHC.CmmToAsm.Reg.Linear.Base
  • Ord LocDefined in ghc-9.10.3 · GHC.CmmToAsm.Reg.Linear.Base
  • Show LocDefined in ghc-9.10.3 · GHC.CmmToAsm.Reg.Linear.Base
  • Outputable LocDefined in ghc-9.10.3 · GHC.CmmToAsm.Reg.Linear.Base
datadata SpillReason
#

Reasons why instructions might be inserted by the spiller. Used when generating stats for -ddrop-asm-stats.

Constructors

datadata RA_State freeRegs
#

The register allocator state

Constructors