From fd1fbc971cfbbb85e3bada17c104e469845ab52e Mon Sep 17 00:00:00 2001 From: Sven Verdoolaege Date: Sat, 4 Jun 2011 10:42:01 +0200 Subject: [PATCH] isl_schedule.c: extract out definition of isl_schedule to isl_schedule_private.h Signed-off-by: Sven Verdoolaege --- Makefile.am | 1 + isl_schedule.c | 27 +-------------------------- isl_schedule_private.h | 35 +++++++++++++++++++++++++++++++++++ 3 files changed, 37 insertions(+), 26 deletions(-) create mode 100644 isl_schedule_private.h diff --git a/Makefile.am b/Makefile.am index b724eb15..9bce9ede 100644 --- a/Makefile.am +++ b/Makefile.am @@ -107,6 +107,7 @@ libisl_la_SOURCES = \ isl_scan.c \ isl_scan.h \ isl_schedule.c \ + isl_schedule_private.h \ isl_stream.c \ isl_seq.c \ isl_tab.c \ diff --git a/isl_schedule.c b/isl_schedule.c index 66c0ed52..925ffe32 100644 --- a/isl_schedule.c +++ b/isl_schedule.c @@ -21,6 +21,7 @@ #include #include #include +#include /* * The scheduling algorithm implemented in this file was inspired by @@ -29,32 +30,6 @@ */ -/* The schedule for an individual domain, plus information about the bands. - * In particular, we keep track of the number of bands and for each - * band, the starting position of the next band. The first band starts at - * position 0. - */ -struct isl_schedule_node { - isl_map *sched; - int n_band; - int *band_end; -}; - -/* Information about the computed schedule. - * n is the number of nodes/domains/statements. - * n_band is the maximal number of bands. - * n_total_row is the number of coordinates of the schedule. - * dim contains a description of the parameters. - */ -struct isl_schedule { - int n; - int n_band; - int n_total_row; - isl_dim *dim; - - struct isl_schedule_node node[1]; -}; - /* Internal information about a node that is used during the construction * of a schedule. * dim represents the space in which the domain lives diff --git a/isl_schedule_private.h b/isl_schedule_private.h new file mode 100644 index 00000000..dcb6d7ad --- /dev/null +++ b/isl_schedule_private.h @@ -0,0 +1,35 @@ +#ifndef ISL_SCHEDLUE_PRIVATE_H +#define ISL_SCHEDLUE_PRIVATE_H + +#include + +/* The schedule for an individual domain, plus information about the bands. + * In particular, we keep track of the number of bands and for each + * band, the starting position of the next band. The first band starts at + * position 0. + */ +struct isl_schedule_node { + isl_map *sched; + int n_band; + int *band_end; + int *band_id; +}; + +/* Information about the computed schedule. + * n is the number of nodes/domains/statements. + * n_band is the maximal number of bands. + * n_total_row is the number of coordinates of the schedule. + * dim contains a description of the parameters. + */ +struct isl_schedule { + int ref; + + int n; + int n_band; + int n_total_row; + isl_dim *dim; + + struct isl_schedule_node node[1]; +}; + +#endif -- 2.11.4.GIT