diff options
author | spop <spop@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-08-24 20:53:51 +0000 |
---|---|---|
committer | spop <spop@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-08-24 20:53:51 +0000 |
commit | 3ff5d9e7f515f876e2596dc36b8bfc3476878cee (patch) | |
tree | f8791bfa2a9ac668087bc7a4113f4eb5a27ee617 /gcc/graphite-poly.h | |
parent | 9852e66f47ed7c90b6bc63ecf4cea5ff0f1f3cec (diff) | |
download | gcc-3ff5d9e7f515f876e2596dc36b8bfc3476878cee.tar.gz |
Specify the type of scop->region
Changing the type of scop::region from void* to sese, as this is
the only type assigned to scop::region for now. No functional changes intended.
Passes regtest and bootstrap.
gcc/ChangeLog:
2015-08-17 Aditya Kumar <aditya.k7@samsung.com>
* graphite-poly.c: Change type of region from void* to sese.
* graphite-poly.h (struct scop): Changing the type of scop::region
from void* to sese. Change accessor macro accordingly.
* graphite-sese-to-poly.c (extract_affine_chrec): Use accessor macro.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@227151 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/graphite-poly.h')
-rw-r--r-- | gcc/graphite-poly.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/graphite-poly.h b/gcc/graphite-poly.h index 062d927411e..4ca5d1f8694 100644 --- a/gcc/graphite-poly.h +++ b/gcc/graphite-poly.h @@ -1345,7 +1345,7 @@ lst_remove_all_before_excluding_pbb (lst_p loop, poly_bb_p pbb, bool before) struct scop { /* A SCOP is defined as a SESE region. */ - void *region; + sese region; /* Number of parameters in SCoP. */ graphite_dim_t nb_params; @@ -1390,14 +1390,14 @@ struct scop }; #define SCOP_BBS(S) (S->bbs) -#define SCOP_REGION(S) ((sese) S->region) +#define SCOP_REGION(S) (S->region) #define SCOP_CONTEXT(S) (NULL) #define SCOP_ORIGINAL_SCHEDULE(S) (S->original_schedule) #define SCOP_TRANSFORMED_SCHEDULE(S) (S->transformed_schedule) #define SCOP_SAVED_SCHEDULE(S) (S->saved_schedule) #define POLY_SCOP_P(S) (S->poly_scop_p) -extern scop_p new_scop (void *); +extern scop_p new_scop (sese); extern void free_scop (scop_p); extern void free_scops (vec<scop_p> ); extern void print_generated_program (FILE *, scop_p); @@ -1414,7 +1414,7 @@ extern bool graphite_legal_transform (scop_p); /* Set the region of SCOP to REGION. */ static inline void -scop_set_region (scop_p scop, void *region) +scop_set_region (scop_p scop, sese region) { scop->region = region; } |