diff options
author | Andreas Simbuerger <simbuerg@fim.uni-passau.de> | 2010-08-11 20:30:34 +0000 |
---|---|---|
committer | Sebastian Pop <spop@gcc.gnu.org> | 2010-08-11 20:30:34 +0000 |
commit | 4431102bf04d1b55354ce0543e852e0bc5d8970d (patch) | |
tree | c6a0121bfdeac2cfa03dfa292211e51e123d86d4 /gcc/graphite-cloog-compat.h | |
parent | ac3b070a2f7c806f1fdd99c409af0e687949ad27 (diff) | |
download | gcc-4431102bf04d1b55354ce0543e852e0bc5d8970d.tar.gz |
Adapt to new CLAST structure within upstream CLooG version and retain compatibility to CLooG Legacy.
2010-07-27 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
* graphite-clast-to-gimple.c (clast_name_to_gcc): Parameter
type of NAME now depends on used CLooG version.
(clast_to_gcc_expression): Replace expr_* with clast_expr_*.
(gcc_type_for_clast_expr): Same.
(print_clast_stmt): Replace pprint with clast_pprint.
* graphite-cloog-compat.h: Provide compatibility macros for
CLooG Legacy.
(clast_name_p): New.
(clast_expr_term): New.
(clast_expr_red): New.
(clast_expr_bin): New.
(clast_pprint): New.
From-SVN: r163163
Diffstat (limited to 'gcc/graphite-cloog-compat.h')
-rw-r--r-- | gcc/graphite-cloog-compat.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc/graphite-cloog-compat.h b/gcc/graphite-cloog-compat.h index 66083183676..8ff0e43f3d0 100644 --- a/gcc/graphite-cloog-compat.h +++ b/gcc/graphite-cloog-compat.h @@ -23,6 +23,12 @@ along with GCC; see the file COPYING3. If not see #define GRAPHITE_CLOOG_COMPAT_H /* Restore compatibility to CLooG Legacy. */ +#ifdef CLOOG_ORG +typedef const struct clast_expr *clast_name_p; +#else +typedef const char *clast_name_p; +#endif + #ifndef CLOOG_ORG /* CloogOptions compatibility. */ @@ -32,6 +38,12 @@ along with GCC; see the file COPYING3. If not see #define cloog_program_scatter(PROG, SCATT, OPT)\ cloog_program_scatter (PROG, SCATT) +/* CLAST compatibility. */ +#define clast_expr_term expr_term +#define clast_expr_red expr_red +#define clast_expr_bin expr_bin +#define clast_pprint pprint + #endif /* Adapt CLooG accessors from CLooG legacy to |