Safe Haskell | None |
---|---|
Language | Haskell2010 |
Simple C runtime representation.
Synopsis
- tupleField :: Int -> String
- funName :: Name -> String
- defaultMemBlockType :: Type
- primTypeToCType :: PrimType -> Type
- signedPrimTypeToCType :: Signedness -> PrimType -> Type
- cIntOps :: [Definition]
- cFloat32Ops :: [Definition]
- cFloat32Funs :: [Definition]
- cFloat64Ops :: [Definition]
- cFloat64Funs :: [Definition]
- cFloatConvOps :: [Definition]
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
cFloat32Ops :: [Definition] Source #
cFloat32Funs :: [Definition] Source #
cFloat64Ops :: [Definition] Source #
cFloat64Funs :: [Definition] Source #
cFloatConvOps :: [Definition] Source #