ghc-9.8.3: The GHC API
Safe HaskellNone
LanguageHaskell2010

GHC.CmmToAsm.Reg.Graph.X86

Description

A description of the register set of the X86.

This isn't used directly in GHC proper.

See RegArchBase.hs for the reference. See MachRegs.hs for the actual trivColorable function used in GHC.

Synopsis

Documentation

classOfReg :: Reg -> RegClass Source #

Determine the class of a register

regsOfClass :: RegClass -> UniqSet Reg Source #

Determine all the regs that make up a certain class.

regName :: Reg -> Maybe String Source #

Determine the common name of a reg returns Nothing if this reg is not part of the machine.

regAlias :: Reg -> UniqSet Reg Source #

Which regs alias what other regs.

worst :: Int -> RegClass -> RegClass -> Int Source #

Optimised versions of RegColorBase.{worst, squeese} specific to x86