ghc-lib-9.10.1.20240511: The GHC API, decoupled from GHC versions
Safe HaskellIgnore
LanguageGHC2021

GHC.Core.LateCC

Description

Adds cost-centers after the core pipline has run.

Synopsis

Inserting cost centres

addLateCostCenters Source #

Arguments

:: Logger

Logger

-> LateCCConfig

Late cost center configuration

-> CoreProgram

The program

-> IO (CoreProgram, LateCCState (Maybe SrcSpan)) 

Late cost center insertion logic used by the driver