summaryrefslogtreecommitdiff
path: root/gcc/graphite-poly.h
diff options
context:
space:
mode:
authorspop <spop@138bc75d-0d04-0410-961f-82ee72b054a4>2010-03-31 18:36:54 +0000
committerspop <spop@138bc75d-0d04-0410-961f-82ee72b054a4>2010-03-31 18:36:54 +0000
commit5dc5fe13a90f2df4a29038f17056adc410ec1efe (patch)
tree496b04f923347750b0a93595d2a1b26498418d34 /gcc/graphite-poly.h
parent9251755b600213f8d7d30cc19cbe58c496520a29 (diff)
downloadgcc-5dc5fe13a90f2df4a29038f17056adc410ec1efe.tar.gz
Make print_scop output the scoplib format.
2010-03-16 Sebastian Pop <sebastian.pop@amd.com> * graphite-poly.c (print_scattering_function): Pretty print following the scoplib format. (print_pdr): Same. (print_pbb_domain): Same. (dump_gbb_cases): Same. (dump_gbb_conditions): Same. (print_pdrs): Same. (print_pbb): Same. (print_scop_params): Same. (print_scop_context): Same. (print_scop): Same. (print_pbb_body): New. (lst_indent_to): New. (print_lst): Start new lines with a #. * graphite-poly.h (pbb_bb): New. (pbb_index): Use pbb_bb. * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of disjuncts. * tree-data-ref.c (dump_data_reference): Start new lines with a #. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@157883 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/graphite-poly.h')
-rw-r--r--gcc/graphite-poly.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/gcc/graphite-poly.h b/gcc/graphite-poly.h
index b5866995a63..665276bdaeb 100644
--- a/gcc/graphite-poly.h
+++ b/gcc/graphite-poly.h
@@ -385,12 +385,19 @@ number_of_write_pdrs (poly_bb_p pbb)
return res;
}
+/* The basic block of the PBB. */
+static inline basic_block
+pbb_bb (poly_bb_p pbb)
+{
+ return GBB_BB (PBB_BLACK_BOX (pbb));
+}
+
/* The index of the PBB. */
static inline int
pbb_index (poly_bb_p pbb)
{
- return GBB_BB (PBB_BLACK_BOX (pbb))->index;
+ return pbb_bb (pbb)->index;
}
/* The loop of the PBB. */