summaryrefslogtreecommitdiff
path: root/gcc/graphite-dependences.h
diff options
context:
space:
mode:
authorspop <spop@138bc75d-0d04-0410-961f-82ee72b054a4>2010-02-06 17:41:34 +0000
committerspop <spop@138bc75d-0d04-0410-961f-82ee72b054a4>2010-02-06 17:41:34 +0000
commita071b80b2427ad5325f6e42529e881734364c9e9 (patch)
treec75100a7875f857044054981af1c320e82143a23 /gcc/graphite-dependences.h
parentd0546b2ebab8372d1135f774b27912313efbed4b (diff)
downloadgcc-a071b80b2427ad5325f6e42529e881734364c9e9.tar.gz
Correct the lexicographical function, add debug_pddr.
2010-02-03 Sebastian Pop <sebastian.pop@amd.com> * graphite-dependences.c (new_poly_ddr): Initialize PDDR_KIND and PDDR_ORIGINAL_SCATTERING_P. (pddr_is_empty): Rewritten. (print_dependence_polyhedron_layout): New. (print_pddr): New. (debug_pddr): New. (build_alias_set_powerset): Moved up. (poly_drs_may_alias_p): Moved up. (lexicographically_gt_p): Removed. (build_lexicographically_gt_constraint): Renamed build_lexicographical_constraint, reimplemented. (dependence_polyhedron_1): Simplified parameters. (dependence_polyhedron): Same. Keep along empty PDDRs to make efficient use of the cache. (reduction_dr_p): Compute the PBBs don't pass them as parameters. (graphite_legal_transform_dr): Rewritten. (graphite_legal_transform_bb): Pass fewer arguments to graphite_legal_transform_dr. (graphite_carried_dependence_level_k): Simplified implementation. (dot_original_deps_stmt_1): Call dependence_polyhedron. (dot_transformed_deps_stmt_1): Same. (dot_original_deps): Same. (dot_transformed_deps): Same. * graphite-dependences.h (struct poly_ddr): Added a new field original_scattering_p. (PDDR_ORIGINAL_SCATTERING_P): New. (print_pddr): Declared. (debug_pddr): Declared. * graphite-ppl.c: Clarify comment. * sese.h (print_gimple_bb): Removed unused declaration. (debug_gbb): Same. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@156549 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/graphite-dependences.h')
-rw-r--r--gcc/graphite-dependences.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/graphite-dependences.h b/gcc/graphite-dependences.h
index cd89ba38644..f6f4fea95d2 100644
--- a/gcc/graphite-dependences.h
+++ b/gcc/graphite-dependences.h
@@ -30,6 +30,8 @@ enum poly_dependence_kind {
has_dependence
};
+/* Represents a Polyhedral Data Dependence Relation. */
+
typedef struct poly_ddr
{
/* Source and sink data references of the dependence. */
@@ -40,17 +42,23 @@ typedef struct poly_ddr
enum poly_dependence_kind kind;
+ /* True when the dependence relation is for the original scattering. */
+ bool original_scattering_p;
+
} *poly_ddr_p;
#define PDDR_SOURCE(PDDR) (PDDR->source)
#define PDDR_SINK(PDDR) (PDDR->sink)
#define PDDR_DDP(PDDR) (PDDR->ddp)
#define PDDR_KIND(PDDR) (PDDR->kind)
+#define PDDR_ORIGINAL_SCATTERING_P(PDDR) (PDDR->original_scattering_p)
extern int eq_poly_ddr_p (const void *, const void *);
extern hashval_t hash_poly_ddr_p (const void *);
extern void free_poly_ddr (void *);
extern void dot_deps (scop_p);
extern void dot_deps_stmt (scop_p);
+extern void print_pddr (FILE *, poly_ddr_p);
+extern void debug_pddr (poly_ddr_p);
#endif