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-10.0.0.20260917GHC2024

GHC.Platform.Reg.Class

  • 2 types
  • 1 value
newtypenewtype RegClass
#

The class of a register. Used in the register allocator. We treat all registers in a class as being interchangeable.

Constructors

Instances5Eq, Ord, Show, Outputable, Uniquable
  • Eq RegClassDefined in ghc-10.0.0.20260917 · GHC.Platform.Reg.Class
  • Ord RegClassDefined in ghc-10.0.0.20260917 · GHC.Platform.Reg.Class
  • Show RegClassDefined in ghc-10.0.0.20260917 · GHC.Platform.Reg.Class
  • Outputable RegClassDefined in ghc-10.0.0.20260917 · GHC.Platform.Reg.Class

    This instance is just used for the graph colouring register allocator. Prefer using either pprRegClass or pprRegClass, which is more informative.

  • Uniquable RegClassDefined in ghc-10.0.0.20260917 · GHC.Platform.Reg.Class
datadata RegArch
#

The register architecture of a given machine.

Constructors

  • Unified

    Floating-point and vector registers are unified (e.g. X86, AArch64).

  • Separate

    Floating-point and vector registers are separate (e.g. RISC-V).

  • NoVectors

    No vector registers.

Instances4Eq, Ord, Show, Outputable
  • Eq RegArchDefined in ghc-10.0.0.20260917 · GHC.Platform.Reg.Class
  • Ord RegArchDefined in ghc-10.0.0.20260917 · GHC.Platform.Reg.Class
  • Show RegArchDefined in ghc-10.0.0.20260917 · GHC.Platform.Reg.Class
  • Outputable RegArchDefined in ghc-10.0.0.20260917 · GHC.Platform.Reg.Class