ghc-7.6.3: The GHC API

Safe HaskellNone



Free regs map for SPARC



noFreeRegs :: FreeRegsSource

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

initFreeRegs :: FreeRegsSource

The initial set of free regs.

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

Get all the free registers of this class.

allocateReg :: RealReg -> FreeRegs -> FreeRegsSource

Grab a register.

releaseReg :: RealReg -> FreeRegs -> FreeRegsSource

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.