ghc-9.15: The GHC API
Safe HaskellNone
LanguageGHC2024

GHC.Stg.Utils

Synopsis

Documentation

stripStgTicksTop :: (StgTickish -> Bool) -> GenStgExpr p -> ([StgTickish], GenStgExpr p) Source #

Strip ticks of a given type from an STG expression.

stripStgTicksTopE :: (StgTickish -> Bool) -> GenStgExpr p -> GenStgExpr p Source #

Strip ticks of a given type from an STG expression returning only the expression.

idArgs :: [StgArg] -> [Id] Source #

allowTopLevelConApp :: Platform -> Bool -> Module -> DataCon -> [StgArg] -> Bool Source #

Do we allow the given top-level (static) ConApp?