HORIZON HASKELLDocslts/ghc-10.0.xfc4e5982026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 10.0.0.20260917 · lts/ghc-10.0.x · fc4e598 · 2026-10-11

Moduleghc-10.0.0.20260917GHC2024

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
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-10.0.0.20260917 · GHC.Platform.Reg
  • Ord RegDefined in ghc-10.0.0.20260917 · GHC.Platform.Reg
  • Show RegDefined in ghc-10.0.0.20260917 · GHC.Platform.Reg
  • Outputable RegDefined in ghc-10.0.0.20260917 · 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-10.0.0.20260917 · GHC.Platform.Reg
datadata VirtualReg
#

Constructors

Instances5Eq, Ord, Show, Outputable, Uniquable
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
  • Eq RealRegDefined in ghc-10.0.0.20260917 · GHC.Platform.Reg
  • Ord RealRegDefined in ghc-10.0.0.20260917 · GHC.Platform.Reg
  • Show RealRegDefined in ghc-10.0.0.20260917 · GHC.Platform.Reg
  • Outputable RealRegDefined in ghc-10.0.0.20260917 · GHC.Platform.Reg
  • Uniquable RealRegDefined in ghc-10.0.0.20260917 · GHC.Platform.Reg