Emit a data-segment data block
Moduleghc-10.0.0.20260917GHC2024
GHC.StgToCmm.Utils
Contents
Synopsis
- value emitDataLits
- value emitRODataLits
- value emitDataCon
- value emitRtsCall
- value emitRtsCallWithResult
- value emitRtsCallGen
- value emitBarf
- value assignTemp
- value newTemp
- value newUnboxedTupleRegs
- value emitMultiAssign
- value emitCmmLitSwitch
- value emitSwitch
- value tagToClosure
- value mkTaggedObjectLoad
- value callerSaves
- value callerSaveVolatileRegs
- value get_GlobalReg_addr
- value callerSaveGlobalReg
- value callerRestoreGlobalReg
- value cmmAndWord
- value cmmOrWord
- value cmmNegate
- value cmmEqWord
- value cmmNeWord
- value cmmUGtWord
- value cmmSubWord
- value cmmMulWord
- value cmmAddWord
- value cmmUShrWord
- value cmmOffsetExprW
- value cmmOffsetExprB
- value cmmRegOffW
- value cmmRegOffB
- value cmmLabelOffW
- value cmmLabelOffB
- value cmmOffsetW
- value cmmOffsetB
- value cmmOffsetLitW
- value cmmOffsetLitB
- value cmmLoadIndexW
- value cmmConstrTag1
- value cmmUntag
- value cmmIsTagged
- value addToMem
- value addToMemE
- value addToMemLblE
- value addToMemLbl
- value emitAtomicRead
- value emitAtomicWrite
- value whenUpdRemSetEnabled
- value emitUpdRemSetPush
- value emitUpdRemSetPushThunk
- value convertInfoProvMap
- value cmmInfoTableToInfoProvEnt
- data IPEStats
- value closureIpeStats
- value fallbackIpeStats
- value skippedIpeStats
- Packageghc-10.0.0.20260917
- Exports59
- LanguageGHC2024
- LicenceBSD-3-Clause
- SourceUtils.hs
Emit a read-only data block
Returns True if this global register is stored in a caller-saves machine register.
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.
addToMem rep ptr n adds n to the integer pointed-to by ptr.
addToMemE rep ptr n adds n to the integer pointed-to by ptr.
Update remembered set operations
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.
A bare bones InfoProvEnt for things which don't have a good source location
Constructors
IPEStatsipe_total :: !Intipe_closure_types :: !IntMap Intipe_fallback :: !Intipe_skipped :: !Int