GHC.Core.LateCC.TopLevelBinds

ghc-9.10.0.20240413: The GHC API

Safe Haskell | None
Language | GHC2021

GHC.Core.LateCC.TopLevelBinds

Synopsis

- topLevelBindsCCMG :: ModGuts -> CoreM ModGuts
- topLevelBindsCC :: (CoreExpr -> Bool) -> CoreBind -> LateCCM s CoreBind

# 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.