Commit 04863400 by Sebastian Pop Committed by Sebastian Pop

graphite-ppl.c (ppl_print_linear_expr): New.

2009-10-17  Sebastian Pop  <sebastian.pop@amd.com>

	* graphite-ppl.c (ppl_print_linear_expr): New.
	(debug_ppl_linear_expr): New.
	* graphite-ppl.h (ppl_print_linear_expr): Declared.
	(debug_ppl_linear_expr): Declared.

From-SVN: r154599
parent 009150e1
2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
* graphite-ppl.c (ppl_print_linear_expr): New.
(debug_ppl_linear_expr): New.
* graphite-ppl.h (ppl_print_linear_expr): Declared.
(debug_ppl_linear_expr): Declared.
2009-10-16 Sebastian Pop <sebastian.pop@amd.com> 2009-10-16 Sebastian Pop <sebastian.pop@amd.com>
* graphite-interchange.c: Fix comments. * graphite-interchange.c: Fix comments.
......
...@@ -561,6 +561,30 @@ ppl_print_polyhedron_matrix (FILE *file, ppl_const_Polyhedron_t ph) ...@@ -561,6 +561,30 @@ ppl_print_polyhedron_matrix (FILE *file, ppl_const_Polyhedron_t ph)
cloog_matrix_free (mat); 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. */ /* Print to FILE the powerset PS in its PolyLib matrix form. */
void void
......
...@@ -38,6 +38,8 @@ void ppl_print_polyhedron_matrix (FILE *, ppl_const_Polyhedron_t); ...@@ -38,6 +38,8 @@ void ppl_print_polyhedron_matrix (FILE *, ppl_const_Polyhedron_t);
void ppl_print_powerset_matrix (FILE *, ppl_Pointset_Powerset_C_Polyhedron_t); void ppl_print_powerset_matrix (FILE *, ppl_Pointset_Powerset_C_Polyhedron_t);
void debug_ppl_polyhedron_matrix (ppl_Polyhedron_t); void debug_ppl_polyhedron_matrix (ppl_Polyhedron_t);
void debug_ppl_powerset_matrix (ppl_Pointset_Powerset_C_Polyhedron_t); void debug_ppl_powerset_matrix (ppl_Pointset_Powerset_C_Polyhedron_t);
void ppl_print_linear_expr (FILE *, ppl_Linear_Expression_t);
void debug_ppl_linear_expr (ppl_Linear_Expression_t);
void ppl_read_polyhedron_matrix (ppl_Polyhedron_t *, FILE *); void ppl_read_polyhedron_matrix (ppl_Polyhedron_t *, FILE *);
void ppl_insert_dimensions (ppl_Polyhedron_t, int, int); void ppl_insert_dimensions (ppl_Polyhedron_t, int, int);
void ppl_insert_dimensions_pointset (ppl_Pointset_Powerset_C_Polyhedron_t, int, void ppl_insert_dimensions_pointset (ppl_Pointset_Powerset_C_Polyhedron_t, int,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment