ghc-9.12: The GHC API
Safe HaskellNone
LanguageGHC2021

GHC.Platform.Reg.Class

Synopsis

Documentation

newtype RegClass Source #

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

Constructors

RegClass Int 

Instances

Instances details
Uniquable RegClass Source # 
Instance details

Defined in GHC.Platform.Reg.Class

Outputable RegClass Source #

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

Instance details

Defined in GHC.Platform.Reg.Class

Methods

ppr :: RegClass -> SDoc Source #

Show RegClass Source # 
Instance details

Defined in GHC.Platform.Reg.Class

Eq RegClass Source # 
Instance details

Defined in GHC.Platform.Reg.Class

Ord RegClass Source # 
Instance details

Defined in GHC.Platform.Reg.Class

data RegArch Source #

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.

Instances

Instances details
Outputable RegArch Source # 
Instance details

Defined in GHC.Platform.Reg.Class

Methods

ppr :: RegArch -> SDoc Source #

Show RegArch Source # 
Instance details

Defined in GHC.Platform.Reg.Class

Eq RegArch Source # 
Instance details

Defined in GHC.Platform.Reg.Class

Methods

(==) :: RegArch -> RegArch -> Bool #

(/=) :: RegArch -> RegArch -> Bool #

Ord RegArch Source # 
Instance details

Defined in GHC.Platform.Reg.Class

registerArch :: Arch -> RegArch Source #

What is the register architecture of the given architecture?