GHC.Platform.Reg.Class.Separate

ghc-lib-parser-9.14.1.20251220: The GHC API, decoupled from GHC versions

Safe Haskell | Ignore
Language | GHC2021

GHC.Platform.Reg.Class.Separate

Description

Register classes for architectures which have registers for scalar floating-point values that are separate from all vector registers.

Synopsis

- data RegClass where
  - pattern RcInteger :: RegClass
  - pattern RcFloat :: RegClass
  - pattern RcVector :: RegClass
- pprRegClass :: RegClass -> SDoc
- allRegClasses :: [RegClass]

# Documentation

data RegClass where #

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

Bundled Patterns

pattern RcInteger :: RegClass |
pattern RcFloat :: RegClass |
pattern RcVector :: RegClass |

#### Instances

Instances details

Show RegClass # |
Instance details Defined in GHC.Platform.Reg.Class Methods showsPrec :: Int -> RegClass -> ShowS # show :: RegClass -> String # showList :: [RegClass] -> ShowS #
Uniquable RegClass # |
Instance details Defined in GHC.Platform.Reg.Class Methods getUnique :: RegClass -> Unique #
Outputable RegClass # | 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 #
Eq RegClass # |
Instance details Defined in GHC.Platform.Reg.Class Methods (==) :: RegClass -> RegClass -> Bool # (/=) :: RegClass -> RegClass -> Bool #
Ord RegClass # |
Instance details Defined in GHC.Platform.Reg.Class Methods compare :: RegClass -> RegClass -> Ordering # (<) :: RegClass -> RegClass -> Bool # (<=) :: RegClass -> RegClass -> Bool # (>) :: RegClass -> RegClass -> Bool # (>=) :: RegClass -> RegClass -> Bool # max :: RegClass -> RegClass -> RegClass # min :: RegClass -> RegClass -> RegClass #

pprRegClass :: RegClass -> SDoc #

allRegClasses :: [RegClass] #