futhark-0.25.12: An optimising compiler for a functional, array-oriented language.
Safe HaskellSafe-Inferred
LanguageGHC2021

Futhark.Internalise.Defunctionalise

Description

Defunctionalization of typed, monomorphic Futhark programs without modules.

Synopsis

Documentation

transformProg :: MonadFreshNames m => [ValBind] -> m [ValBind] Source #

Transform a list of top-level value bindings. May produce new lifted function definitions, which are placed in front of the resulting list of declarations.