X-Git-Url: http://git.sourceforge.jp/view?a=blobdiff_plain;f=gcc%2Fgraphite-clast-to-gimple.h;h=f6557f6875bafd687184217ca8b0cb63105a3a72;hb=dc8948dbb1c662516d86df1a9575194358c1890f;hp=3f25872b61b9b046e9ef1e28eb2ae722ba141256;hpb=314c9614ae50225ca91f109c5ff98a1661baa7fd;p=pf3gnuchains%2Fgcc-fork.git diff --git a/gcc/graphite-clast-to-gimple.h b/gcc/graphite-clast-to-gimple.h index 3f25872b61b..f6557f6875b 100644 --- a/gcc/graphite-clast-to-gimple.h +++ b/gcc/graphite-clast-to-gimple.h @@ -1,5 +1,5 @@ /* Translation of CLAST (CLooG AST) to Gimple. - Copyright (C) 2009 Free Software Foundation, Inc. + Copyright (C) 2009, 2010 Free Software Foundation, Inc. Contributed by Sebastian Pop . This file is part of GCC. @@ -36,12 +36,11 @@ typedef struct bb_pbb_def poly_bb_p pbb; }bb_pbb_def; -extern bool gloog (scop_p, htab_t); +extern bool gloog (scop_p, VEC (scop_p, heap) *, htab_t); 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); /* Hash function for data base element BB_PBB. */ @@ -61,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