From b0602cc851a012adb398a3dd2724ac4c5c17e789 Mon Sep 17 00:00:00 2001 From: Sebastian Pop Date: Mon, 8 Mar 2010 17:49:16 +0000 Subject: [PATCH] graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed ppl_min_for_le_pointset. Cleanup. 2010-03-04 Sebastian Pop * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed ppl_min_for_le_pointset. Use ppl_Pointset_Powerset_C_Polyhedron_minimize. * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration. From-SVN: r157283 --- gcc/ChangeLog.graphite | 6 ++++++ gcc/graphite-ppl.c | 8 ++++---- gcc/graphite-ppl.h | 4 ++-- 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/gcc/ChangeLog.graphite b/gcc/ChangeLog.graphite index c1906714f27..e5d5653c353 100644 --- a/gcc/ChangeLog.graphite +++ b/gcc/ChangeLog.graphite @@ -1,3 +1,9 @@ +2010-03-04 Sebastian Pop + + * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed + ppl_min_for_le_pointset. Use ppl_Pointset_Powerset_C_Polyhedron_minimize. + * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration. + 2010-03-04 Sebastian Pop * graphite-dependences.c (map_into_dep_poly): Removed. diff --git a/gcc/graphite-ppl.c b/gcc/graphite-ppl.c index 0b7633514ef..c80cf1b794c 100644 --- a/gcc/graphite-ppl.c +++ b/gcc/graphite-ppl.c @@ -673,18 +673,18 @@ ppl_max_for_le_pointset (ppl_Pointset_Powerset_C_Polyhedron_t ps, polyhedron POL. */ void -ppl_min_for_le_polyhedron (ppl_Polyhedron_t pol, - ppl_Linear_Expression_t le, Value res) +ppl_min_for_le_pointset (ppl_Pointset_Powerset_C_Polyhedron_t ps, + ppl_Linear_Expression_t le, Value res) { ppl_Coefficient_t num, denom; Value dv, nv; - int maximum, err; + int minimum, err; value_init (nv); value_init (dv); ppl_new_Coefficient (&num); ppl_new_Coefficient (&denom); - err = ppl_Polyhedron_minimize (pol, le, num, denom, &maximum); + err = ppl_Pointset_Powerset_C_Polyhedron_minimize (ps, le, num, denom, &minimum); if (err > 0) { diff --git a/gcc/graphite-ppl.h b/gcc/graphite-ppl.h index 488ad6f8022..5a3ec6aa070 100644 --- a/gcc/graphite-ppl.h +++ b/gcc/graphite-ppl.h @@ -48,8 +48,8 @@ void ppl_set_inhomogeneous_gmp (ppl_Linear_Expression_t, Value); void ppl_set_coef_gmp (ppl_Linear_Expression_t, ppl_dimension_type, Value); void ppl_max_for_le_pointset (ppl_Pointset_Powerset_C_Polyhedron_t, ppl_Linear_Expression_t, Value); -void ppl_min_for_le_polyhedron (ppl_Polyhedron_t, ppl_Linear_Expression_t, - Value); +void ppl_min_for_le_pointset (ppl_Pointset_Powerset_C_Polyhedron_t, + ppl_Linear_Expression_t, Value); ppl_Constraint_t ppl_build_relation (int, int, int, int, enum ppl_enum_Constraint_Type);