]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Remove cloog_initialize and cloog_finalize when using official CLooG releases.
authorAndreas Simbuerger <simbuerg@fim.uni-passau.de>
Wed, 11 Aug 2010 20:30:56 +0000 (20:30 +0000)
committerSebastian Pop <spop@gcc.gnu.org>
Wed, 11 Aug 2010 20:30:56 +0000 (20:30 +0000)
This requires to initialize the Parma Polyhedra Library by graphite,
as newer CLooG versions are not bound to a PPL backend.

2010-07-27  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>

* graphite.c (graphite_initialize): Do not initialize
CLooG and initialize the Parma Polyhedra Library
manually when using CLOOG_ORG.
(graphite_finalize): Do not finalize CLooG and finalize
the Parma Polyhedra Library manually when using CLOOG_ORG.
* graphite-cloog-compat.h (cloog_initialize): Hide function
when using CLOOG_ORG.
(cloog_finalize): Same.

From-SVN: r163166

gcc/ChangeLog
gcc/ChangeLog.graphite
gcc/graphite-cloog-compat.h
gcc/graphite.c

index 4a0e3a5f336e809b6bc5a00a4ca9b6fa937305eb..cf92a9466300e366b996b63e0ccccf049be7dc46 100644 (file)
@@ -1,3 +1,22 @@
+2010-08-02  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
+
+       * graphite-cloog-util.c (oppose_constraint):
+       Extend loop counter's value range (CLOOG_ORG).
+       (cloog_matrix_to_ppl_constraint): Same.
+       (new_Constraint_System_from_Cloog_matrix): Same.
+       * graphite-cloog-compat.h (matrix_num_type): New.
+
+2010-08-02  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
+
+       * graphite.c (graphite_initialize): Do not initialize
+       CLooG and initialize the Parma Polyhedra Library
+       manually when using CLOOG_ORG.
+       (graphite_finalize): Do not finalize CLooG and finalize
+       the Parma Polyhedra Library manually when using CLOOG_ORG.
+       * graphite-cloog-compat.h (cloog_initialize): Hide function
+       when using CLOOG_ORG.
+       (cloog_finalize): Same.
+
 2010-08-02  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
 
        * graphite-clast-to-gimple.c (free_scattering): Change
index 4916f915256dea91b961eff62a7c5c1e3b7346db..7a7b02cb4ff6b28eae23acae00dd8b97f488539d 100644 (file)
@@ -1,5 +1,16 @@
 2010-07-27  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
 
+       * graphite.c (graphite_initialize): Do not initialize
+       CLooG and initialize the Parma Polyhedra Library
+       manually when using CLOOG_ORG.
+       (graphite_finalize): Do not finalize CLooG and finalize
+       the Parma Polyhedra Library manually when using CLOOG_ORG.
+       * graphite-cloog-compat.h (cloog_initialize): Hide function
+       when using CLOOG_ORG.
+       (cloog_finalize): Same.
+
+2010-07-18  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
+
        * graphite-clast-to-gimple.c (free_scattering): Change
        CloogDomainList/CloogDomain to CloogScatteringList/CloogScattering
        (CLOOG_ORG).
index 56b6bb382cd46648ab35108eb8fb26148ba76cf8..c39b18ea3bcbabeb838355d96347ae972b72cc76 100644 (file)
@@ -29,6 +29,11 @@ typedef const struct clast_expr *clast_name_p;
 typedef const char *clast_name_p;
 #endif
 
+#ifdef CLOOG_ORG
+#define cloog_initialize()
+#define cloog_finalize()
+#endif
+
 #ifndef CLOOG_ORG
 
 /* CloogOptions compatibility.  */
index 4bb4344a7d6159fcf3d8cf73b5d4b9dd718af4a5..12dbd0c3a1a179ef92e8fa7beffe77c2b80d3b9b 100644 (file)
@@ -61,6 +61,7 @@ along with GCC; see the file COPYING3.  If not see
 
 #include "cloog/cloog.h"
 #include "ppl_c.h"
+#include "graphite-cloog-compat.h"
 #include "graphite-ppl.h"
 #include "graphite.h"
 #include "graphite-poly.h"
@@ -200,6 +201,8 @@ print_graphite_statistics (FILE* file, VEC (scop_p, heap) *scops)
 static bool
 graphite_initialize (void)
 {
+  int ppl_initialized;
+
   if (number_of_loops () <= 1
       /* FIXME: This limit on the number of basic blocks of a function
         should be removed when the SCOP detection is faster.  */
@@ -213,6 +216,10 @@ graphite_initialize (void)
 
   recompute_all_dominators ();
   initialize_original_copy_tables ();
+
+  ppl_initialized = ppl_initialize ();
+  gcc_assert (ppl_initialized == 0);
+
   cloog_initialize ();
 
   if (dump_file && dump_flags)
@@ -237,6 +244,7 @@ graphite_finalize (bool need_cfg_cleanup_p)
     }
 
   cloog_finalize ();
+  ppl_finalize ();
   free_original_copy_tables ();
 
   if (dump_file && dump_flags)