ghc-9.13: The GHC API
Safe HaskellNone
LanguageGHC2021

GHC.Driver.CodeOutput

Synopsis

Documentation

codeOutput Source #

Arguments

:: Logger 
-> TmpFs 
-> LlvmConfigCache 
-> DynFlags 
-> UnitState 
-> Module 
-> FilePath 
-> ModLocation 
-> (a -> ForeignStubs) 
-> [(ForeignSrcLang, FilePath)]

additional files to be compiled with the C compiler

-> Set UnitId

Dependencies

-> DUniqSupply

The deterministic unique supply to run the CgStream. See Note [Deterministic Uniques in the CG]

-> CgStream RawCmmGroup a

Compiled C--

-> IO (FilePath, (Bool, Maybe FilePath), [(ForeignSrcLang, FilePath)], a) 

profilingInitCode :: Platform -> Module -> CollectedCCs -> CStub Source #

Generate code to initialise cost centres

ipInitCode :: Bool -> Platform -> Module -> CStub Source #

Generate code to initialise info pointer origin See Note [Mapping Info Tables to Source Positions]