StgCmmForeign

ghc-7.8.3: 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 Source

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

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

saveThreadState :: DynFlags -> CmmAGraph Source

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

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

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

emitSaveThreadState :: FCode () Source

emitLoadThreadState :: FCode () Source

emitCloseNursery :: FCode () Source

emitOpenNursery :: FCode () Source