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

GHC.Stg.Syntax

Synopsis

Documentation

data StgArg #

Constructors

StgVarArg Id 
StgLitArg Literal 

Instances

Instances details
Outputable StgArg # 
Instance details

Defined in GHC.Stg.Syntax

Methods

ppr :: StgArg -> SDoc #

pprPrec :: Rational -> StgArg -> SDoc #

data GenStgTopBinding pass #

A top-level binding.

data GenStgBinding pass #

Constructors

StgNonRec (BinderP pass) (GenStgRhs pass) 
StgRec [(BinderP pass, GenStgRhs pass)] 

data GenStgRhs pass #

Constructors

StgRhsClosure 

Fields

StgRhsCon CostCentreStack DataCon [StgArg] 

type GenStgAlt pass = (AltCon, [BinderP pass], GenStgExpr pass) #

data AltType #

Instances

Instances details
Outputable AltType # 
Instance details

Defined in GHC.Stg.Syntax

Methods

ppr :: AltType -> SDoc #

pprPrec :: Rational -> AltType -> SDoc #

data StgPass #

Used as a data type index for the stgSyn AST

Constructors

Vanilla 
LiftLams 
CodeGen 

type family BinderP (pass :: StgPass) #

Instances

Instances details
type BinderP 'CodeGen # 
Instance details

Defined in GHC.Stg.Syntax

type BinderP 'LiftLams # 
Instance details

Defined in GHC.Stg.Lift.Analysis

type BinderP 'Vanilla # 
Instance details

Defined in GHC.Stg.Syntax

type family XRhsClosure (pass :: StgPass) #

Instances

Instances details
type XRhsClosure 'CodeGen #

Code gen needs to track non-global free vars

Instance details

Defined in GHC.Stg.Syntax

type XRhsClosure 'LiftLams # 
Instance details

Defined in GHC.Stg.Lift.Analysis

type XRhsClosure 'Vanilla # 
Instance details

Defined in GHC.Stg.Syntax

type family XLet (pass :: StgPass) #

Instances

Instances details
type XLet 'CodeGen # 
Instance details

Defined in GHC.Stg.Syntax

type XLet 'LiftLams # 
Instance details

Defined in GHC.Stg.Lift.Analysis

type XLet 'Vanilla # 
Instance details

Defined in GHC.Stg.Syntax

type family XLetNoEscape (pass :: StgPass) #

Instances

Instances details
type XLetNoEscape 'CodeGen # 
Instance details

Defined in GHC.Stg.Syntax

type XLetNoEscape 'LiftLams # 
Instance details

Defined in GHC.Stg.Lift.Analysis

type XLetNoEscape 'Vanilla # 
Instance details

Defined in GHC.Stg.Syntax

data NoExtFieldSilent #

Like NoExtField, but with an Outputable instance that returns empty.

Instances

Instances details
Data NoExtFieldSilent # 
Instance details

Defined in GHC.Stg.Syntax

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> NoExtFieldSilent -> c NoExtFieldSilent Source #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c NoExtFieldSilent Source #

toConstr :: NoExtFieldSilent -> Constr Source #

dataTypeOf :: NoExtFieldSilent -> DataType Source #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c NoExtFieldSilent) Source #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c NoExtFieldSilent) Source #

gmapT :: (forall b. Data b => b -> b) -> NoExtFieldSilent -> NoExtFieldSilent Source #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> NoExtFieldSilent -> r Source #

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> NoExtFieldSilent -> r Source #

gmapQ :: (forall d. Data d => d -> u) -> NoExtFieldSilent -> [u] Source #

gmapQi :: Int -> (forall d. Data d => d -> u) -> NoExtFieldSilent -> u Source #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> NoExtFieldSilent -> m NoExtFieldSilent Source #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> NoExtFieldSilent -> m NoExtFieldSilent Source #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> NoExtFieldSilent -> m NoExtFieldSilent Source #

Outputable NoExtFieldSilent # 
Instance details

Defined in GHC.Stg.Syntax

Eq NoExtFieldSilent # 
Instance details

Defined in GHC.Stg.Syntax

Ord NoExtFieldSilent # 
Instance details

Defined in GHC.Stg.Syntax

noExtFieldSilent :: NoExtFieldSilent #

Used when constructing a term with an unused extension point that should not appear in pretty-printed output at all.

data UpdateFlag #

Instances

Instances details
Outputable UpdateFlag # 
Instance details

Defined in GHC.Stg.Syntax

isDllConApp :: DynFlags -> Module -> DataCon -> [StgArg] -> Bool #

Does this constructor application refer to anything in a different *Windows* DLL? If so, we can't allocate it statically

stgArgType :: StgArg -> Type #

Type of an StgArg

Very half baked because we have lost the type arguments.

stripStgTicksTop :: (Tickish Id -> Bool) -> GenStgExpr p -> ([Tickish Id], GenStgExpr p) #

Strip ticks of a given type from an STG expression.

stripStgTicksTopE :: (Tickish Id -> Bool) -> GenStgExpr p -> GenStgExpr p #

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

stgCaseBndrInScope #

Arguments

:: AltType 
-> Bool

unarised?

-> Bool 

Given an alt type and whether the program is unarised, return whether the case binder is in scope.

Case binders of unboxed tuple or unboxed sum type always dead after the unariser has run. See Note [Post-unarisation invariants].

data StgPprOpts #

STG pretty-printing options

Constructors

StgPprOpts 

Fields

initStgPprOpts :: DynFlags -> StgPprOpts #

Initialize STG pretty-printing options from DynFlags

panicStgPprOpts :: StgPprOpts #

STG pretty-printing options used for panic messages