File indexing completed on 2026-05-10 08:48:19
0001 #ifndef ISL_SCHEDULE_H
0002 #define ISL_SCHEDULE_H
0003
0004 #include <isl/union_set_type.h>
0005 #include <isl/union_map_type.h>
0006 #include <isl/schedule_type.h>
0007 #include <isl/aff_type.h>
0008 #include <isl/space_type.h>
0009 #include <isl/set_type.h>
0010 #include <isl/list.h>
0011 #include <isl/printer_type.h>
0012
0013 #if defined(__cplusplus)
0014 extern "C" {
0015 #endif
0016
0017 struct __isl_export isl_schedule_constraints;
0018 typedef struct isl_schedule_constraints isl_schedule_constraints;
0019
0020 isl_stat isl_options_set_schedule_max_coefficient(isl_ctx *ctx, int val);
0021 int isl_options_get_schedule_max_coefficient(isl_ctx *ctx);
0022
0023 isl_stat isl_options_set_schedule_max_constant_term(isl_ctx *ctx, int val);
0024 int isl_options_get_schedule_max_constant_term(isl_ctx *ctx);
0025
0026 isl_stat isl_options_set_schedule_maximize_band_depth(isl_ctx *ctx, int val);
0027 int isl_options_get_schedule_maximize_band_depth(isl_ctx *ctx);
0028
0029 isl_stat isl_options_set_schedule_maximize_coincidence(isl_ctx *ctx, int val);
0030 int isl_options_get_schedule_maximize_coincidence(isl_ctx *ctx);
0031
0032 isl_stat isl_options_set_schedule_outer_coincidence(isl_ctx *ctx, int val);
0033 int isl_options_get_schedule_outer_coincidence(isl_ctx *ctx);
0034
0035 isl_stat isl_options_set_schedule_split_scaled(isl_ctx *ctx, int val);
0036 int isl_options_get_schedule_split_scaled(isl_ctx *ctx);
0037
0038 isl_stat isl_options_set_schedule_treat_coalescing(isl_ctx *ctx, int val);
0039 int isl_options_get_schedule_treat_coalescing(isl_ctx *ctx);
0040
0041 isl_stat isl_options_set_schedule_separate_components(isl_ctx *ctx, int val);
0042 int isl_options_get_schedule_separate_components(isl_ctx *ctx);
0043
0044 isl_stat isl_options_set_schedule_serialize_sccs(isl_ctx *ctx, int val);
0045 int isl_options_get_schedule_serialize_sccs(isl_ctx *ctx);
0046
0047 isl_stat isl_options_set_schedule_whole_component(isl_ctx *ctx, int val);
0048 int isl_options_get_schedule_whole_component(isl_ctx *ctx);
0049
0050 isl_stat isl_options_set_schedule_carry_self_first(isl_ctx *ctx, int val);
0051 int isl_options_get_schedule_carry_self_first(isl_ctx *ctx);
0052
0053 __isl_give isl_schedule_constraints *isl_schedule_constraints_copy(
0054 __isl_keep isl_schedule_constraints *sc);
0055 __isl_export
0056 __isl_give isl_schedule_constraints *isl_schedule_constraints_on_domain(
0057 __isl_take isl_union_set *domain);
0058 __isl_export
0059 __isl_give isl_schedule_constraints *isl_schedule_constraints_set_context(
0060 __isl_take isl_schedule_constraints *sc, __isl_take isl_set *context);
0061 __isl_export
0062 __isl_give isl_schedule_constraints *isl_schedule_constraints_set_validity(
0063 __isl_take isl_schedule_constraints *sc,
0064 __isl_take isl_union_map *validity);
0065 __isl_export
0066 __isl_give isl_schedule_constraints *isl_schedule_constraints_set_coincidence(
0067 __isl_take isl_schedule_constraints *sc,
0068 __isl_take isl_union_map *coincidence);
0069 __isl_export
0070 __isl_give isl_schedule_constraints *isl_schedule_constraints_set_proximity(
0071 __isl_take isl_schedule_constraints *sc,
0072 __isl_take isl_union_map *proximity);
0073 __isl_export
0074 __isl_give isl_schedule_constraints *
0075 isl_schedule_constraints_set_conditional_validity(
0076 __isl_take isl_schedule_constraints *sc,
0077 __isl_take isl_union_map *condition,
0078 __isl_take isl_union_map *validity);
0079 __isl_null isl_schedule_constraints *isl_schedule_constraints_free(
0080 __isl_take isl_schedule_constraints *sc);
0081
0082 isl_ctx *isl_schedule_constraints_get_ctx(
0083 __isl_keep isl_schedule_constraints *sc);
0084 __isl_export
0085 __isl_give isl_union_set *isl_schedule_constraints_get_domain(
0086 __isl_keep isl_schedule_constraints *sc);
0087 __isl_export
0088 __isl_give isl_set *isl_schedule_constraints_get_context(
0089 __isl_keep isl_schedule_constraints *sc);
0090 __isl_export
0091 __isl_give isl_union_map *isl_schedule_constraints_get_validity(
0092 __isl_keep isl_schedule_constraints *sc);
0093 __isl_export
0094 __isl_give isl_union_map *isl_schedule_constraints_get_coincidence(
0095 __isl_keep isl_schedule_constraints *sc);
0096 __isl_export
0097 __isl_give isl_union_map *isl_schedule_constraints_get_proximity(
0098 __isl_keep isl_schedule_constraints *sc);
0099 __isl_export
0100 __isl_give isl_union_map *isl_schedule_constraints_get_conditional_validity(
0101 __isl_keep isl_schedule_constraints *sc);
0102 __isl_export
0103 __isl_give isl_union_map *
0104 isl_schedule_constraints_get_conditional_validity_condition(
0105 __isl_keep isl_schedule_constraints *sc);
0106
0107 __isl_give isl_schedule_constraints *isl_schedule_constraints_apply(
0108 __isl_take isl_schedule_constraints *sc,
0109 __isl_take isl_union_map *umap);
0110
0111 __isl_constructor
0112 __isl_give isl_schedule_constraints *isl_schedule_constraints_read_from_str(
0113 isl_ctx *ctx, const char *str);
0114 __isl_give isl_schedule_constraints *isl_schedule_constraints_read_from_file(
0115 isl_ctx *ctx, FILE *input);
0116 __isl_give isl_printer *isl_printer_print_schedule_constraints(
0117 __isl_take isl_printer *p, __isl_keep isl_schedule_constraints *sc);
0118 void isl_schedule_constraints_dump(__isl_keep isl_schedule_constraints *sc);
0119 __isl_give char *isl_schedule_constraints_to_str(
0120 __isl_keep isl_schedule_constraints *sc);
0121
0122 __isl_export
0123 __isl_give isl_schedule *isl_schedule_constraints_compute_schedule(
0124 __isl_take isl_schedule_constraints *sc);
0125
0126 __isl_give isl_schedule *isl_union_set_compute_schedule(
0127 __isl_take isl_union_set *domain,
0128 __isl_take isl_union_map *validity,
0129 __isl_take isl_union_map *proximity);
0130
0131 __isl_give isl_schedule *isl_schedule_empty(__isl_take isl_space *space);
0132 __isl_export
0133 __isl_give isl_schedule *isl_schedule_from_domain(
0134 __isl_take isl_union_set *domain);
0135 __isl_give isl_schedule *isl_schedule_copy(__isl_keep isl_schedule *sched);
0136 __isl_null isl_schedule *isl_schedule_free(__isl_take isl_schedule *sched);
0137 __isl_export
0138 __isl_give isl_union_map *isl_schedule_get_map(__isl_keep isl_schedule *sched);
0139
0140 isl_ctx *isl_schedule_get_ctx(__isl_keep isl_schedule *sched);
0141 isl_bool isl_schedule_plain_is_equal(__isl_keep isl_schedule *schedule1,
0142 __isl_keep isl_schedule *schedule2);
0143
0144 __isl_export
0145 __isl_give isl_schedule_node *isl_schedule_get_root(
0146 __isl_keep isl_schedule *schedule);
0147 __isl_export
0148 __isl_give isl_union_set *isl_schedule_get_domain(
0149 __isl_keep isl_schedule *schedule);
0150
0151 isl_stat isl_schedule_foreach_schedule_node_top_down(
0152 __isl_keep isl_schedule *sched,
0153 isl_bool (*fn)(__isl_keep isl_schedule_node *node, void *user),
0154 void *user);
0155 __isl_give isl_schedule *isl_schedule_map_schedule_node_bottom_up(
0156 __isl_take isl_schedule *schedule,
0157 __isl_give isl_schedule_node *(*fn)(
0158 __isl_take isl_schedule_node *node, void *user), void *user);
0159
0160 __isl_give isl_schedule *isl_schedule_insert_context(
0161 __isl_take isl_schedule *schedule, __isl_take isl_set *context);
0162 __isl_give isl_schedule *isl_schedule_insert_partial_schedule(
0163 __isl_take isl_schedule *schedule,
0164 __isl_take isl_multi_union_pw_aff *partial);
0165 __isl_give isl_schedule *isl_schedule_insert_guard(
0166 __isl_take isl_schedule *schedule, __isl_take isl_set *guard);
0167 __isl_give isl_schedule *isl_schedule_sequence(
0168 __isl_take isl_schedule *schedule1, __isl_take isl_schedule *schedule2);
0169 __isl_give isl_schedule *isl_schedule_set(
0170 __isl_take isl_schedule *schedule1, __isl_take isl_schedule *schedule2);
0171 __isl_give isl_schedule *isl_schedule_intersect_domain(
0172 __isl_take isl_schedule *schedule, __isl_take isl_union_set *domain);
0173 __isl_give isl_schedule *isl_schedule_gist_domain_params(
0174 __isl_take isl_schedule *schedule, __isl_take isl_set *context);
0175
0176 __isl_give isl_schedule *isl_schedule_reset_user(
0177 __isl_take isl_schedule *schedule);
0178 __isl_give isl_schedule *isl_schedule_align_params(
0179 __isl_take isl_schedule *schedule, __isl_take isl_space *space);
0180 __isl_overload
0181 __isl_give isl_schedule *isl_schedule_pullback_union_pw_multi_aff(
0182 __isl_take isl_schedule *schedule,
0183 __isl_take isl_union_pw_multi_aff *upma);
0184 __isl_give isl_schedule *isl_schedule_expand(__isl_take isl_schedule *schedule,
0185 __isl_take isl_union_pw_multi_aff *contraction,
0186 __isl_take isl_schedule *expansion);
0187
0188 __isl_give isl_schedule *isl_schedule_read_from_file(isl_ctx *ctx, FILE *input);
0189 __isl_constructor
0190 __isl_give isl_schedule *isl_schedule_read_from_str(isl_ctx *ctx,
0191 const char *str);
0192 __isl_give isl_printer *isl_printer_print_schedule(__isl_take isl_printer *p,
0193 __isl_keep isl_schedule *schedule);
0194 void isl_schedule_dump(__isl_keep isl_schedule *schedule);
0195 __isl_give char *isl_schedule_to_str(__isl_keep isl_schedule *schedule);
0196
0197 #if defined(__cplusplus)
0198 }
0199 #endif
0200
0201 #endif