X-Git-Url: http://git.sourceforge.jp/view?p=pf3gnuchains%2Fgcc-fork.git;a=blobdiff_plain;f=gcc%2Fgraphite-ppl.c;h=241171c9ed1892c18589cebdca8b11024cb3f046;hp=3e84dcf9039d29aa0f2ce20ab25807db32b9787f;hb=409f96c1c246a7101bd7ddf902295530fa34e55a;hpb=3d6959860a7039d0e449abc9e308e5777d2cfd68 diff --git a/gcc/graphite-ppl.c b/gcc/graphite-ppl.c index 3e84dcf9039..241171c9ed1 100644 --- a/gcc/graphite-ppl.c +++ b/gcc/graphite-ppl.c @@ -561,6 +561,30 @@ ppl_print_polyhedron_matrix (FILE *file, ppl_const_Polyhedron_t ph) cloog_matrix_free (mat); } +/* Print to FILE the linear expression LE. */ + +void +ppl_print_linear_expr (FILE *file, ppl_Linear_Expression_t le) +{ + ppl_Constraint_t c; + ppl_Polyhedron_t pol; + ppl_dimension_type dim; + + ppl_Linear_Expression_space_dimension (le, &dim); + ppl_new_C_Polyhedron_from_space_dimension (&pol, dim, 0); + ppl_new_Constraint (&c, le, PPL_CONSTRAINT_TYPE_EQUAL); + ppl_Polyhedron_add_constraint (pol, c); + ppl_print_polyhedron_matrix (file, pol); +} + +/* Print to STDERR the linear expression LE. */ + +void +debug_ppl_linear_expr (ppl_Linear_Expression_t le) +{ + ppl_print_linear_expr (stderr, le); +} + /* Print to FILE the powerset PS in its PolyLib matrix form. */ void