HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

Moduleghc-9.10.3GHC2021

GHC.Builtin.PrimOps

  • 5 types
  • 23 values
  • Packageghc-9.10.3
  • Exports28
  • LanguageGHC2021
  • LicenceBSD-3-Clause
  • SourcePrimOps.hs
datadata PrimOp
#

Constructors

Instances3Eq, Ord, Outputable
  • Eq PrimOpDefined in ghc-9.10.3 · GHC.Builtin.PrimOps
  • Ord PrimOpDefined in ghc-9.10.3 · GHC.Builtin.PrimOps
  • Outputable PrimOpDefined in ghc-9.10.3 · GHC.Builtin.PrimOps
valueprimOpIsDiv :: PrimOp -> Bool
#

True of dyadic operators that can fail only if the second arg is zero!

This function probably belongs in an automagically generated file.. but it's such a special case I thought I'd leave it here for now.

Indicate if a primop is really inline: that is, it isn't out-of-line and it isn't SeqOp/DataToTagOp which are two primops that evaluate their argument hence induce threadstackheap changes.