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

Futhark.CodeGen.Backends.SimpleRep

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