futhark-0.18.6: An optimising compiler for a functional, array-oriented language.
Safe HaskellNone
LanguageHaskell2010

Futhark.Actions

Description

All (almost) compiler pipelines end with an Action, which does something with the result of the pipeline.

Synopsis

Documentation

printAction :: (ASTLore lore, CanBeAliased (Op lore)) => Action lore Source #

Print the result to stdout, with alias annotations.

impCodeGenAction :: Action SeqMem Source #

Convert the program to sequential ImpCode and print it to stdout.

kernelImpCodeGenAction :: Action KernelsMem Source #

Convert the program to GPU ImpCode and print it to stdout.

multicoreImpCodeGenAction :: Action MCMem Source #

Convert the program to CPU multicore ImpCode and print it to stdout.

metricsAction :: OpMetrics (Op lore) => Action lore Source #

Print metrics about AST node counts to stdout.

sexpAction :: ASTLore lore => Action lore Source #

Print metrics about AST node counts to stdout.