StgCmmForeign

ghc-8.0.1: The GHC API

Safe Haskell | None
Language | Haskell2010

StgCmmForeign

Synopsis

- cgForeignCall :: ForeignCall -> [StgArg] -> Type -> FCode ReturnKind
- emitPrimCall :: [CmmFormal] -> CallishMachOp -> [CmmActual] -> FCode ()
- emitCCall :: [(CmmFormal, ForeignHint)] -> CmmExpr -> [(CmmActual, ForeignHint)] -> FCode ()
- emitForeignCall :: Safety -> [CmmFormal] -> ForeignTarget -> [CmmActual] -> FCode ReturnKind
- emitSaveThreadState :: FCode ()
- saveThreadState :: DynFlags -> LocalReg -> LocalReg -> CmmAGraph
- emitLoadThreadState :: FCode ()
- loadThreadState :: DynFlags -> LocalReg -> LocalReg -> LocalReg -> LocalReg -> LocalReg -> CmmAGraph
- emitOpenNursery :: FCode ()
- emitCloseNursery :: FCode ()

# Documentation

cgForeignCall :: ForeignCall -> [StgArg] -> Type -> FCode ReturnKind #

emit code for a foreign call, and return the results to the sequel.

emitPrimCall :: [CmmFormal] -> CallishMachOp -> [CmmActual] -> FCode () #

emitCCall :: [(CmmFormal, ForeignHint)] -> CmmExpr -> [(CmmActual, ForeignHint)] -> FCode () #

emitForeignCall :: Safety -> [CmmFormal] -> ForeignTarget -> [CmmActual] -> FCode ReturnKind #

emitSaveThreadState :: FCode () #

saveThreadState :: DynFlags -> LocalReg -> LocalReg -> CmmAGraph #

emitLoadThreadState :: FCode () #

loadThreadState :: DynFlags -> LocalReg -> LocalReg -> LocalReg -> LocalReg -> LocalReg -> CmmAGraph #

emitOpenNursery :: FCode () #

emitCloseNursery :: FCode () #