ghc-9.10.1: The GHC API
Safe HaskellNone
LanguageGHC2021

GHC.Core.LateCC.TopLevelBinds

Synopsis

Documentation

topLevelBindsCCMG :: ModGuts -> CoreM ModGuts Source #

Add late cost centres directly to the ModGuts. This is used inside the core pipeline with the -fprof-late-inline flag. It should not be used after tidy, since it does not manually track inserted cost centers. See Note [Collecting late cost centres].

topLevelBindsCC :: (CoreExpr -> Bool) -> CoreBind -> LateCCM s CoreBind Source #

Insert cost centres on top-level bindings in the module, depending on whether or not they satisfy the given predicate.