summaryrefslogtreecommitdiff
path: root/gcc/tree-data-ref.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/tree-data-ref.c')
-rw-r--r--gcc/tree-data-ref.c52
1 files changed, 52 insertions, 0 deletions
diff --git a/gcc/tree-data-ref.c b/gcc/tree-data-ref.c
index a387d8202e6..10431c09237 100644
--- a/gcc/tree-data-ref.c
+++ b/gcc/tree-data-ref.c
@@ -149,6 +149,24 @@ dump_data_references (FILE *file, vec<data_reference_p> datarefs)
dump_data_reference (file, dr);
}
+/* Unified dump into FILE all the data references from DATAREFS. */
+
+DEBUG_FUNCTION void
+debug (vec<data_reference_p> &ref)
+{
+ dump_data_references (stderr, ref);
+}
+
+DEBUG_FUNCTION void
+debug (vec<data_reference_p> *ptr)
+{
+ if (ptr)
+ debug (*ptr);
+ else
+ fprintf (stderr, "<nil>\n");
+}
+
+
/* Dump into STDERR all the data references from DATAREFS. */
DEBUG_FUNCTION void
@@ -190,6 +208,24 @@ dump_data_reference (FILE *outf,
fprintf (outf, "#)\n");
}
+/* Unified dump function for a DATA_REFERENCE structure. */
+
+DEBUG_FUNCTION void
+debug (data_reference &ref)
+{
+ dump_data_reference (stderr, &ref);
+}
+
+DEBUG_FUNCTION void
+debug (data_reference *ptr)
+{
+ if (ptr)
+ debug (*ptr);
+ else
+ fprintf (stderr, "<nil>\n");
+}
+
+
/* Dumps the affine function described by FN to the file OUTF. */
static void
@@ -442,6 +478,22 @@ dump_data_dependence_relations (FILE *file,
dump_data_dependence_relation (file, ddr);
}
+DEBUG_FUNCTION void
+debug (vec<ddr_p> &ref)
+{
+ dump_data_dependence_relations (stderr, ref);
+}
+
+DEBUG_FUNCTION void
+debug (vec<ddr_p> *ptr)
+{
+ if (ptr)
+ debug (*ptr);
+ else
+ fprintf (stderr, "<nil>\n");
+}
+
+
/* Dump to STDERR all the dependence relations from DDRS. */
DEBUG_FUNCTION void