Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data SimplM result
- initSmpl :: DynFlags -> RuleEnv -> (FamInstEnv, FamInstEnv) -> UniqSupply -> Int -> SimplM a -> IO (a, SimplCount)
- traceSmpl :: String -> SDoc -> SimplM ()
- getSimplRules :: SimplM RuleEnv
- getFamEnvs :: SimplM (FamInstEnv, FamInstEnv)
- class Monad m => MonadUnique (m :: Type -> Type) where
- getUniqueSupplyM :: m UniqSupply
- getUniqueM :: m Unique
- getUniquesM :: m [Unique]
- newId :: FastString -> Type -> SimplM Id
- newJoinId :: [Var] -> Type -> SimplM Id
- data SimplCount
- tick :: Tick -> SimplM ()
- freeTick :: Tick -> SimplM ()
- checkedTick :: Tick -> SimplM ()
- getSimplCount :: SimplM SimplCount
- zeroSimplCount :: DynFlags -> SimplCount
- pprSimplCount :: SimplCount -> SDoc
- plusSimplCount :: SimplCount -> SimplCount -> SimplCount
- isZeroSimplCount :: SimplCount -> Bool
Documentation
Instances
Monad SimplM Source # | |
Functor SimplM Source # | |
Applicative SimplM Source # | |
MonadIO SimplM Source # | |
Defined in SimplMonad | |
HasDynFlags SimplM Source # | |
Defined in SimplMonad | |
MonadUnique SimplM Source # | |
Defined in SimplMonad getUniqueSupplyM :: SimplM UniqSupply # getUniqueM :: SimplM Unique # getUniquesM :: SimplM [Unique] # |
initSmpl :: DynFlags -> RuleEnv -> (FamInstEnv, FamInstEnv) -> UniqSupply -> Int -> SimplM a -> IO (a, SimplCount) Source #
getFamEnvs :: SimplM (FamInstEnv, FamInstEnv) Source #
class Monad m => MonadUnique (m :: Type -> Type) where #
A monad for generating unique identifiers
getUniqueSupplyM :: m UniqSupply #
Get a new UniqueSupply
getUniqueM :: m Unique #
Get a new unique identifier
getUniquesM :: m [Unique] #
Get an infinite list of new unique identifiers
Instances
MonadUnique CoreM | |
Defined in CoreMonad | |
MonadUnique UniqSM | |
Defined in UniqSupply getUniqueSupplyM :: UniqSM UniqSupply # getUniqueM :: UniqSM Unique # getUniquesM :: UniqSM [Unique] # | |
MonadUnique SimplM Source # | |
Defined in SimplMonad getUniqueSupplyM :: SimplM UniqSupply # getUniqueM :: SimplM Unique # getUniquesM :: SimplM [Unique] # | |
MonadUnique LiftM Source # | |
Defined in StgLiftLams.LiftM | |
MonadUnique FCode Source # | |
Defined in StgCmmMonad | |
MonadUnique CmmParse Source # | |
Defined in StgCmmExtCode | |
MonadUnique LlvmM Source # | |
Defined in LlvmCodeGen.Base | |
MonadUnique TcS Source # | |
Defined in TcSMonad | |
MonadUnique NatM Source # | |
Defined in NCGMonad | |
MonadUnique (IOEnv (Env gbl lcl)) Source # | |
Defined in TcRnMonad getUniqueSupplyM :: IOEnv (Env gbl lcl) UniqSupply # getUniqueM :: IOEnv (Env gbl lcl) Unique # getUniquesM :: IOEnv (Env gbl lcl) [Unique] # |
data SimplCount #
checkedTick :: Tick -> SimplM () Source #
zeroSimplCount :: DynFlags -> SimplCount #
pprSimplCount :: SimplCount -> SDoc #
plusSimplCount :: SimplCount -> SimplCount -> SimplCount #
isZeroSimplCount :: SimplCount -> Bool #