ghc-9.10.0.20240426: The GHC API
Safe HaskellNone
LanguageGHC2021

GHC.StgToCmm.Heap

Synopsis

Documentation

entryHeapCheck' :: Bool -> CmmExpr -> Int -> [LocalReg] -> FCode () -> FCode () Source #

lower-level version for GHC.Cmm.Parser

mkStaticClosureFields Source #

Arguments

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

Payload

-> [CmmLit]

Extra non-pointers that go to the end of the closure. See Note [unpack_cstring closures] in StgStdThunks.cmm.

-> [CmmLit] 

Make a static closure, adding on any extra padding needed for CAFs, and adding a static link field if necessary.

allocHeapClosure Source #

Arguments

:: SMRep

representation of the object

-> CmmExpr

info pointer

-> CmmExpr

cost centre

-> [(CmmExpr, ByteOff)]

payload

-> FCode CmmExpr

returns the address of the object

Low-level heap object allocation.