StgCmmForeign

ghc-7.6.3: The GHC API

Safe Haskell | None

StgCmmForeign

Synopsis

- cgForeignCall :: ForeignCall -> [StgArg] -> Type -> FCode ()
- loadThreadState :: LocalReg -> LocalReg -> CmmAGraph
- saveThreadState :: CmmAGraph
- emitPrimCall :: [CmmFormal] -> CallishMachOp -> [CmmActual] -> FCode ()
- emitCCall :: [(CmmFormal, ForeignHint)] -> CmmExpr -> [(CmmActual, ForeignHint)] -> FCode ()
- emitSaveThreadState :: BlockId -> FCode ()
- emitLoadThreadState :: LocalReg -> LocalReg -> FCode ()
- emitOpenNursery :: FCode ()

# Documentation

cgForeignCall :: ForeignCall -> [StgArg] -> Type -> FCode ()

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

loadThreadState :: LocalReg -> LocalReg -> CmmAGraph

saveThreadState :: CmmAGraph

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

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

emitSaveThreadState :: BlockId -> FCode ()

emitLoadThreadState :: LocalReg -> LocalReg -> FCode ()

emitOpenNursery :: FCode ()