From dd8669ced925dbe43cb62e00da84f39f3c937bf7 Mon Sep 17 00:00:00 2001 From: Sebastian Pop Date: Thu, 31 Jul 2008 18:44:35 -0500 Subject: [PATCH] ported Empty_Polyhedron. --- include/cloog/ppl_backend.h | 1 - source/ppl/domain.c | 12 ++++++------ 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/include/cloog/ppl_backend.h b/include/cloog/ppl_backend.h index ce19341..b0b158e 100644 --- a/include/cloog/ppl_backend.h +++ b/include/cloog/ppl_backend.h @@ -631,7 +631,6 @@ cloog_vector_combine (Value * p1, Value * p2, Value * p3, Value x, Polyhedron *Polyhedron_Copy(Polyhedron *Pol); void Polyhedron_Print(FILE *Dst,char *Format,Polyhedron *Pol); void Polyhedron_Free(Polyhedron *Pol); - Polyhedron *Empty_Polyhedron(unsigned Dimension); void Matrix_Free(Matrix *Mat); void Matrix_Print (FILE * Dst, char *Format, CloogMatrix * Mat); diff --git a/source/ppl/domain.c b/source/ppl/domain.c index 61a2dc0..51f83cd 100644 --- a/source/ppl/domain.c +++ b/source/ppl/domain.c @@ -252,13 +252,13 @@ cloog_new_domain (polyhedra_union p) } static CloogDomain * -cloog_domain_alloc (Polyhedron *p) +cloog_domain_alloc (polyhedron p) { - return print_result ("cloog_domain_alloc", cloog_new_domain (p2u (p))); + return print_result ("cloog_domain_alloc", cloog_new_domain (cloog_new_upol (p))); } void -debug_polyhedron (Polyhedron *p) +debug_polyhedron (polyhedron p) { debug_cloog_domain (cloog_domain_alloc (p)); } @@ -708,14 +708,14 @@ cloog_pol_from_matrix (CloogMatrix * m) static CloogDomain * cloog_domain_matrix2domain (CloogMatrix * matrix) { - return print_result ("cloog_domain_matrix2domain", cloog_domain_alloc (p_c2p (cloog_pol_from_matrix (matrix)))); + return print_result ("cloog_domain_matrix2domain", cloog_domain_alloc (cloog_pol_from_matrix (matrix))); } static CloogDomain * cloog_translate_ppl_polyhedron (ppl_Polyhedron_t p) { polyhedron res = cloog_translate_ppl_polyhedron_1 (p); - return print_result ("cloog_translate_ppl_polyhedron", cloog_domain_alloc (p_c2p (res))); + return print_result ("cloog_translate_ppl_polyhedron", cloog_domain_alloc (res)); } void debug_poly (Polyhedron *p) @@ -1716,7 +1716,7 @@ cloog_domain_sort (CloogDomain **doms, unsigned nb_pols, unsigned level, CloogDomain * cloog_domain_empty (int dimension) { - return (cloog_domain_alloc (Empty_Polyhedron (dimension))); + return (cloog_domain_alloc (cloog_empty_polyhedron (dimension))); } -- 2.11.4.GIT