Safe Haskell | None |
---|---|
Language | Haskell98 |
Free regs map for SPARC
- data FreeRegs = FreeRegs !Word32 !Word32 !Word32
- noFreeRegs :: FreeRegs
- initFreeRegs :: Platform -> FreeRegs
- getFreeRegs :: RegClass -> FreeRegs -> [RealReg]
- allocateReg :: Platform -> RealReg -> FreeRegs -> FreeRegs
- releaseReg :: Platform -> RealReg -> FreeRegs -> FreeRegs
- bitMask :: Int -> Word32
- showFreeRegs :: FreeRegs -> String
Documentation
A reg map where no regs are free to be allocated.
initFreeRegs :: Platform -> FreeRegsSource
The initial set of free regs.
getFreeRegs :: RegClass -> FreeRegs -> [RealReg]Source
Get all the free registers of this class.
releaseReg :: Platform -> 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.
showFreeRegs :: FreeRegs -> StringSource