diff options
author | Andreas Simbuerger <simbuerg@fim.uni-passau.de> | 2010-08-11 20:30:41 +0000 |
---|---|---|
committer | Sebastian Pop <spop@gcc.gnu.org> | 2010-08-11 20:30:41 +0000 |
commit | 60f87855227bbe423be7f8385d58d81e2f3c3874 (patch) | |
tree | 8fdd4580fc6fed6d76b15a494cf7d13bbc5bb58c /gcc/graphite-cloog-util.c | |
parent | 4431102bf04d1b55354ce0543e852e0bc5d8970d (diff) | |
download | gcc-60f87855227bbe423be7f8385d58d81e2f3c3874.zip gcc-60f87855227bbe423be7f8385d58d81e2f3c3874.tar.gz gcc-60f87855227bbe423be7f8385d58d81e2f3c3874.tar.bz2 |
Introduce compatibility to newer CLooG's CloogState and mask the use with macros where possible.
2010-07-27 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
* graphite-clast-to-gimple.c (build_cloog_prog): Extend with
CloogState.
(set_cloog_options): Same.
(print_clast_stmt): Same.
(scop_to_clast): Same.
(print_generated_program): Same.
(gloog): Same.
* graphite-clast-to-gimple.h: Include graphite-cloog-util.h.
(scop_to_clast): Extend with CloogState.
* graphite-cloog-util.c: Include graphite-cloog-compat.h
(new_Cloog_Domain_from_ppl_Polyhedron):
Extend with CloogState. Use cloog_domain_from_cloog_matrix (CLOOG_ORG).
(new_Cloog_Domain_from_ppl_Pointset_Powerset): Extend with CloogState.
(new_Cloog_Domain_from_ppl_Polyhedron): Same.
* graphite-cloog-util.h (build_cloog_prog): Same.
* graphite-cloog-copat.h (build_cloog_prog): New.
(CloogState): New.
(cloog_state_malloc): New.
(cloog_state_free): New.
(cloog_loop_malloc): New.
(cloog_options_malloc): New.
(cloog_statement_alloc): New.
(cloog_domain_from_cloog_matrix): New.
(new_Cloog_Domain_from_ppl_Pointset_Powerset): New.
(new_Cloog_Domain_from_ppl_Polyhedron): New.
From-SVN: r163164
Diffstat (limited to 'gcc/graphite-cloog-util.c')
-rw-r--r-- | gcc/graphite-cloog-util.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/gcc/graphite-cloog-util.c b/gcc/graphite-cloog-util.c index 33ee5cf..500443f 100644 --- a/gcc/graphite-cloog-util.c +++ b/gcc/graphite-cloog-util.c @@ -30,6 +30,7 @@ along with GCC; see the file COPYING3. If not see #include "ppl_c.h" #include "cloog/cloog.h" #include "graphite-cloog-util.h" +#include "graphite-cloog-compat.h" /* Counts the number of constraints in PCS. */ @@ -228,10 +229,11 @@ new_C_Polyhedron_from_Cloog_Matrix (ppl_Polyhedron_t *ph, /* Creates a CloogDomain from polyhedron PH. */ CloogDomain * -new_Cloog_Domain_from_ppl_Polyhedron (ppl_const_Polyhedron_t ph) +new_Cloog_Domain_from_ppl_Polyhedron (ppl_const_Polyhedron_t ph, int nb_params, + CloogState *state ATTRIBUTE_UNUSED) { CloogMatrix *mat = new_Cloog_Matrix_from_ppl_Polyhedron (ph); - CloogDomain *res = cloog_domain_matrix2domain (mat); + CloogDomain *res = cloog_domain_from_cloog_matrix (state, mat, nb_params); cloog_matrix_free (mat); return res; } @@ -239,8 +241,9 @@ new_Cloog_Domain_from_ppl_Polyhedron (ppl_const_Polyhedron_t ph) /* Creates a CloogDomain from a pointset powerset PS. */ CloogDomain * -new_Cloog_Domain_from_ppl_Pointset_Powerset ( - ppl_Pointset_Powerset_C_Polyhedron_t ps) +new_Cloog_Domain_from_ppl_Pointset_Powerset + (ppl_Pointset_Powerset_C_Polyhedron_t ps, int nb_params, + CloogState *state ATTRIBUTE_UNUSED) { CloogDomain *res = NULL; ppl_Pointset_Powerset_C_Polyhedron_iterator_t it, end; @@ -257,7 +260,7 @@ new_Cloog_Domain_from_ppl_Pointset_Powerset ( CloogDomain *tmp; ppl_Pointset_Powerset_C_Polyhedron_iterator_dereference (it, &ph); - tmp = new_Cloog_Domain_from_ppl_Polyhedron (ph); + tmp = new_Cloog_Domain_from_ppl_Polyhedron (ph, nb_params, state); if (res == NULL) res = tmp; |