Safe Haskell | None |
---|---|
Language | Haskell2010 |
All (almost) compiler pipelines end with an Action
, which does
something with the result of the pipeline.
Synopsis
- printAction :: (ASTLore lore, CanBeAliased (Op lore)) => Action lore
- impCodeGenAction :: Action SeqMem
- kernelImpCodeGenAction :: Action KernelsMem
- multicoreImpCodeGenAction :: Action MCMem
- metricsAction :: OpMetrics (Op lore) => Action lore
- compileCAction :: FutharkConfig -> CompilerMode -> FilePath -> Action SeqMem
- compileOpenCLAction :: FutharkConfig -> CompilerMode -> FilePath -> Action KernelsMem
- compileCUDAAction :: FutharkConfig -> CompilerMode -> FilePath -> Action KernelsMem
- compileMulticoreAction :: FutharkConfig -> CompilerMode -> FilePath -> Action MCMem
- sexpAction :: ASTLore lore => Action lore
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.
metricsAction :: OpMetrics (Op lore) => Action lore Source #
Print metrics about AST node counts to stdout.
compileCAction :: FutharkConfig -> CompilerMode -> FilePath -> Action SeqMem Source #
The futhark c
action.
compileOpenCLAction :: FutharkConfig -> CompilerMode -> FilePath -> Action KernelsMem Source #
The futhark opencl
action.
compileCUDAAction :: FutharkConfig -> CompilerMode -> FilePath -> Action KernelsMem Source #
The futhark cuda
action.
compileMulticoreAction :: FutharkConfig -> CompilerMode -> FilePath -> Action MCMem Source #
The futhark multicore
action.
sexpAction :: ASTLore lore => Action lore Source #
Print metrics about AST node counts to stdout.