GHC.Driver.CodeOutput

ghc-9.0.0.20200925: The GHC API

Safe Haskell | None
Language | Haskell2010

GHC.Driver.CodeOutput

Synopsis

- codeOutput :: DynFlags -> Module -> FilePath -> ModLocation -> ForeignStubs -> [(ForeignSrcLang, FilePath)] -> [UnitId] -> Stream IO RawCmmGroup a -> IO (FilePath, (Bool, Maybe FilePath), [(ForeignSrcLang, FilePath)], a)
- outputForeignStubs :: DynFlags -> Module -> ModLocation -> ForeignStubs -> IO (Bool, Maybe FilePath)
- profilingInitCode :: Module -> CollectedCCs -> SDoc

# Documentation

codeOutput Source #

Arguments

:: DynFlags |
-> Module |
-> FilePath |
-> ModLocation |
-> ForeignStubs |
-> [(ForeignSrcLang, FilePath)] | additional files to be compiled with the C compiler
-> [UnitId] |
-> Stream IO RawCmmGroup a |
-> IO (FilePath, (Bool, Maybe FilePath), [(ForeignSrcLang, FilePath)], a) |

outputForeignStubs :: DynFlags -> Module -> ModLocation -> ForeignStubs -> IO (Bool, Maybe FilePath) Source #

profilingInitCode :: Module -> CollectedCCs -> SDoc Source #

Generate code to initialise cost centres