ghc-7.6.3: The GHC API

Safe Haskell | None

StgCmmHeap

# Documentation

getVirtHp :: FCode VirtualHpOffset

setVirtHp :: VirtualHpOffset -> FCode ()

setRealHp :: VirtualHpOffset -> FCode ()

getHpRelOffset :: VirtualHpOffset -> FCode CmmExpr

hpRel :: VirtualHpOffset -> VirtualHpOffset -> WordOff

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

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

altHeapCheckReturnsTo :: [LocalReg] -> Label -> FCode a -> FCode a

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

mkVirtConstrOffsets :: [(PrimRep, a)] -> (WordOff, WordOff, [(NonVoid a, VirtualHpOffset)])

mkStaticClosureFields :: CmmInfoTable -> CostCentreStack -> CafInfo -> [CmmLit] -> [CmmLit]

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

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

allocDynClosureCmm :: CmmInfoTable -> LambdaFormInfo -> CmmExpr -> CmmExpr -> [(CmmExpr, VirtualHpOffset)] -> FCode (LocalReg, CmmAGraph)

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