Safe Haskell | None |
---|---|
Language | Haskell2010 |
Futhark.Compiler
Synopsis
- runPipelineOnProgram :: FutharkConfig -> Pipeline SOACS tolore -> FilePath -> FutharkM (Prog tolore)
- runCompilerOnProgram :: FutharkConfig -> Pipeline SOACS lore -> Action lore -> FilePath -> IO ()
- data FutharkConfig = FutharkConfig {
- futharkVerbose :: (Verbosity, Maybe FilePath)
- futharkWarn :: Bool
- futharkWerror :: Bool
- futharkSafe :: Bool
- newFutharkConfig :: FutharkConfig
- dumpError :: FutharkConfig -> CompilerError -> IO ()
- module Futhark.Compiler.Program
- readProgram :: (MonadError CompilerError m, MonadIO m) => FilePath -> m (Warnings, Imports, VNameSource)
- readLibrary :: (MonadError CompilerError m, MonadIO m) => [FilePath] -> m (Warnings, Imports, VNameSource)
- readProgramOrDie :: MonadIO m => FilePath -> m (Warnings, Imports, VNameSource)
Documentation
runPipelineOnProgram :: FutharkConfig -> Pipeline SOACS tolore -> FilePath -> FutharkM (Prog tolore) Source #
runCompilerOnProgram :: FutharkConfig -> Pipeline SOACS lore -> Action lore -> FilePath -> IO () Source #
data FutharkConfig Source #
The compiler configuration. This only contains options related to core compiler functionality, such as reading the initial program and running passes. Options related to code generation are handled elsewhere.
Constructors
FutharkConfig | |
Fields
|
newFutharkConfig :: FutharkConfig Source #
The default compiler configuration.
dumpError :: FutharkConfig -> CompilerError -> IO () Source #
Print a compiler error to stdout. The FutharkConfig
controls
to which degree auxiliary information (e.g. the failing program) is
also printed.
module Futhark.Compiler.Program
readProgram :: (MonadError CompilerError m, MonadIO m) => FilePath -> m (Warnings, Imports, VNameSource) Source #
Read and type-check a Futhark program, including all imports.
readLibrary :: (MonadError CompilerError m, MonadIO m) => [FilePath] -> m (Warnings, Imports, VNameSource) Source #
Read and type-check a collection of Futhark files, including all imports.
readProgramOrDie :: MonadIO m => FilePath -> m (Warnings, Imports, VNameSource) Source #
Not verbose, and terminates process on error.