gibbon-0.3: A compiler for operating on serialized data
Safe HaskellSafe-Inferred
LanguageHaskell2010

Gibbon.Passes.InlineTriv

Description

Compiler pass to inline trivials.

Synopsis

Documentation

inlineTriv :: HasSimplifiable e l d => Prog (PreExp e l d) -> PassM (Prog (PreExp e l d)) Source #

Inline trivial let bindings (binding a var to a var or int), mainly to clean up the output of flatten.

inlineTrivExp :: forall e l d. HasSimplifiable e l d => ExpEnv e l d -> PreExp e l d -> PreExp e l d Source #

Orphan instances

HasSimplifiable e l d => Simplifiable (PreExp e l d) Source # 
Instance details

Methods

gInlineTrivExp :: Map Var (PreExp e l d) -> PreExp e l d -> PreExp e l d Source #