GHC.Core.LateCC

ghc-9.10.0.20240413: The GHC API

Safe Haskell | None
Language | GHC2021

GHC.Core.LateCC

Contents

- Inserting cost centres

Description

Adds cost-centers after the core pipline has run.

Synopsis

- addLateCostCenters :: Logger -> LateCCConfig -> CoreProgram -> IO (CoreProgram, LateCCState (Maybe SrcSpan))

# 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