OSDN Git Service

2009-12-01 Thomas Quinot <quinot@adacore.com>
[pf3gnuchains/gcc-fork.git] / gcc / graphite-clast-to-gimple.h
index e0ae6ee..85fb5e1 100644 (file)
@@ -41,8 +41,6 @@ extern cloog_prog_clast scop_to_clast (scop_p);
 extern void debug_clast_stmt (struct clast_stmt *);
 extern void print_clast_stmt (FILE *, struct clast_stmt *);
 extern void debug_clast_name_indexes (htab_t);
-extern void mark_loops_parallel (htab_t);
-extern void free_aux_in_new_loops (void);
 
 /* Hash function for data base element BB_PBB.  */
 
@@ -62,5 +60,16 @@ eq_bb_pbb_map (const void *bb_pbb1, const void *bb_pbb2)
   return (bp1->bb->index == bp2->bb->index);
 }
 
+/* Returns the scattering dimension for STMTFOR.
+
+   The relationship between dimension in scattering matrix
+   and the DEPTH of the loop is:
+   DIMENSION = 2*DEPTH - 1
+*/
+
+static inline int get_scattering_level (int depth)
+{
+  return 2 * depth - 1;
+}
 
 #endif