HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

Moduleghc-9.10.3GHC2021

GHC.StgToCmm.Utils

  • 1 type
  • 58 values
  • Packageghc-9.10.3
  • Exports59
  • LanguageGHC2021
  • LicenceBSD-3-Clause
  • SourceUtils.hs

We map STG registers onto appropriate CmmExprs. Either they map to real machine registers or stored as offsets from BaseReg. Given a GlobalReg, get_GlobalReg_addr always produces the register table address for it.

Update remembered set operations

9 declarations
valueemitUpdRemSetPush
  1. :: CmmExpr

    value of pointer which was overwritten

  2. -> FCode ()
#

Emit code to add an entry to a now-overwritten pointer to the update remembered set.

Convert source information collected about identifiers in GHC.STG.Debug to entries suitable for placing into the info table provenance table.

The initial stats given to this function will (or should) only contain stats for stack info tables skipped during generateCgIPEStub. As the fold progresses, counts of tables per closure type will be accumulated.