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

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

Moduleghc-lib-parser-9.14.1.20251220GHC2021

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, Uniquable, Outputable
  • Eq RegDefined in ghc-lib-parser-9.14.1.20251220 · GHC.Platform.Reg
  • Ord RegDefined in ghc-lib-parser-9.14.1.20251220 · GHC.Platform.Reg
  • Show RegDefined in ghc-lib-parser-9.14.1.20251220 · GHC.Platform.Reg
  • Uniquable RegDefined in ghc-lib-parser-9.14.1.20251220 · GHC.Platform.Reg
  • Outputable RegDefined in ghc-lib-parser-9.14.1.20251220 · 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.

datadata VirtualReg
#

Constructors

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