HORIZON HASKELLDocslts/ghc-10.0.x2b276322026-10-31Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 2b27632 · 2026-10-31

Moduleghc-10.0.0.20260917GHC2024

GHC.CmmToAsm.Reg.Regs

Synopsis
newtypenewtype Regs

A set of registers, with their respective formats, mostly for use in register liveness analysis. See Note [Register formats in liveness analysis] in GHC.CmmToAsm.Reg.Liveness.

Instances2Eq, Outputable
  • Eq RegsDefined in ghc-10.0.0.20260917 · GHC.CmmToAsm.Reg.Regs
  • Outputable RegsDefined in ghc-10.0.0.20260917 · GHC.CmmToAsm.Reg.Regs

Remove 2nd argument registers from the 1st argument, but only if the format in the second argument is at least as large as the format in the first argument.

valueshrinkingRegs :: Regs -> Regs -> Regs

Computes the set of registers in both arguments whose size is smaller in the second argument than in the first.

valuemapRegs :: (Reg -> Reg) -> Regs -> Regs

Map a function that may change the Unique of the register, which entails going via lists.

See Note [UniqSet invariant] in GHC.Types.Unique.Set.