Safe Haskell | None |
---|---|
Language | GHC2021 |
Synopsis
- data TopEnvConfig = TopEnvConfig {
- te_history_size :: !Int
- te_tick_factor :: !Int
- data SimplM result
- initSmpl :: Logger -> IO RuleEnv -> TopEnvConfig -> Int -> SimplM a -> IO (a, SimplCount)
- traceSmpl :: String -> SDoc -> SimplM ()
- getSimplRules :: SimplM RuleEnv
- class Monad m => MonadUnique (m :: Type -> Type) where
- getUniqueSupplyM :: m UniqSupply
- getUniqueM :: m Unique
- getUniquesM :: m [Unique]
- newId :: FastString -> Mult -> Type -> SimplM Id
- newJoinId :: [Var] -> Type -> SimplM Id
- data SimplCount
- tick :: Tick -> SimplM ()
- freeTick :: Tick -> SimplM ()
- checkedTick :: Tick -> SimplM ()
- getSimplCount :: SimplM SimplCount
- zeroSimplCount :: Bool -> SimplCount
- pprSimplCount :: SimplCount -> SDoc
- plusSimplCount :: SimplCount -> SimplCount -> SimplCount
- isZeroSimplCount :: SimplCount -> Bool
Documentation
data TopEnvConfig Source #
TopEnvConfig | |
|
:: Logger | |
-> IO RuleEnv | |
-> TopEnvConfig | |
-> Int | Size of the bindings, used to limit the number of ticks we allow |
-> SimplM a | |
-> IO (a, SimplCount) |
class Monad m => MonadUnique (m :: Type -> Type) where Source #
A monad for generating unique identifiers
getUniqueSupplyM :: m UniqSupply Source #
Get a new UniqueSupply
getUniqueM :: m Unique Source #
Get a new unique identifier
getUniquesM :: m [Unique] Source #
Get an infinite list of new unique identifiers
Instances
MonadUnique CoreM Source # | |
Defined in GHC.Core.Opt.Monad | |
MonadUnique SimplM Source # | |
Defined in GHC.Core.Opt.Simplify.Monad | |
MonadUnique LiftM Source # | |
Defined in GHC.Stg.Lift.Monad | |
MonadUnique CmmParse Source # | |
Defined in GHC.StgToCmm.ExtCode | |
MonadUnique FCode Source # | |
Defined in GHC.StgToCmm.Monad | |
MonadUnique TcS Source # | |
Defined in GHC.Tc.Solver.Monad getUniqueSupplyM :: TcS UniqSupply Source # getUniqueM :: TcS Unique Source # getUniquesM :: TcS [Unique] Source # | |
MonadUnique UniqSM Source # | |
Defined in GHC.Types.Unique.Supply | |
MonadUnique (IOEnv (Env gbl lcl)) Source # | |
Defined in GHC.Tc.Utils.Monad getUniqueSupplyM :: IOEnv (Env gbl lcl) UniqSupply Source # |
newJoinId :: [Var] -> Type -> SimplM Id Source #
Make a join id with given type and arity but without call-by-value annotations.
data SimplCount Source #
checkedTick :: Tick -> SimplM () Source #
:: Bool |
|
-> SimplCount |
pprSimplCount :: SimplCount -> SDoc Source #
plusSimplCount :: SimplCount -> SimplCount -> SimplCount Source #
isZeroSimplCount :: SimplCount -> Bool Source #