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

GHC.Types.Cpr

Description

Types for the Constructed Product Result lattice. GHC.Core.Opt.CprAnal and GHC.Core.Opt.WorkWrap.Utils are its primary customers via idCprInfo.

Synopsis

Documentation

data CprResult #

The constructed product result lattice.

                   NoCPR
                     |
                ConCPR ConTag
                     |
                   BotCPR

Instances

Instances details
Show CprResult # 
Instance details

Defined in GHC.Types.Cpr

Binary CprResult # 
Instance details

Defined in GHC.Types.Cpr

Outputable CprResult # 
Instance details

Defined in GHC.Types.Cpr

Eq CprResult # 
Instance details

Defined in GHC.Types.Cpr

data CprType #

The abstract domain \(A_t\) from the original 'CPR for Haskell' paper.

Constructors

CprType 

Fields

Instances

Instances details
Binary CprType # 
Instance details

Defined in GHC.Types.Cpr

Outputable CprType # 
Instance details

Defined in GHC.Types.Cpr

Methods

ppr :: CprType -> SDoc #

pprPrec :: Rational -> CprType -> SDoc #

Eq CprType # 
Instance details

Defined in GHC.Types.Cpr

Methods

(==) :: CprType -> CprType -> Bool #

(/=) :: CprType -> CprType -> Bool #

newtype CprSig #

The arity of the wrapped CprType is the arity at which it is safe to unleash. See Note [Understanding DmdType and StrictSig] in GHC.Types.Demand

Constructors

CprSig 

Fields

Instances

Instances details
Binary CprSig # 
Instance details

Defined in GHC.Types.Cpr

Methods

put_ :: BinHandle -> CprSig -> IO () #

put :: BinHandle -> CprSig -> IO (Bin CprSig) #

get :: BinHandle -> IO CprSig #

Outputable CprSig #

Only print the CPR result

Instance details

Defined in GHC.Types.Cpr

Methods

ppr :: CprSig -> SDoc #

pprPrec :: Rational -> CprSig -> SDoc #

Eq CprSig # 
Instance details

Defined in GHC.Types.Cpr

Methods

(==) :: CprSig -> CprSig -> Bool #

(/=) :: CprSig -> CprSig -> Bool #

mkCprSigForArity :: Arity -> CprType -> CprSig #

Turns a CprType computed for the particular Arity into a CprSig unleashable at that arity. See Note [Understanding DmdType and StrictSig] in GHC.Types.Demand

seqCprSig :: CprSig -> () #