aboutsummaryrefslogtreecommitdiff
path: root/gcc/graphite-poly.h
diff options
context:
space:
mode:
authorSebastian Pop <sebastian.pop@amd.com>2009-08-28 20:31:28 +0000
committerSebastian Pop <spop@gcc.gnu.org>2009-08-28 20:31:28 +0000
commitafae02072cf05ccf15d840f8194490902b97ab32 (patch)
treed5b5c0e5c80098df1a55201158a95a09303e4c17 /gcc/graphite-poly.h
parentf8e0bb8b3732047d6532f8c09be6bc6c7d506d1b (diff)
downloadgcc-afae02072cf05ccf15d840f8194490902b97ab32.zip
gcc-afae02072cf05ccf15d840f8194490902b97ab32.tar.gz
gcc-afae02072cf05ccf15d840f8194490902b97ab32.tar.bz2
graphite-dependences.c (pddr_original_scattering): New.
2009-08-28 Sebastian Pop <sebastian.pop@amd.com> * graphite-dependences.c (pddr_original_scattering): New. (graphite_legal_transform_dr): Call pddr_original_scattering. (dot_deps_1): New. (dot_deps): New. * graphite-dependences.h (dot_deps): Declared. * graphite-poly.c (new_poly_dr): Initialize PDR_ID. (print_pdr): Print PDR_ID. * graphite-poly.h (struct poly_dr): Add field id. (PDR_ID): New. (pbb_index): New. * graphite-scop-detection.c (dot_all_scops_1): Cleanup comment. From-SVN: r151183
Diffstat (limited to 'gcc/graphite-poly.h')
-rw-r--r--gcc/graphite-poly.h17
1 files changed, 15 insertions, 2 deletions
diff --git a/gcc/graphite-poly.h b/gcc/graphite-poly.h
index 793c362..a42e242 100644
--- a/gcc/graphite-poly.h
+++ b/gcc/graphite-poly.h
@@ -53,6 +53,9 @@ enum POLY_DR_TYPE
struct poly_dr
{
+ /* An identifier for this PDR. */
+ int id;
+
/* A pointer to compiler's data reference description. */
void *compiler_dr;
@@ -130,9 +133,10 @@ struct poly_dr
ppl_Pointset_Powerset_C_Polyhedron_t accesses;
/* The number of subscripts. */
- graphite_dim_t nb_subscripts;
+ graphite_dim_t nb_subscripts;
};
+#define PDR_ID(PDR) (PDR->id)
#define PDR_CDR(PDR) (PDR->compiler_dr)
#define PDR_PBB(PDR) (PDR->pbb)
#define PDR_TYPE(PDR) (PDR->type)
@@ -304,9 +308,18 @@ extern bool scop_do_interchange (scop_p);
extern bool scop_do_strip_mine (scop_p);
extern void pbb_number_of_iterations (poly_bb_p, graphite_dim_t, Value);
+/* The index of the PBB. */
+
+static inline int
+pbb_index (poly_bb_p pbb)
+{
+ return GBB_BB (PBB_BLACK_BOX (pbb))->index;
+}
+
/* The scop that contains the PDR. */
-static inline scop_p pdr_scop (poly_dr_p pdr)
+static inline scop_p
+pdr_scop (poly_dr_p pdr)
{
return PBB_SCOP (PDR_PBB (pdr));
}