isl_*_free: return NULL pointer of object type rather than of void *
[isl.git] / include / isl / schedule.h
blob83b89d910c221ef2e1dc6f4da528efe0fd05404b
1 #ifndef ISL_SCHEDULE_H
2 #define ISL_SCHEDULE_H
4 #include <isl/union_set_type.h>
5 #include <isl/union_map_type.h>
6 #include <isl/band.h>
7 #include <isl/list.h>
9 #if defined(__cplusplus)
10 extern "C" {
11 #endif
13 struct isl_schedule_constraints;
14 typedef struct isl_schedule_constraints isl_schedule_constraints;
15 struct isl_schedule;
16 typedef struct isl_schedule isl_schedule;
18 int isl_options_set_schedule_max_coefficient(isl_ctx *ctx, int val);
19 int isl_options_get_schedule_max_coefficient(isl_ctx *ctx);
21 int isl_options_set_schedule_max_constant_term(isl_ctx *ctx, int val);
22 int isl_options_get_schedule_max_constant_term(isl_ctx *ctx);
24 int isl_options_set_schedule_maximize_band_depth(isl_ctx *ctx, int val);
25 int isl_options_get_schedule_maximize_band_depth(isl_ctx *ctx);
27 int isl_options_set_schedule_outer_coincidence(isl_ctx *ctx, int val);
28 int isl_options_get_schedule_outer_coincidence(isl_ctx *ctx);
30 int isl_options_set_schedule_split_scaled(isl_ctx *ctx, int val);
31 int isl_options_get_schedule_split_scaled(isl_ctx *ctx);
33 int isl_options_set_schedule_separate_components(isl_ctx *ctx, int val);
34 int isl_options_get_schedule_separate_components(isl_ctx *ctx);
36 #define ISL_SCHEDULE_FUSE_MAX 0
37 #define ISL_SCHEDULE_FUSE_MIN 1
38 int isl_options_set_schedule_fuse(isl_ctx *ctx, int val);
39 int isl_options_get_schedule_fuse(isl_ctx *ctx);
41 __isl_give isl_schedule_constraints *isl_schedule_constraints_copy(
42 __isl_keep isl_schedule_constraints *sc);
43 __isl_give isl_schedule_constraints *isl_schedule_constraints_on_domain(
44 __isl_take isl_union_set *domain);
45 __isl_give isl_schedule_constraints *isl_schedule_constraints_set_validity(
46 __isl_take isl_schedule_constraints *sc,
47 __isl_take isl_union_map *validity);
48 __isl_give isl_schedule_constraints *isl_schedule_constraints_set_coincidence(
49 __isl_take isl_schedule_constraints *sc,
50 __isl_take isl_union_map *coincidence);
51 __isl_give isl_schedule_constraints *isl_schedule_constraints_set_proximity(
52 __isl_take isl_schedule_constraints *sc,
53 __isl_take isl_union_map *proximity);
54 __isl_give isl_schedule_constraints *
55 isl_schedule_constraints_set_conditional_validity(
56 __isl_take isl_schedule_constraints *sc,
57 __isl_take isl_union_map *condition,
58 __isl_take isl_union_map *validity);
59 __isl_null isl_schedule_constraints *isl_schedule_constraints_free(
60 __isl_take isl_schedule_constraints *sc);
62 isl_ctx *isl_schedule_constraints_get_ctx(
63 __isl_keep isl_schedule_constraints *sc);
65 void isl_schedule_constraints_dump(__isl_keep isl_schedule_constraints *sc);
67 __isl_give isl_schedule *isl_schedule_constraints_compute_schedule(
68 __isl_take isl_schedule_constraints *sc);
70 __isl_give isl_schedule *isl_union_set_compute_schedule(
71 __isl_take isl_union_set *domain,
72 __isl_take isl_union_map *validity,
73 __isl_take isl_union_map *proximity);
74 __isl_null isl_schedule *isl_schedule_free(__isl_take isl_schedule *sched);
75 __isl_give isl_union_map *isl_schedule_get_map(__isl_keep isl_schedule *sched);
77 isl_ctx *isl_schedule_get_ctx(__isl_keep isl_schedule *sched);
79 __isl_give isl_band_list *isl_schedule_get_band_forest(
80 __isl_keep isl_schedule *schedule);
82 __isl_give isl_printer *isl_printer_print_schedule(__isl_take isl_printer *p,
83 __isl_keep isl_schedule *schedule);
84 void isl_schedule_dump(__isl_keep isl_schedule *schedule);
86 int isl_schedule_foreach_band(__isl_keep isl_schedule *sched,
87 int (*fn)(__isl_keep isl_band *band, void *user), void *user);
89 #if defined(__cplusplus)
91 #endif
93 #endif