ghc-8.10.0.20191123: The GHC API
Safe HaskellNone
LanguageHaskell2010

GHC.StgToCmm.Foreign

Synopsis

Documentation

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

Emit code for a foreign call, and return the results to the sequel. Precondition: the length of the arguments list is the same as the arity of the foreign function.

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