ghc-8.10.1: The GHC API
Safe HaskellNone
LanguageHaskell2010

GHC.StgToCmm.Utils

Synopsis

Documentation

callerSaves :: Platform -> GlobalReg -> Bool #

Returns True if this global register is stored in a caller-saves machine register.

get_GlobalReg_addr :: DynFlags -> GlobalReg -> CmmExpr #

We map STG registers onto appropriate CmmExprs. Either they map to real machine registers or stored as offsets from BaseReg. Given a GlobalReg, get_GlobalReg_addr always produces the register table address for it.

Update remembered set operations

emitUpdRemSetPush #

Arguments

:: CmmExpr

value of pointer which was overwritten

-> FCode () 

Emit code to add an entry to a now-overwritten pointer to the update remembered set.

emitUpdRemSetPushThunk #

Arguments

:: CmmExpr

the thunk

-> FCode ()