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

Futhark.CodeGen.Backends.SimpleRepresentation

Description

Simple C runtime representation.

Synopsis

Documentation

tupleField :: Int -> String Source #

tupleField i is the name of field number i in a tuple.

funName :: Name -> String Source #

funName f is the name of the C function corresponding to the Futhark function f.

defaultMemBlockType :: Type Source #

The type of memory blocks in the default memory space.

primTypeToCType :: PrimType -> Type Source #

The C type corresponding to a primitive type. Integers are assumed to be unsigned.

signedPrimTypeToCType :: Signedness -> PrimType -> Type Source #

The C type corresponding to a primitive type. Integers are assumed to have the specified sign.

Primitive value operations

cIntOps :: [Definition] Source #

cFloat32Ops :: [Definition] Source #

cFloat32Funs :: [Definition] Source #

cFloat64Ops :: [Definition] Source #

cFloat64Funs :: [Definition] Source #

cFloatConvOps :: [Definition] Source #