ghc-7.2.1: The GHC API

X86.Regs

Synopsis

Documentation

virtualRegSqueeze :: RegClass -> VirtualReg -> FastInt

regSqueeze_class reg Calculuate the maximum number of register colors that could be denied to a node of this class due to having this reg as a neighbour.

data AddrMode

Constructors

AddrBaseIndex EABase EAIndex Displacement 
ImmAddr Imm Int 

spRel

Arguments

:: Int

desired stack offset in words, positive or negative

-> AddrMode 

argRegs :: RegNo -> [Reg]

allMachRegNos :: [RegNo]

The complete set of machine registers.

classOfRealReg :: RealReg -> RegClass

Take the class of a register.

showReg :: RegNo -> String

Get the name of the register with this number.

data EABase

data EAIndex

Constructors

EAIndexNone 
EAIndex Reg Int 

xmm :: RegNo -> Reg

ripRel :: Displacement -> AddrMode

allocatableRegs :: [RealReg]

these are the regs which we cannot assume stay alive over a C call.