ghc-7.0.4: The GHC API

CgHeapery

# Documentation

initHeapUsage :: (VirtualHpOffset -> Code) -> Code Source

getVirtHp :: FCode VirtualHpOffset Source

setVirtHp :: VirtualHpOffset -> Code Source

setRealHp :: VirtualHpOffset -> Code Source

getHpRelOffset :: VirtualHpOffset -> FCode CmmExpr Source

hpRel :: VirtualHpOffset -> VirtualHpOffset -> WordOff Source

funEntryChecks :: ClosureInfo -> CmmStmts -> Code -> Code Source

thunkEntryChecks :: ClosureInfo -> Code -> Code Source

altHeapCheck :: AltType -> Code -> Code Source

unbxTupleHeapCheck :: [(Id, GlobalReg)] -> WordOff -> WordOff -> CmmStmts -> Code -> Code Source

hpChkGen :: CmmExpr -> CmmExpr -> CmmExpr -> Code Source

hpChkNodePointsAssignSp0 :: CmmExpr -> CmmExpr -> Code Source

stkChkGen :: CmmExpr -> CmmExpr -> CmmExpr -> Code Source

stkChkNodePoints :: CmmExpr -> Code Source

layOutDynConstr :: DataCon -> [(CgRep, a)] -> (ClosureInfo, [(a, VirtualHpOffset)])Source

layOutStaticConstr :: DataCon -> [(CgRep, a)] -> (ClosureInfo, [(a, VirtualHpOffset)])Source

mkVirtHeapOffsets :: Bool -> [(CgRep, a)] -> (WordOff, WordOff, [(a, VirtualHpOffset)])Source

mkStaticClosureFields :: ClosureInfo -> CostCentreStack -> Bool -> [CmmLit] -> [CmmLit]Source

mkStaticClosure :: CLabel -> CostCentreStack -> [CmmLit] -> [CmmLit] -> [CmmLit] -> [CmmLit] -> [CmmLit]Source

allocDynClosure :: ClosureInfo -> CmmExpr -> CmmExpr -> [(CmmExpr, VirtualHpOffset)] -> FCode VirtualHpOffset Source

emitSetDynHdr :: CmmExpr -> CmmExpr -> CmmExpr -> Code Source