HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

Moduleghc-9.10.3GHC2021

GHC.CmmToAsm.Reg.Linear.JoinToTargets

Handles joining of a jump instruction to its targets.

  • 1 value
  • Packageghc-9.10.3
  • Exports1
  • LanguageGHC2021
  • LicenceBSD-3-Clause
  • SourceJoinToTargets.hs
valuejoinToTargets
  1. :: (FR freeRegs, Instruction instr)
  2. => BlockMap RegSet

    maps the unique of the blockid to the set of vregs that are known to be live on the entry to each block.

  3. -> BlockId

    id of the current block

  4. -> instr

    branch instr on the end of the source block.

  5. -> RegM freeRegs ([NatBasicBlock instr], instr)
#

For a jump instruction at the end of a block, generate fixup code so its vregs are in the correct regs for its destination.