HORIZON HASKELLDocslts/ghc-10.0.x77a86622026-10-31Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 77a8662 · 2026-10-31

Moduleghc-10.0.0.20260917GHC2024

GHC.Core.LateCC.Utils

Contents
  1. Inserting cost centres
  2. Helpers for defining insertion methods
Synopsis

Inserting cost centres

Helpers for defining insertion methods

valueinsertCC
  1. :: FastString

    Name of the cost centre to insert

  2. -> SrcSpan

    Source location to associate with the cost centre

  3. -> CoreExpr

    Expression to wrap in the cost centre

  4. -> LateCCM s CoreExpr

Insert a cost centre with the specified name and source span on the given expression. The inserted cost centre will be appropriately tracked in the late cost centre state.