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.Platform.Reg

An architecture independent description of a register. This needs to stay architecture independent because it is used by NCGMonad and the register allocators, which are shared by all architectures.

  • 4 types
  • 13 values
  • Packageghc-9.10.3
  • Exports17
  • LanguageGHC2021
  • LicenceBSD-3-Clause
  • SourceReg.hs
typetype RegNo = Int
#

An identifier for a primitive real machine register.

datadata Reg
#

A register, either virtual or real

Instances5Eq, Ord, Show, Outputable, Uniquable
  • Eq RegDefined in ghc-9.10.3 · GHC.Platform.Reg
  • Ord RegDefined in ghc-9.10.3 · GHC.Platform.Reg
  • Show RegDefined in ghc-9.10.3 · GHC.Platform.Reg
  • Outputable RegDefined in ghc-9.10.3 · GHC.Platform.Reg

    Print a reg in a generic manner If you want the architecture specific names, then use the pprReg function from the appropriate Ppr module.

  • Uniquable RegDefined in ghc-9.10.3 · GHC.Platform.Reg
newtypenewtype RealReg
#

RealRegs are machine regs which are available for allocation, in the usual way. We know what class they are, because that's part of the processor's architecture.

Constructors

Instances5Eq, Ord, Show, Outputable, Uniquable