ghc-9.12.0.20241128: The GHC API
Safe HaskellNone
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