ghc-7.8.4: The GHC API

Safe Haskell | None
Language | Haskell98

StgCmmForeign

Synopsis

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

# Documentation

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

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

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

saveThreadState :: DynFlags -> CmmAGraph

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

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

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

emitSaveThreadState :: FCode ()

emitLoadThreadState :: FCode ()

emitCloseNursery :: FCode ()

emitOpenNursery :: FCode ()