add isl_schedule_node_band_scale_down
[isl.git] / isl_schedule_band.h
blob1a476e3ce3467c766004cae24bac274d1a6804b5
1 #ifndef ISL_SCHEDULE_BAND_H
2 #define ISL_SCHEDULE_BAND_H
4 #include <isl/aff.h>
5 #include <isl/union_map.h>
7 /* Information about a band within a schedule.
9 * n is the number of scheduling dimensions within the band.
10 * coincident is an array of length n, indicating whether a scheduling dimension
11 * satisfies the coincidence constraints in the sense that
12 * the corresponding dependence distances are zero.
13 * permutable is set if the band is permutable.
14 * mupa is the partial schedule corresponding to this band. The dimension
15 * of mupa is equal to n.
17 struct isl_schedule_band {
18 int ref;
20 int n;
21 int *coincident;
22 int permutable;
24 isl_multi_union_pw_aff *mupa;
26 typedef struct isl_schedule_band isl_schedule_band;
28 __isl_give isl_schedule_band *isl_schedule_band_from_multi_union_pw_aff(
29 __isl_take isl_multi_union_pw_aff *mupa);
30 __isl_give isl_schedule_band *isl_schedule_band_copy(
31 __isl_keep isl_schedule_band *band);
32 __isl_null isl_schedule_band *isl_schedule_band_free(
33 __isl_take isl_schedule_band *band);
35 isl_ctx *isl_schedule_band_get_ctx(__isl_keep isl_schedule_band *band);
37 __isl_give isl_space *isl_schedule_band_get_space(
38 __isl_keep isl_schedule_band *band);
39 __isl_give isl_multi_union_pw_aff *isl_schedule_band_get_partial_schedule(
40 __isl_keep isl_schedule_band *band);
42 int isl_schedule_band_n_member(__isl_keep isl_schedule_band *band);
43 int isl_schedule_band_member_get_coincident(
44 __isl_keep isl_schedule_band *band, int pos);
45 __isl_give isl_schedule_band *isl_schedule_band_member_set_coincident(
46 __isl_take isl_schedule_band *band, int pos, int coincident);
47 int isl_schedule_band_get_permutable(__isl_keep isl_schedule_band *band);
48 __isl_give isl_schedule_band *isl_schedule_band_set_permutable(
49 __isl_take isl_schedule_band *band, int permutable);
51 __isl_give isl_schedule_band *isl_schedule_band_scale(
52 __isl_take isl_schedule_band *band, __isl_take isl_multi_val *mv);
53 __isl_give isl_schedule_band *isl_schedule_band_scale_down(
54 __isl_take isl_schedule_band *band, __isl_take isl_multi_val *mv);
55 __isl_give isl_schedule_band *isl_schedule_band_tile(
56 __isl_take isl_schedule_band *band, __isl_take isl_multi_val *sizes);
57 __isl_give isl_schedule_band *isl_schedule_band_point(
58 __isl_take isl_schedule_band *band, __isl_keep isl_schedule_band *tile,
59 __isl_take isl_multi_val *sizes);
60 __isl_give isl_schedule_band *isl_schedule_band_drop(
61 __isl_take isl_schedule_band *band, int pos, int n);
63 #endif