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

Safe Haskell | Ignore
Language | GHC2021

GHC.Platform.Reg.Class.NoVectors

Description

Register classes for architectures which don't have any vector registers.

Synopsis

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

# Documentation

data RegClass where Source #

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 |

#### Instances

Instances details

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

pprRegClass :: RegClass -> SDoc Source #

allRegClasses :: [RegClass] Source #