HORIZON HASKELLDocslts/ghc-10.0.x8174fa42026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8174fa4 · 2026-10-11

Moduleghc-10.0.0.20260917GHC2024

GHC.CmmToAsm.Reg.Linear.JoinToTargets

Handles joining of a jump instruction to its targets.

  • 1 value
valuejoinToTargets
  1. :: (FR freeRegs, Instruction instr)
  2. => BlockMap Regs

    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.