ghc-9.2.0.20210331: The GHC API
Safe HaskellSafe-Inferred
LanguageHaskell2010

GHC.CmmToAsm.Reg.Linear.SPARC

Description

Free regs map for SPARC

Synopsis

Documentation

noFreeRegs :: FreeRegs Source #

A reg map where no regs are free to be allocated.

initFreeRegs :: Platform -> FreeRegs Source #

The initial set of free regs.

getFreeRegs :: RegClass -> FreeRegs -> [RealReg] Source #

Get all the free registers of this class.

allocateReg :: Platform -> RealReg -> FreeRegs -> FreeRegs Source #

Grab a register.

releaseReg :: Platform -> RealReg -> FreeRegs -> FreeRegs Source #

Release a register from allocation. The register liveness information says that most regs die after a C call, but we still don't want to allocate to some of them.