| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Futhark.Pipeline
Synopsis
- data Pipeline fromlore tolore
- data PipelineConfig = PipelineConfig {}
- data Action lore = Action {
- actionName :: String
- actionDescription :: String
- actionProcedure :: Prog lore -> FutharkM ()
- data FutharkM a
- runFutharkM :: FutharkM a -> Verbosity -> IO (Either CompilerError a)
- data Verbosity
- internalErrorS :: Pretty t => String -> t -> FutharkM a
- module Futhark.Error
- onePass :: (Checkable fromlore, Checkable tolore) => Pass fromlore tolore -> Pipeline fromlore tolore
- passes :: Checkable lore => [Pass lore lore] -> Pipeline lore lore
- runPasses :: Pipeline fromlore tolore -> PipelineConfig -> Prog fromlore -> FutharkM (Prog tolore)
- runPipeline :: Pipeline fromlore tolore -> PipelineConfig -> Prog fromlore -> Action tolore -> FutharkM ()
Documentation
data PipelineConfig Source #
Constructors
| PipelineConfig | |
Fields | |
Constructors
| Action | |
Fields
| |
Instances
| Monad FutharkM Source # | |
| Functor FutharkM Source # | |
| Applicative FutharkM Source # | |
| MonadIO FutharkM Source # | |
Defined in Futhark.Pipeline | |
| MonadLogger FutharkM Source # | |
| MonadFreshNames FutharkM Source # | |
Defined in Futhark.Pipeline Methods getNameSource :: FutharkM VNameSource Source # putNameSource :: VNameSource -> FutharkM () Source # | |
| MonadError CompilerError FutharkM Source # | |
Defined in Futhark.Pipeline Methods throwError :: CompilerError -> FutharkM a # catchError :: FutharkM a -> (CompilerError -> FutharkM a) -> FutharkM a # | |
runFutharkM :: FutharkM a -> Verbosity -> IO (Either CompilerError a) Source #
If Verbose, print log messages to standard error. If VeryVerbose, also print logs from individual passes.
Constructors
| NotVerbose | |
| Verbose | |
| VeryVerbose |
Instances
| Eq Verbosity Source # | |
| Ord Verbosity Source # | |
module Futhark.Error
onePass :: (Checkable fromlore, Checkable tolore) => Pass fromlore tolore -> Pipeline fromlore tolore Source #
runPasses :: Pipeline fromlore tolore -> PipelineConfig -> Prog fromlore -> FutharkM (Prog tolore) Source #
runPipeline :: Pipeline fromlore tolore -> PipelineConfig -> Prog fromlore -> Action tolore -> FutharkM () Source #