ghc-9.10.1: The GHC API
Safe HaskellNone
LanguageGHC2021

GHC.Core.LateCC.Types

Description

Types related to late cost center insertion

Synopsis

Documentation

data LateCCConfig Source #

Late cost center insertion configuration.

Specifies whether cost centers are added to overloaded function call sites and/or top-level bindings, and which top-level bindings they are added to. Also holds the cost center insertion environment.

data LateCCBindSpec Source #

The types of top-level bindings we support adding cost centers to.

data LateCCEnv Source #

Late cost centre insertion environment

Constructors

LateCCEnv 

Fields

data LateCCState s Source #

Late cost centre insertion state, indexed by some extra state type that an insertion method may require.

Constructors

LateCCState 

Fields

initLateCCState :: s -> LateCCState s Source #

The empty late cost centre insertion state

type LateCCM s = ReaderT LateCCEnv (State (LateCCState s)) Source #

Late cost centre insertion monad