aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKonrad Trifunovic <konrad.trifunovic@inria.fr>2008-06-19 18:57:49 +0000
committerKonrad Trifunovic <konrad.trifunovic@inria.fr>2008-06-19 18:57:49 +0000
commit27a32e8b5e6e7b2629138b0dfb64ae6c0aadfd48 (patch)
tree008a650e8733a2fd4420e19ac568d662aaa9fde1
parent3ef82d43ea6897b2f840be900620cdaa5f2ac135 (diff)
2008-06-19 Konrad Trifunovic <konrad.trifunovic@inria.fr>
* graphite.c (new_scop): Memory allocation for SCOP_{NEWIVS, OLDIVS}. (free_scop): Memory deallocation for SCOP_NEWIVS, SCOP_OLDIVS. (create_var_name, save_var_name): Newly defined functions. (initialize_cloog_names): Part of the code factored out to save_var_name. (clast_to_gcc_expression): Now handles the case of clast_red_sum in clast_reduction statement. (graphite_create_new_loop): Now takes a new parameter for outer_loop. (translate_clast): Now also takes the context_loop and bb_exit parameters. Rewritten the code so that it creates a gimple code inside the given context. (outermost_loop_layer, graphite_remove_iv, graphite_rename_ivs, remove_cond_expr, disconnect_cond_expr, disconnect_virtual_phi_nodes): Newly defined functions. * graphite.h (struct scop): added old_ivs vector. SCOP_OLDIVS: New macro. git-svn-id: https://gcc.gnu.org/svn/gcc/branches/graphite@136964 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/graphite.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/graphite.h b/gcc/graphite.h
index 3c57563d6fd..a44a13d6f08 100644
--- a/gcc/graphite.h
+++ b/gcc/graphite.h
@@ -292,6 +292,9 @@ struct scop
/* New induction variables generated for this SCOP. */
VEC (name_tree, heap) *new_ivs;
+ /* A collection of old induction variables*/
+ VEC (name_tree, heap) *old_ivs;
+
/* Loops completely contained in the scop. */
bitmap loops;
VEC (loop_p, heap) *loop_nest;
@@ -311,6 +314,7 @@ struct scop
#define SCOP_LOOP_NEST(S) S->loop_nest
#define SCOP_PARAMS(S) S->params
#define SCOP_NEWIVS(S) S->new_ivs
+#define SCOP_OLDIVS(S) S->old_ivs
#define SCOP_PROG(S) S->program
#define SCOP_LOOP2CLOOG_LOOP(S) S->loop2cloog_loop