Safe Haskell | None |
---|---|
Language | Haskell2010 |
Abstract Syntax Tree metrics. This is used in the futhark-test
program.
Synopsis
- newtype AstMetrics = AstMetrics (Map Text Int)
- progMetrics :: OpMetrics (Op lore) => Prog lore -> AstMetrics
- class OpMetrics op where
- seen :: Text -> MetricsM ()
- inside :: Text -> MetricsM () -> MetricsM ()
- data MetricsM a
- bodyMetrics :: OpMetrics (Op lore) => Body lore -> MetricsM ()
- bindingMetrics :: OpMetrics (Op lore) => Stm lore -> MetricsM ()
- lambdaMetrics :: OpMetrics (Op lore) => Lambda lore -> MetricsM ()
Documentation
newtype AstMetrics Source #
AstMetrics (Map Text Int) |
Instances
Read AstMetrics Source # | |
Defined in Futhark.Analysis.Metrics readsPrec :: Int -> ReadS AstMetrics # readList :: ReadS [AstMetrics] # readPrec :: ReadPrec AstMetrics # readListPrec :: ReadPrec [AstMetrics] # | |
Show AstMetrics Source # | |
Defined in Futhark.Analysis.Metrics showsPrec :: Int -> AstMetrics -> ShowS # show :: AstMetrics -> String # showList :: [AstMetrics] -> ShowS # |
progMetrics :: OpMetrics (Op lore) => Prog lore -> AstMetrics Source #