ghc-9.2.3: The GHC API
Safe HaskellSafe-Inferred
LanguageHaskell2010

GHC.Core.Unfold.Make

Description

Unfolding creation

Synopsis

Documentation

noUnfolding :: Unfolding Source #

There is no known Unfolding

mkInlineUnfolding :: SimpleOpts -> CoreExpr -> Unfolding Source #

Make an unfolding that may be used unsaturated (ug_unsat_ok = unSaturatedOk) and that is reported as having its manifest arity (the number of outer lambdas applications will resolve before doing any work).

mkInlineUnfoldingWithArity :: Arity -> SimpleOpts -> CoreExpr -> Unfolding Source #

Make an unfolding that will be used once the RHS has been saturated to the given arity.

mkCompulsoryUnfolding :: SimpleOpts -> CoreExpr -> Unfolding Source #

Used for things that absolutely must be unfolded

mkCompulsoryUnfolding' :: CoreExpr -> Unfolding Source #

Same as mkCompulsoryUnfolding but no simple optimiser pass is performed on the unfolding.