ghc-7.0.3: The GHC API

StgCmmHeap

# Documentation

getVirtHp :: FCode VirtualHpOffset Source

setVirtHp :: VirtualHpOffset -> FCode ()Source

setRealHp :: VirtualHpOffset -> FCode ()Source

getHpRelOffset :: VirtualHpOffset -> FCode CmmExpr Source

hpRel :: VirtualHpOffset -> VirtualHpOffset -> WordOff Source

entryHeapCheck :: Maybe LocalReg -> Int -> [LocalReg] -> FCode () -> FCode ()Source

altHeapCheck :: [LocalReg] -> FCode a -> FCode aSource

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

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

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

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

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

allocDynClosure :: ClosureInfo -> CmmExpr -> CmmExpr -> [(NonVoid StgArg, VirtualHpOffset)] -> FCode (LocalReg, CmmAGraph)Source

emitSetDynHdr :: CmmExpr -> CmmExpr -> CmmExpr -> FCode ()Source