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

Futhark.CodeGen.Backends.MulticoreISPC

Description

C code generator. This module can convert a correct ImpCode program to an equivalent ISPC program.

Synopsis

Documentation

compileProg :: MonadFreshNames m => Text -> Prog MCMem -> m (Warnings, (CParts, Text)) Source #

Compile the program to C and ISPC code using multicore operations.

data CParts Source #

The result of compilation to C is multiple parts, which can be put together in various ways. The obvious way is to concatenate all of them, which yields a CLI program. Another is to compile the library part by itself, and use the header file to call into it.

Constructors

CParts 

Fields

asLibrary :: CParts -> (Text, Text, Text) Source #

Produce header, implementation, and manifest files.

asExecutable :: CParts -> Text Source #

As executable with command-line interface.

asServer :: CParts -> Text Source #

As server executable.

operations :: Operations Multicore ISPCState Source #

Compiler operations specific to the ISPC multicore backend.

data ISPCState Source #

Transient state tracked by the ISPC backend.