ghc-8.6.1: The GHC API

Safe HaskellNone
LanguageHaskell2010

StgCmmForeign

Synopsis

Documentation

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

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

saveThreadState :: MonadUnique m => DynFlags -> m CmmAGraph Source #

Produce code to save the current thread state to CurrentTSO

loadThreadState :: MonadUnique m => DynFlags -> m CmmAGraph Source #

Produce code to load the current thread state from CurrentTSO