Moduleghc-lib-parser-9.14.1.20251220GHC2021
GHC.Cmm.Utils
Synopsis
- value primRepCmmType
- value slotCmmType
- value typeCmmType
- value typeForeignHint
- value primRepForeignHint
- value zeroCLit
- value mkIntCLit
- value mkWordCLit
- value packHalfWordsCLit
- value mkByteStringCLit
- value mkFileEmbedLit
- value mkDataLits
- value mkRODataLits
- value mkStgWordCLit
- value mkIntExpr
- value zeroExpr
- value mkLblExpr
- value cmmRegOff
- value cmmOffset
- value cmmLabelOff
- value cmmOffsetLit
- value cmmOffsetExpr
- value cmmRegOffB
- value cmmOffsetB
- value cmmLabelOffB
- value cmmOffsetLitB
- value cmmOffsetExprB
- value cmmRegOffW
- value cmmOffsetW
- value cmmLabelOffW
- value cmmOffsetLitW
- value cmmOffsetExprW
- value cmmIndex
- value cmmIndexExpr
- value cmmLoadIndex
- value cmmLoadIndexW
- value cmmLoadBWord
- value cmmLoadGCWord
- value cmmNegate
- value cmmULtWord
- value cmmUGeWord
- value cmmUGtWord
- value cmmUShrWord
- value cmmSLtWord
- value cmmNeWord
- value cmmEqWord
- value cmmOrWord
- value cmmAndWord
- value cmmSubWord
- value cmmAddWord
- value cmmMulWord
- value cmmQuotWord
- value cmmToWord
- value cmmMkAssign
- value baseExpr
- value spExpr
- value hpExpr
- value spLimExpr
- value hpLimExpr
- value currentTSOExpr
- value currentNurseryExpr
- value cccsExpr
- value cmmTagMask
- value cmmPointerMask
- value cmmUntag
- value cmmIsTagged
- value cmmIsNotTagged
- value cmmConstrTag1
- value mAX_PTR_TAG
- value tAG_MASK
- value regsOverlap
- value globalRegsOverlap
- value regUsedIn
- value globalRegUsedIn
- value mkLiveness
- value modifyGraph
- value ofBlockMap
- value toBlockMap
- value ofBlockList
- value toBlockList
- value toBlockListEntryFirst
- value toBlockListEntryFirstFalseFallthrough
- value foldlGraphBlocks
- value mapGraphNodes
- value mapGraphNodes1
- value blockTicks
- Packageghc-lib-parser-9.14.1.20251220
- Exports86
- LanguageGHC2021
- LicenceBSD-3-Clause
- SourceUtils.hs
We make a top-level decl for the string, and return a label pointing to it
We make a top-level decl for the embedded binary file, and return a label pointing to it
Build a data-segment data block
Useful for creating an index into an array, with a statically known offset. The type is the element type; used for making the multiplier
Useful for creating an index into an array, with an unknown offset.
Load a naturally-aligned non-pointer word.
Load a naturally-aligned GC pointer.
Returns True if the two STG registers overlap on the specified platform, in the sense that writing to one will clobber the other. This includes the case that the two registers are the same STG register. See Note [Overlapping global registers] for details.
Returns True if the STG register is used by the expression, in the sense that a store to the register might affect the value of the expression.
We must check for overlapping registers and not just equal registers here, otherwise CmmSink may incorrectly reorder assignments that conflict due to overlap. See #10521 and Note [Overlapping global registers].
Operations that probably don't belong here
like toBlockList, but the entry block always comes first
Like toBlockListEntryFirst, but we strive to ensure that we order blocks so that the false case of a conditional jumps to the next block in the output list of blocks. This matches the way OldCmm blocks were output since in OldCmm the false case was a fallthrough, whereas in Cmm conditional branches have both true and false successors. Block ordering can make a big difference in performance in the LLVM backend. Note that we rely crucially on the order of successors returned for CmmCondBranch by the NonLocal instance for CmmNode defined in GHC.Cmm.Node. -GBM
Ticks
Extract all tick annotations from the given block