add isl_qpolynomial_fold_dump
authorSven Verdoolaege <skimo@kotnet.org>
Mon, 27 Dec 2010 19:06:01 +0000 (20:06 +0100)
committerSven Verdoolaege <skimo@kotnet.org>
Wed, 29 Dec 2010 11:05:12 +0000 (12:05 +0100)
Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
include/isl/polynomial.h
isl_output.c

index 2dd780b..9e2c119 100644 (file)
@@ -275,6 +275,7 @@ __isl_give isl_printer *isl_printer_print_qpolynomial_fold(
        __isl_take isl_printer *p, __isl_keep isl_qpolynomial_fold *fold);
 void isl_qpolynomial_fold_print(__isl_keep isl_qpolynomial_fold *fold, FILE *out,
        unsigned output_format);
+void isl_qpolynomial_fold_dump(__isl_keep isl_qpolynomial_fold *fold);
 
 struct isl_pw_qpolynomial_fold;
 typedef struct isl_pw_qpolynomial_fold isl_pw_qpolynomial_fold;
index b103b5e..9220db6 100644 (file)
@@ -1265,6 +1265,21 @@ void isl_union_pw_qpolynomial_dump(__isl_keep isl_union_pw_qpolynomial *upwqp)
        isl_printer_free(printer);
 }
 
+void isl_qpolynomial_fold_dump(__isl_keep isl_qpolynomial_fold *fold)
+{
+       isl_printer *printer;
+
+       if (!fold)
+               return;
+
+       printer = isl_printer_to_file(isl_qpolynomial_fold_get_ctx(fold),
+                                       stderr);
+       printer = isl_printer_print_qpolynomial_fold(printer, fold);
+       printer = isl_printer_end_line(printer);
+
+       isl_printer_free(printer);
+}
+
 void isl_union_pw_qpolynomial_fold_dump(
        __isl_keep isl_union_pw_qpolynomial_fold *upwf)
 {