Blame isl-0.14/isl_schedule_private.h
|
Packit |
fb9d21 |
#ifndef ISL_SCHEDLUE_PRIVATE_H
|
|
Packit |
fb9d21 |
#define ISL_SCHEDLUE_PRIVATE_H
|
|
Packit |
fb9d21 |
|
|
Packit |
fb9d21 |
#include <isl/aff.h>
|
|
Packit |
fb9d21 |
#include <isl/schedule.h>
|
|
Packit |
fb9d21 |
|
|
Packit |
fb9d21 |
/* The schedule for an individual domain, plus information about the bands
|
|
Packit |
fb9d21 |
* and scheduling dimensions.
|
|
Packit |
fb9d21 |
* In particular, we keep track of the number of bands and for each
|
|
Packit |
fb9d21 |
* band, the starting position of the next band. The first band starts at
|
|
Packit |
fb9d21 |
* position 0.
|
|
Packit |
fb9d21 |
* For each scheduling dimension, we keep track of whether it satisfies
|
|
Packit |
fb9d21 |
* the coincidence constraints (within its band).
|
|
Packit |
fb9d21 |
*/
|
|
Packit |
fb9d21 |
struct isl_schedule_node {
|
|
Packit |
fb9d21 |
isl_multi_aff *sched;
|
|
Packit |
fb9d21 |
int n_band;
|
|
Packit |
fb9d21 |
int *band_end;
|
|
Packit |
fb9d21 |
int *band_id;
|
|
Packit |
fb9d21 |
int *coincident;
|
|
Packit |
fb9d21 |
};
|
|
Packit |
fb9d21 |
|
|
Packit |
fb9d21 |
/* Information about the computed schedule.
|
|
Packit |
fb9d21 |
* n is the number of nodes/domains/statements.
|
|
Packit |
fb9d21 |
* n_band is the maximal number of bands.
|
|
Packit |
fb9d21 |
* n_total_row is the number of coordinates of the schedule.
|
|
Packit |
fb9d21 |
* dim contains a description of the parameters.
|
|
Packit |
fb9d21 |
* band_forest points to a band forest representation of the schedule
|
|
Packit |
fb9d21 |
* and may be NULL if the forest hasn't been created yet.
|
|
Packit |
fb9d21 |
*/
|
|
Packit |
fb9d21 |
struct isl_schedule {
|
|
Packit |
fb9d21 |
int ref;
|
|
Packit |
fb9d21 |
|
|
Packit |
fb9d21 |
int n;
|
|
Packit |
fb9d21 |
int n_band;
|
|
Packit |
fb9d21 |
int n_total_row;
|
|
Packit |
fb9d21 |
isl_space *dim;
|
|
Packit |
fb9d21 |
|
|
Packit |
fb9d21 |
isl_band_list *band_forest;
|
|
Packit |
fb9d21 |
|
|
Packit |
fb9d21 |
struct isl_schedule_node node[1];
|
|
Packit |
fb9d21 |
};
|
|
Packit |
fb9d21 |
|
|
Packit |
fb9d21 |
#endif
|