ghc-lib-0.20190423: The GHC API, decoupled from GHC versions

Safe HaskellNone
LanguageHaskell2010

StgCmmUtils

Synopsis

Documentation

callerSaves :: Platform -> GlobalReg -> Bool Source #

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

get_GlobalReg_addr :: DynFlags -> GlobalReg -> CmmExpr Source #

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.