feldspar-compiler 0.2 → 0.2.1
raw patch · 26 files changed
+801/−1 lines, 26 files
Files
- Feldspar/C/feldspar.c +32/−0
- Feldspar/C/feldspar.h +32/−0
- Feldspar/Compiler.hs +32/−0
- Feldspar/Compiler/Compiler.hs +32/−0
- Feldspar/Compiler/CompilerMain.hs +32/−0
- Feldspar/Compiler/Error.hs +32/−0
- Feldspar/Compiler/Imperative/CodeGeneration.hs +32/−0
- Feldspar/Compiler/Imperative/Representation.hs +32/−0
- Feldspar/Compiler/Imperative/Semantics.hs +32/−0
- Feldspar/Compiler/Options.hs +32/−0
- Feldspar/Compiler/PluginArchitecture.hs +32/−0
- Feldspar/Compiler/PluginArchitecture/DefaultConvert.hs +32/−0
- Feldspar/Compiler/Plugins/BackwardPropagation.hs +32/−0
- Feldspar/Compiler/Plugins/ConstantFolding.hs +32/−0
- Feldspar/Compiler/Plugins/ForwardPropagation.hs +32/−0
- Feldspar/Compiler/Plugins/HandlePrimitives.hs +32/−0
- Feldspar/Compiler/Plugins/Precompilation.hs +32/−0
- Feldspar/Compiler/Plugins/PrettyPrint.hs +32/−0
- Feldspar/Compiler/Plugins/PropagationUtils.hs +32/−0
- Feldspar/Compiler/Plugins/Unroll.hs +32/−0
- Feldspar/Compiler/Precompiler/Precompiler.hs +32/−0
- Feldspar/Compiler/Transformation/GraphToImperative.hs +32/−0
- Feldspar/Compiler/Transformation/GraphUtils.hs +32/−0
- Feldspar/Compiler/Transformation/Lifting.hs +32/−0
- Feldspar/Fs2dot.hs +32/−0
- feldspar-compiler.cabal +1/−1
Feldspar/C/feldspar.c view
@@ -1,3 +1,35 @@+/*+ * Copyright (c) 2009-2010, ERICSSON AB All rights reserved.+ * + * Redistribution and use in source and binary forms, with or without+ * modification, are permitted provided that the following conditions+ * are met:+ * + * * Redistributions of source code must retain the above copyright+ * notice,+ * this list of conditions and the following disclaimer.+ * * Redistributions in binary form must reproduce the above copyright+ * notice, this list of conditions and the following disclaimer+ * in the documentation and/or other materials provided with the+ * distribution.+ * * Neither the name of the ERICSSON AB nor the names of its+ * contributors+ * may be used to endorse or promote products derived from this+ * software without specific prior written permission.+ * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR+ * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT+ * HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.+ */+ #include "feldspar.h"
Feldspar/C/feldspar.h view
@@ -1,3 +1,35 @@+/*+ * Copyright (c) 2009-2010, ERICSSON AB All rights reserved.+ * + * Redistribution and use in source and binary forms, with or without+ * modification, are permitted provided that the following conditions+ * are met:+ * + * * Redistributions of source code must retain the above copyright+ * notice,+ * this list of conditions and the following disclaimer.+ * * Redistributions in binary form must reproduce the above copyright+ * notice, this list of conditions and the following disclaimer+ * in the documentation and/or other materials provided with the+ * distribution.+ * * Neither the name of the ERICSSON AB nor the names of its+ * contributors+ * may be used to endorse or promote products derived from this+ * software without specific prior written permission.+ * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR+ * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT+ * HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.+ */+ #ifndef FELDSPAR_H #define FELDSPAR_H
Feldspar/Compiler.hs view
@@ -1,3 +1,35 @@+{-+ - Copyright (c) 2009-2010, ERICSSON AB All rights reserved.+ - + - Redistribution and use in source and binary forms, with or without+ - modification, are permitted provided that the following conditions+ - are met:+ - + - * Redistributions of source code must retain the above copyright+ - notice,+ - this list of conditions and the following disclaimer.+ - * Redistributions in binary form must reproduce the above copyright+ - notice, this list of conditions and the following disclaimer+ - in the documentation and/or other materials provided with the+ - distribution.+ - * Neither the name of the ERICSSON AB nor the names of its+ - contributors+ - may be used to endorse or promote products derived from this+ - software without specific prior written permission.+ - + - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS+ - "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT+ - LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR+ - A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT+ - HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,+ - SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT+ - LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,+ - DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY+ - THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT+ - (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE+ - OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.+ -}+ module Feldspar.Compiler ( compile , icompile
Feldspar/Compiler/Compiler.hs view
@@ -1,3 +1,35 @@+{-+ - Copyright (c) 2009-2010, ERICSSON AB All rights reserved.+ - + - Redistribution and use in source and binary forms, with or without+ - modification, are permitted provided that the following conditions+ - are met:+ - + - * Redistributions of source code must retain the above copyright+ - notice,+ - this list of conditions and the following disclaimer.+ - * Redistributions in binary form must reproduce the above copyright+ - notice, this list of conditions and the following disclaimer+ - in the documentation and/or other materials provided with the+ - distribution.+ - * Neither the name of the ERICSSON AB nor the names of its+ - contributors+ - may be used to endorse or promote products derived from this+ - software without specific prior written permission.+ - + - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS+ - "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT+ - LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR+ - A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT+ - HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,+ - SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT+ - LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,+ - DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY+ - THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT+ - (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE+ - OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.+ -}+ module Feldspar.Compiler.Compiler ( compile , standaloneCompile
Feldspar/Compiler/CompilerMain.hs view
@@ -1,3 +1,35 @@+{-+ - Copyright (c) 2009-2010, ERICSSON AB All rights reserved.+ - + - Redistribution and use in source and binary forms, with or without+ - modification, are permitted provided that the following conditions+ - are met:+ - + - * Redistributions of source code must retain the above copyright+ - notice,+ - this list of conditions and the following disclaimer.+ - * Redistributions in binary form must reproduce the above copyright+ - notice, this list of conditions and the following disclaimer+ - in the documentation and/or other materials provided with the+ - distribution.+ - * Neither the name of the ERICSSON AB nor the names of its+ - contributors+ - may be used to endorse or promote products derived from this+ - software without specific prior written permission.+ - + - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS+ - "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT+ - LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR+ - A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT+ - HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,+ - SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT+ - LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,+ - DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY+ - THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT+ - (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE+ - OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.+ -}+ {-# LANGUAGE CPP #-} module Main where
Feldspar/Compiler/Error.hs view
@@ -1,3 +1,35 @@+{-+ - Copyright (c) 2009-2010, ERICSSON AB All rights reserved.+ - + - Redistribution and use in source and binary forms, with or without+ - modification, are permitted provided that the following conditions+ - are met:+ - + - * Redistributions of source code must retain the above copyright+ - notice,+ - this list of conditions and the following disclaimer.+ - * Redistributions in binary form must reproduce the above copyright+ - notice, this list of conditions and the following disclaimer+ - in the documentation and/or other materials provided with the+ - distribution.+ - * Neither the name of the ERICSSON AB nor the names of its+ - contributors+ - may be used to endorse or promote products derived from this+ - software without specific prior written permission.+ - + - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS+ - "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT+ - LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR+ - A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT+ - HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,+ - SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT+ - LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,+ - DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY+ - THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT+ - (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE+ - OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.+ -}+ module Feldspar.Compiler.Error where data ErrorClass = InvariantViolation | InternalError
Feldspar/Compiler/Imperative/CodeGeneration.hs view
@@ -1,3 +1,35 @@+{-+ - Copyright (c) 2009-2010, ERICSSON AB All rights reserved.+ - + - Redistribution and use in source and binary forms, with or without+ - modification, are permitted provided that the following conditions+ - are met:+ - + - * Redistributions of source code must retain the above copyright+ - notice,+ - this list of conditions and the following disclaimer.+ - * Redistributions in binary form must reproduce the above copyright+ - notice, this list of conditions and the following disclaimer+ - in the documentation and/or other materials provided with the+ - distribution.+ - * Neither the name of the ERICSSON AB nor the names of its+ - contributors+ - may be used to endorse or promote products derived from this+ - software without specific prior written permission.+ - + - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS+ - "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT+ - LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR+ - A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT+ - HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,+ - SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT+ - LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,+ - DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY+ - THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT+ - (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE+ - OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.+ -}+ {-# LANGUAGE FlexibleInstances #-} module Feldspar.Compiler.Imperative.CodeGeneration where
Feldspar/Compiler/Imperative/Representation.hs view
@@ -1,3 +1,35 @@+{-+ - Copyright (c) 2009-2010, ERICSSON AB All rights reserved.+ - + - Redistribution and use in source and binary forms, with or without+ - modification, are permitted provided that the following conditions+ - are met:+ - + - * Redistributions of source code must retain the above copyright+ - notice,+ - this list of conditions and the following disclaimer.+ - * Redistributions in binary form must reproduce the above copyright+ - notice, this list of conditions and the following disclaimer+ - in the documentation and/or other materials provided with the+ - distribution.+ - * Neither the name of the ERICSSON AB nor the names of its+ - contributors+ - may be used to endorse or promote products derived from this+ - software without specific prior written permission.+ - + - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS+ - "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT+ - LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR+ - A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT+ - HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,+ - SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT+ - LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,+ - DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY+ - THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT+ - (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE+ - OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.+ -}+ {-# LANGUAGE TypeFamilies #-} module Feldspar.Compiler.Imperative.Representation where
Feldspar/Compiler/Imperative/Semantics.hs view
@@ -1,3 +1,35 @@+{-+ - Copyright (c) 2009-2010, ERICSSON AB All rights reserved.+ - + - Redistribution and use in source and binary forms, with or without+ - modification, are permitted provided that the following conditions+ - are met:+ - + - * Redistributions of source code must retain the above copyright+ - notice,+ - this list of conditions and the following disclaimer.+ - * Redistributions in binary form must reproduce the above copyright+ - notice, this list of conditions and the following disclaimer+ - in the documentation and/or other materials provided with the+ - distribution.+ - * Neither the name of the ERICSSON AB nor the names of its+ - contributors+ - may be used to endorse or promote products derived from this+ - software without specific prior written permission.+ - + - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS+ - "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT+ - LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR+ - A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT+ - HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,+ - SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT+ - LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,+ - DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY+ - THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT+ - (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE+ - OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.+ -}+ {-# LANGUAGE TypeFamilies, EmptyDataDecls, FlexibleContexts #-} module Feldspar.Compiler.Imperative.Semantics where
Feldspar/Compiler/Options.hs view
@@ -1,3 +1,35 @@+{-+ - Copyright (c) 2009-2010, ERICSSON AB All rights reserved.+ - + - Redistribution and use in source and binary forms, with or without+ - modification, are permitted provided that the following conditions+ - are met:+ - + - * Redistributions of source code must retain the above copyright+ - notice,+ - this list of conditions and the following disclaimer.+ - * Redistributions in binary form must reproduce the above copyright+ - notice, this list of conditions and the following disclaimer+ - in the documentation and/or other materials provided with the+ - distribution.+ - * Neither the name of the ERICSSON AB nor the names of its+ - contributors+ - may be used to endorse or promote products derived from this+ - software without specific prior written permission.+ - + - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS+ - "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT+ - LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR+ - A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT+ - HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,+ - SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT+ - LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,+ - DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY+ - THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT+ - (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE+ - OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.+ -}+ module Feldspar.Compiler.Options where data Options =
Feldspar/Compiler/PluginArchitecture.hs view
@@ -1,3 +1,35 @@+{-+ - Copyright (c) 2009-2010, ERICSSON AB All rights reserved.+ - + - Redistribution and use in source and binary forms, with or without+ - modification, are permitted provided that the following conditions+ - are met:+ - + - * Redistributions of source code must retain the above copyright+ - notice,+ - this list of conditions and the following disclaimer.+ - * Redistributions in binary form must reproduce the above copyright+ - notice, this list of conditions and the following disclaimer+ - in the documentation and/or other materials provided with the+ - distribution.+ - * Neither the name of the ERICSSON AB nor the names of its+ - contributors+ - may be used to endorse or promote products derived from this+ - software without specific prior written permission.+ - + - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS+ - "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT+ - LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR+ - A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT+ - HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,+ - SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT+ - LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,+ - DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY+ - THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT+ - (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE+ - OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.+ -}+ {-# LANGUAGE TypeFamilies, FlexibleContexts, Rank2Types #-} module Feldspar.Compiler.PluginArchitecture (
Feldspar/Compiler/PluginArchitecture/DefaultConvert.hs view
@@ -1,3 +1,35 @@+{-+ - Copyright (c) 2009-2010, ERICSSON AB All rights reserved.+ - + - Redistribution and use in source and binary forms, with or without+ - modification, are permitted provided that the following conditions+ - are met:+ - + - * Redistributions of source code must retain the above copyright+ - notice,+ - this list of conditions and the following disclaimer.+ - * Redistributions in binary form must reproduce the above copyright+ - notice, this list of conditions and the following disclaimer+ - in the documentation and/or other materials provided with the+ - distribution.+ - * Neither the name of the ERICSSON AB nor the names of its+ - contributors+ - may be used to endorse or promote products derived from this+ - software without specific prior written permission.+ - + - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS+ - "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT+ - LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR+ - A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT+ - HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,+ - SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT+ - LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,+ - DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY+ - THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT+ - (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE+ - OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.+ -}+ {-# LANGUAGE UndecidableInstances, MultiParamTypeClasses, FlexibleContexts, FlexibleInstances #-} module Feldspar.Compiler.PluginArchitecture.DefaultConvert where
Feldspar/Compiler/Plugins/BackwardPropagation.hs view
@@ -1,3 +1,35 @@+{-+ - Copyright (c) 2009-2010, ERICSSON AB All rights reserved.+ - + - Redistribution and use in source and binary forms, with or without+ - modification, are permitted provided that the following conditions+ - are met:+ - + - * Redistributions of source code must retain the above copyright+ - notice,+ - this list of conditions and the following disclaimer.+ - * Redistributions in binary form must reproduce the above copyright+ - notice, this list of conditions and the following disclaimer+ - in the documentation and/or other materials provided with the+ - distribution.+ - * Neither the name of the ERICSSON AB nor the names of its+ - contributors+ - may be used to endorse or promote products derived from this+ - software without specific prior written permission.+ - + - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS+ - "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT+ - LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR+ - A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT+ - HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,+ - SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT+ - LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,+ - DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY+ - THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT+ - (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE+ - OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.+ -}+ {-# LANGUAGE EmptyDataDecls, TypeFamilies, FlexibleInstances #-} module Feldspar.Compiler.Plugins.BackwardPropagation
Feldspar/Compiler/Plugins/ConstantFolding.hs view
@@ -1,3 +1,35 @@+{-+ - Copyright (c) 2009-2010, ERICSSON AB All rights reserved.+ - + - Redistribution and use in source and binary forms, with or without+ - modification, are permitted provided that the following conditions+ - are met:+ - + - * Redistributions of source code must retain the above copyright+ - notice,+ - this list of conditions and the following disclaimer.+ - * Redistributions in binary form must reproduce the above copyright+ - notice, this list of conditions and the following disclaimer+ - in the documentation and/or other materials provided with the+ - distribution.+ - * Neither the name of the ERICSSON AB nor the names of its+ - contributors+ - may be used to endorse or promote products derived from this+ - software without specific prior written permission.+ - + - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS+ - "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT+ - LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR+ - A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT+ - HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,+ - SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT+ - LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,+ - DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY+ - THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT+ - (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE+ - OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.+ -}+ {-# LANGUAGE TypeFamilies #-} module Feldspar.Compiler.Plugins.ConstantFolding where
Feldspar/Compiler/Plugins/ForwardPropagation.hs view
@@ -1,3 +1,35 @@+{-+ - Copyright (c) 2009-2010, ERICSSON AB All rights reserved.+ - + - Redistribution and use in source and binary forms, with or without+ - modification, are permitted provided that the following conditions+ - are met:+ - + - * Redistributions of source code must retain the above copyright+ - notice,+ - this list of conditions and the following disclaimer.+ - * Redistributions in binary form must reproduce the above copyright+ - notice, this list of conditions and the following disclaimer+ - in the documentation and/or other materials provided with the+ - distribution.+ - * Neither the name of the ERICSSON AB nor the names of its+ - contributors+ - may be used to endorse or promote products derived from this+ - software without specific prior written permission.+ - + - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS+ - "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT+ - LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR+ - A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT+ - HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,+ - SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT+ - LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,+ - DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY+ - THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT+ - (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE+ - OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.+ -}+ {-# LANGUAGE EmptyDataDecls, TypeFamilies, FlexibleInstances #-} module Feldspar.Compiler.Plugins.ForwardPropagation where
Feldspar/Compiler/Plugins/HandlePrimitives.hs view
@@ -1,3 +1,35 @@+{-+ - Copyright (c) 2009-2010, ERICSSON AB All rights reserved.+ - + - Redistribution and use in source and binary forms, with or without+ - modification, are permitted provided that the following conditions+ - are met:+ - + - * Redistributions of source code must retain the above copyright+ - notice,+ - this list of conditions and the following disclaimer.+ - * Redistributions in binary form must reproduce the above copyright+ - notice, this list of conditions and the following disclaimer+ - in the documentation and/or other materials provided with the+ - distribution.+ - * Neither the name of the ERICSSON AB nor the names of its+ - contributors+ - may be used to endorse or promote products derived from this+ - software without specific prior written permission.+ - + - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS+ - "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT+ - LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR+ - A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT+ - HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,+ - SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT+ - LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,+ - DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY+ - THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT+ - (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE+ - OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.+ -}+ {-# LANGUAGE TypeFamilies #-} module Feldspar.Compiler.Plugins.HandlePrimitives
Feldspar/Compiler/Plugins/Precompilation.hs view
@@ -1,3 +1,35 @@+{-+ - Copyright (c) 2009-2010, ERICSSON AB All rights reserved.+ - + - Redistribution and use in source and binary forms, with or without+ - modification, are permitted provided that the following conditions+ - are met:+ - + - * Redistributions of source code must retain the above copyright+ - notice,+ - this list of conditions and the following disclaimer.+ - * Redistributions in binary form must reproduce the above copyright+ - notice, this list of conditions and the following disclaimer+ - in the documentation and/or other materials provided with the+ - distribution.+ - * Neither the name of the ERICSSON AB nor the names of its+ - contributors+ - may be used to endorse or promote products derived from this+ - software without specific prior written permission.+ - + - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS+ - "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT+ - LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR+ - A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT+ - HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,+ - SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT+ - LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,+ - DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY+ - THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT+ - (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE+ - OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.+ -}+ {-# LANGUAGE EmptyDataDecls, TypeFamilies #-} module Feldspar.Compiler.Plugins.Precompilation where
Feldspar/Compiler/Plugins/PrettyPrint.hs view
@@ -1,3 +1,35 @@+{-+ - Copyright (c) 2009-2010, ERICSSON AB All rights reserved.+ - + - Redistribution and use in source and binary forms, with or without+ - modification, are permitted provided that the following conditions+ - are met:+ - + - * Redistributions of source code must retain the above copyright+ - notice,+ - this list of conditions and the following disclaimer.+ - * Redistributions in binary form must reproduce the above copyright+ - notice, this list of conditions and the following disclaimer+ - in the documentation and/or other materials provided with the+ - distribution.+ - * Neither the name of the ERICSSON AB nor the names of its+ - contributors+ - may be used to endorse or promote products derived from this+ - software without specific prior written permission.+ - + - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS+ - "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT+ - LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR+ - A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT+ - HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,+ - SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT+ - LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,+ - DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY+ - THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT+ - (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE+ - OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.+ -}+ {-# LANGUAGE TypeFamilies #-} module Feldspar.Compiler.Plugins.PrettyPrint where
Feldspar/Compiler/Plugins/PropagationUtils.hs view
@@ -1,3 +1,35 @@+{-+ - Copyright (c) 2009-2010, ERICSSON AB All rights reserved.+ - + - Redistribution and use in source and binary forms, with or without+ - modification, are permitted provided that the following conditions+ - are met:+ - + - * Redistributions of source code must retain the above copyright+ - notice,+ - this list of conditions and the following disclaimer.+ - * Redistributions in binary form must reproduce the above copyright+ - notice, this list of conditions and the following disclaimer+ - in the documentation and/or other materials provided with the+ - distribution.+ - * Neither the name of the ERICSSON AB nor the names of its+ - contributors+ - may be used to endorse or promote products derived from this+ - software without specific prior written permission.+ - + - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS+ - "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT+ - LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR+ - A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT+ - HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,+ - SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT+ - LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,+ - DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY+ - THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT+ - (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE+ - OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.+ -}+ {-# LANGUAGE TypeSynonymInstances, FlexibleInstances #-} module Feldspar.Compiler.Plugins.PropagationUtils where
Feldspar/Compiler/Plugins/Unroll.hs view
@@ -1,3 +1,35 @@+{-+ - Copyright (c) 2009-2010, ERICSSON AB All rights reserved.+ - + - Redistribution and use in source and binary forms, with or without+ - modification, are permitted provided that the following conditions+ - are met:+ - + - * Redistributions of source code must retain the above copyright+ - notice,+ - this list of conditions and the following disclaimer.+ - * Redistributions in binary form must reproduce the above copyright+ - notice, this list of conditions and the following disclaimer+ - in the documentation and/or other materials provided with the+ - distribution.+ - * Neither the name of the ERICSSON AB nor the names of its+ - contributors+ - may be used to endorse or promote products derived from this+ - software without specific prior written permission.+ - + - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS+ - "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT+ - LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR+ - A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT+ - HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,+ - SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT+ - LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,+ - DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY+ - THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT+ - (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE+ - OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.+ -}+ {-# LANGUAGE FlexibleInstances, TypeFamilies #-} module Feldspar.Compiler.Plugins.Unroll where
Feldspar/Compiler/Precompiler/Precompiler.hs view
@@ -1,3 +1,35 @@+{-+ - Copyright (c) 2009-2010, ERICSSON AB All rights reserved.+ - + - Redistribution and use in source and binary forms, with or without+ - modification, are permitted provided that the following conditions+ - are met:+ - + - * Redistributions of source code must retain the above copyright+ - notice,+ - this list of conditions and the following disclaimer.+ - * Redistributions in binary form must reproduce the above copyright+ - notice, this list of conditions and the following disclaimer+ - in the documentation and/or other materials provided with the+ - distribution.+ - * Neither the name of the ERICSSON AB nor the names of its+ - contributors+ - may be used to endorse or promote products derived from this+ - software without specific prior written permission.+ - + - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS+ - "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT+ - LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR+ - A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT+ - HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,+ - SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT+ - LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,+ - DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY+ - THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT+ - (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE+ - OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.+ -}+ module Feldspar.Compiler.Precompiler.Precompiler where import System.IO
Feldspar/Compiler/Transformation/GraphToImperative.hs view
@@ -1,3 +1,35 @@+{-+ - Copyright (c) 2009-2010, ERICSSON AB All rights reserved.+ - + - Redistribution and use in source and binary forms, with or without+ - modification, are permitted provided that the following conditions+ - are met:+ - + - * Redistributions of source code must retain the above copyright+ - notice,+ - this list of conditions and the following disclaimer.+ - * Redistributions in binary form must reproduce the above copyright+ - notice, this list of conditions and the following disclaimer+ - in the documentation and/or other materials provided with the+ - distribution.+ - * Neither the name of the ERICSSON AB nor the names of its+ - contributors+ - may be used to endorse or promote products derived from this+ - software without specific prior written permission.+ - + - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS+ - "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT+ - LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR+ - A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT+ - HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,+ - SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT+ - LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,+ - DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY+ - THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT+ - (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE+ - OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.+ -}+ {-# LANGUAGE FlexibleInstances #-} module Feldspar.Compiler.Transformation.GraphToImperative where
Feldspar/Compiler/Transformation/GraphUtils.hs view
@@ -1,3 +1,35 @@+{-+ - Copyright (c) 2009-2010, ERICSSON AB All rights reserved.+ - + - Redistribution and use in source and binary forms, with or without+ - modification, are permitted provided that the following conditions+ - are met:+ - + - * Redistributions of source code must retain the above copyright+ - notice,+ - this list of conditions and the following disclaimer.+ - * Redistributions in binary form must reproduce the above copyright+ - notice, this list of conditions and the following disclaimer+ - in the documentation and/or other materials provided with the+ - distribution.+ - * Neither the name of the ERICSSON AB nor the names of its+ - contributors+ - may be used to endorse or promote products derived from this+ - software without specific prior written permission.+ - + - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS+ - "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT+ - LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR+ - A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT+ - HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,+ - SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT+ - LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,+ - DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY+ - THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT+ - (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE+ - OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.+ -}+ {-# LANGUAGE FlexibleInstances, TypeSynonymInstances #-} module Feldspar.Compiler.Transformation.GraphUtils
Feldspar/Compiler/Transformation/Lifting.hs view
@@ -1,3 +1,35 @@+{-+ - Copyright (c) 2009-2010, ERICSSON AB All rights reserved.+ - + - Redistribution and use in source and binary forms, with or without+ - modification, are permitted provided that the following conditions+ - are met:+ - + - * Redistributions of source code must retain the above copyright+ - notice,+ - this list of conditions and the following disclaimer.+ - * Redistributions in binary form must reproduce the above copyright+ - notice, this list of conditions and the following disclaimer+ - in the documentation and/or other materials provided with the+ - distribution.+ - * Neither the name of the ERICSSON AB nor the names of its+ - contributors+ - may be used to endorse or promote products derived from this+ - software without specific prior written permission.+ - + - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS+ - "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT+ - LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR+ - A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT+ - HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,+ - SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT+ - LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,+ - DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY+ - THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT+ - (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE+ - OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.+ -}+ {-# LANGUAGE FlexibleInstances #-} module Feldspar.Compiler.Transformation.Lifting where
Feldspar/Fs2dot.hs view
@@ -1,3 +1,35 @@+{-+ - Copyright (c) 2009-2010, ERICSSON AB All rights reserved.+ - + - Redistribution and use in source and binary forms, with or without+ - modification, are permitted provided that the following conditions+ - are met:+ - + - * Redistributions of source code must retain the above copyright+ - notice,+ - this list of conditions and the following disclaimer.+ - * Redistributions in binary form must reproduce the above copyright+ - notice, this list of conditions and the following disclaimer+ - in the documentation and/or other materials provided with the+ - distribution.+ - * Neither the name of the ERICSSON AB nor the names of its+ - contributors+ - may be used to endorse or promote products derived from this+ - software without specific prior written permission.+ - + - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS+ - "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT+ - LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR+ - A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT+ - HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,+ - SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT+ - LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,+ - DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY+ - THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT+ - (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE+ - OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.+ -}+ -- |Fs2dot is to help us create a visualisation of an algorithm written in -- Feldspar by converting its graph into dot format -- which can be further -- processed by the Graphviz suite.
feldspar-compiler.cabal view
@@ -1,5 +1,5 @@ name: feldspar-compiler-version: 0.2+version: 0.2.1 cabal-version: >= 1.2.3 build-type: Simple license: BSD3