merge isl_*_dump functions
[platform/upstream/isl.git] / isl_band.c
index 4a0bf4e..6c3e8a9 100644 (file)
@@ -10,6 +10,7 @@
 
 #include <isl_band_private.h>
 #include <isl_schedule_private.h>
+#include <isl_list_private.h>
 
 isl_ctx *isl_band_get_ctx(__isl_keep isl_band *band)
 {
@@ -47,7 +48,7 @@ void *isl_band_free(__isl_take isl_band *band)
 
        isl_union_map_free(band->map);
        isl_band_list_free(band->children);
-       free(band->parallel);
+       free(band->zero);
        free(band);
 
        return NULL;
@@ -69,7 +70,7 @@ __isl_give isl_band_list *isl_band_get_children(
        if (!band->children)
                isl_die(isl_band_get_ctx(band), isl_error_invalid,
                        "band has no children", return NULL);
-       return isl_band_list_copy(band->children);
+       return isl_band_list_dup(band->children);
 }
 
 int isl_band_n_member(__isl_keep isl_band *band)
@@ -77,10 +78,10 @@ int isl_band_n_member(__isl_keep isl_band *band)
        return band ? band->n : 0;
 }
 
-/* Is the given scheduling dimension parallel within the band and
+/* Is the given scheduling dimension zero distance within the band and
  * with respect to the proximity dependences.
  */
-int isl_band_member_is_parallel(__isl_keep isl_band *band, int pos)
+int isl_band_member_is_zero_distance(__isl_keep isl_band *band, int pos)
 {
        if (!band)
                return -1;
@@ -89,7 +90,7 @@ int isl_band_member_is_parallel(__isl_keep isl_band *band, int pos)
                isl_die(isl_band_get_ctx(band), isl_error_invalid,
                        "invalid member position", return -1);
 
-       return band->parallel[pos];
+       return band->zero[pos];
 }
 
 /* Return the schedule that leads up to this band.
@@ -185,17 +186,3 @@ __isl_give isl_printer *isl_printer_print_band(__isl_take isl_printer *p,
 
        return p;
 }
-
-void isl_band_dump(__isl_keep isl_band *band)
-{
-       isl_printer *printer;
-
-       if (!band)
-               return;
-
-       printer = isl_printer_to_file(isl_band_get_ctx(band), stderr);
-       printer = isl_printer_print_band(printer, band);
-       printer = isl_printer_end_line(printer);
-
-       isl_printer_free(printer);
-}