Safe Haskell | None |
---|---|
Language | Haskell2010 |
Definition of the lore used by the simplification engine.
Synopsis
- data Wise lore
- data VarWisdom = VarWisdom {}
- data ExpWisdom
- removeStmWisdom :: CanBeWise (Op lore) => Stm (Wise lore) -> Stm lore
- removeLambdaWisdom :: CanBeWise (Op lore) => Lambda (Wise lore) -> Lambda lore
- removeProgWisdom :: CanBeWise (Op lore) => Prog (Wise lore) -> Prog lore
- removeFunDefWisdom :: CanBeWise (Op lore) => FunDef (Wise lore) -> FunDef lore
- removeExpWisdom :: CanBeWise (Op lore) => Exp (Wise lore) -> Exp lore
- removePatternWisdom :: PatternT (VarWisdom, a) -> PatternT a
- removePatElemWisdom :: PatElemT (VarWisdom, a) -> PatElemT a
- removeBodyWisdom :: CanBeWise (Op lore) => Body (Wise lore) -> Body lore
- removeScopeWisdom :: Scope (Wise lore) -> Scope lore
- addScopeWisdom :: Scope lore -> Scope (Wise lore)
- addWisdomToPattern :: (Attributes lore, CanBeWise (Op lore)) => Pattern lore -> Exp (Wise lore) -> Pattern (Wise lore)
- mkWiseBody :: (Attributes lore, CanBeWise (Op lore)) => BodyAttr lore -> Stms (Wise lore) -> Result -> Body (Wise lore)
- mkWiseLetStm :: (Attributes lore, CanBeWise (Op lore)) => Pattern lore -> StmAux (ExpAttr lore) -> Exp (Wise lore) -> Stm (Wise lore)
- mkWiseExpAttr :: (Attributes lore, CanBeWise (Op lore)) => Pattern (Wise lore) -> ExpAttr lore -> Exp (Wise lore) -> ExpAttr (Wise lore)
- class (AliasedOp (OpWithWisdom op), RangedOp (OpWithWisdom op), IsOp (OpWithWisdom op), UsageInOp (OpWithWisdom op)) => CanBeWise op where
- type OpWithWisdom op :: *
- removeOpWisdom :: OpWithWisdom op -> op
Documentation
Instances
The wisdom of the let-bound variable.
Instances
Eq VarWisdom Source # | |
Ord VarWisdom Source # | |
Defined in Futhark.Optimise.Simplify.Lore | |
Show VarWisdom Source # | |
FreeIn VarWisdom Source # | |
Substitute VarWisdom Source # | |
Defined in Futhark.Optimise.Simplify.Lore | |
Rename VarWisdom Source # | |
PrettyAnnot (PatElemT attr) => PrettyAnnot (PatElemT (VarWisdom, attr)) Source # | |
AliasesOf (VarWisdom, attr) Source # | |
RangeOf (VarWisdom, attr) Source # | |
Wisdom about an expression.
Instances
Eq ExpWisdom Source # | |
Ord ExpWisdom Source # | |
Defined in Futhark.Optimise.Simplify.Lore | |
Show ExpWisdom Source # | |
FreeAttr ExpWisdom Source # | |
Defined in Futhark.Optimise.Simplify.Lore | |
FreeIn ExpWisdom Source # | |
Substitute ExpWisdom Source # | |
Defined in Futhark.Optimise.Simplify.Lore | |
Rename ExpWisdom Source # | |
addWisdomToPattern :: (Attributes lore, CanBeWise (Op lore)) => Pattern lore -> Exp (Wise lore) -> Pattern (Wise lore) Source #
mkWiseBody :: (Attributes lore, CanBeWise (Op lore)) => BodyAttr lore -> Stms (Wise lore) -> Result -> Body (Wise lore) Source #
mkWiseLetStm :: (Attributes lore, CanBeWise (Op lore)) => Pattern lore -> StmAux (ExpAttr lore) -> Exp (Wise lore) -> Stm (Wise lore) Source #
mkWiseExpAttr :: (Attributes lore, CanBeWise (Op lore)) => Pattern (Wise lore) -> ExpAttr lore -> Exp (Wise lore) -> ExpAttr (Wise lore) Source #
class (AliasedOp (OpWithWisdom op), RangedOp (OpWithWisdom op), IsOp (OpWithWisdom op), UsageInOp (OpWithWisdom op)) => CanBeWise op where Source #
type OpWithWisdom op :: * Source #
removeOpWisdom :: OpWithWisdom op -> op Source #