feldspar-compiler-0.1: Compiler for the Feldspar language
Source code
Contents
Index
Feldspar.Compiler.Transformation.GraphToImperative
Documentation
graphToImperative
::
String
->
HierarchicalGraph
-> [
ImpFunction
]
Source
data
ImpFunctionSource
Source
Constructors
ImpFunctionSource
functionName
::
String
interface
::
Interface
hierarchy
::
Hierarchy
Instances
Show
ImpFunctionSource
class
Collect
t
where
Source
Methods
collectSources
:: t -> [
ImpFunctionSource
]
Source
Instances
Collect
Hierarchy
Collect
HierarchicalGraph
Collect
t =>
Collect
[t]
Collect
(
Node
, [
Hierarchy
])
transformSourceToImpFunction
::
ImpFunctionSource
->
ImpFunction
Source
transformNodeToDeclaration
::
Node
-> [
Declaration
]
Source
transformNodeListToDeclarations
:: [
Node
] -> [
Declaration
]
Source
transformNodeToProgram
:: (
Node
, [
Hierarchy
]) ->
Program
Source
transformNodeListToPrograms
:: [(
Node
, [
Hierarchy
])] -> [
Program
]
Source
varPrefix
::
NodeId
->
String
Source
varPath
:: [
Int
] ->
String
Source
varName
::
NodeId
-> [
Int
] ->
String
Source
genVar
::
NodeId
-> [
Int
] ->
Type
->
UntypedExpression
Source
outPrefix
::
String
Source
outName
:: [
Int
] ->
String
Source
genOut
:: [
Int
] ->
Type
->
UntypedExpression
Source
passInArgs
::
Tuple
Source
->
Tuple
StorableType
-> [
Parameter
]
Source
passOutArgs
::
NodeId
->
Tuple
StorableType
-> [
Parameter
]
Source
compileStorableType
::
StorableType
->
Type
Source
compilePrimitiveType
::
PrimitiveType
->
Type
Source
compileStorableDataToConst
::
StorableData
->
Constant
Source
compilePrimDataToConst
::
PrimitiveData
->
Constant
Source
compileStorableData
::
StorableData
->
StorableType
->
ImpLangExpr
Source
compilePrimData
::
PrimitiveData
->
PrimitiveType
->
ImpLangExpr
Source
transformSourceToExpr
::
Source
->
StorableType
->
ImpLangExpr
Source
makeCopyFromIds
:: (
NodeId
, [
Int
],
StorableType
) -> (
NodeId
, [
Int
],
StorableType
) ->
Instruction
Source
makeCopyFromExprs
::
ImpLangExpr
->
ImpLangExpr
->
Instruction
Source
copyNode
::
NodeId
->
NodeId
->
Tuple
StorableType
->
Bool
-> [
Program
]
Source
copyResult
::
Tuple
Source
->
NodeId
->
Tuple
StorableType
->
Bool
-> [
Program
]
Source
copyToOutput
::
Tuple
Source
->
Tuple
StorableType
->
Bool
-> [
Program
]
Source
Produced by
Haddock
version 2.6.0