schedule.h 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201
  1. #ifndef ISL_SCHEDULE_H
  2. #define ISL_SCHEDULE_H
  3. #include <isl/union_set_type.h>
  4. #include <isl/union_map_type.h>
  5. #include <isl/schedule_type.h>
  6. #include <isl/aff_type.h>
  7. #include <isl/space_type.h>
  8. #include <isl/set_type.h>
  9. #include <isl/list.h>
  10. #include <isl/printer_type.h>
  11. #if defined(__cplusplus)
  12. extern "C" {
  13. #endif
  14. struct __isl_export isl_schedule_constraints;
  15. typedef struct isl_schedule_constraints isl_schedule_constraints;
  16. isl_stat isl_options_set_schedule_max_coefficient(isl_ctx *ctx, int val);
  17. int isl_options_get_schedule_max_coefficient(isl_ctx *ctx);
  18. isl_stat isl_options_set_schedule_max_constant_term(isl_ctx *ctx, int val);
  19. int isl_options_get_schedule_max_constant_term(isl_ctx *ctx);
  20. isl_stat isl_options_set_schedule_maximize_band_depth(isl_ctx *ctx, int val);
  21. int isl_options_get_schedule_maximize_band_depth(isl_ctx *ctx);
  22. isl_stat isl_options_set_schedule_maximize_coincidence(isl_ctx *ctx, int val);
  23. int isl_options_get_schedule_maximize_coincidence(isl_ctx *ctx);
  24. isl_stat isl_options_set_schedule_outer_coincidence(isl_ctx *ctx, int val);
  25. int isl_options_get_schedule_outer_coincidence(isl_ctx *ctx);
  26. isl_stat isl_options_set_schedule_split_scaled(isl_ctx *ctx, int val);
  27. int isl_options_get_schedule_split_scaled(isl_ctx *ctx);
  28. isl_stat isl_options_set_schedule_treat_coalescing(isl_ctx *ctx, int val);
  29. int isl_options_get_schedule_treat_coalescing(isl_ctx *ctx);
  30. isl_stat isl_options_set_schedule_separate_components(isl_ctx *ctx, int val);
  31. int isl_options_get_schedule_separate_components(isl_ctx *ctx);
  32. isl_stat isl_options_set_schedule_serialize_sccs(isl_ctx *ctx, int val);
  33. int isl_options_get_schedule_serialize_sccs(isl_ctx *ctx);
  34. isl_stat isl_options_set_schedule_whole_component(isl_ctx *ctx, int val);
  35. int isl_options_get_schedule_whole_component(isl_ctx *ctx);
  36. isl_stat isl_options_set_schedule_carry_self_first(isl_ctx *ctx, int val);
  37. int isl_options_get_schedule_carry_self_first(isl_ctx *ctx);
  38. __isl_give isl_schedule_constraints *isl_schedule_constraints_copy(
  39. __isl_keep isl_schedule_constraints *sc);
  40. __isl_export
  41. __isl_give isl_schedule_constraints *isl_schedule_constraints_on_domain(
  42. __isl_take isl_union_set *domain);
  43. __isl_export
  44. __isl_give isl_schedule_constraints *isl_schedule_constraints_set_context(
  45. __isl_take isl_schedule_constraints *sc, __isl_take isl_set *context);
  46. __isl_export
  47. __isl_give isl_schedule_constraints *isl_schedule_constraints_set_validity(
  48. __isl_take isl_schedule_constraints *sc,
  49. __isl_take isl_union_map *validity);
  50. __isl_export
  51. __isl_give isl_schedule_constraints *isl_schedule_constraints_set_coincidence(
  52. __isl_take isl_schedule_constraints *sc,
  53. __isl_take isl_union_map *coincidence);
  54. __isl_export
  55. __isl_give isl_schedule_constraints *isl_schedule_constraints_set_proximity(
  56. __isl_take isl_schedule_constraints *sc,
  57. __isl_take isl_union_map *proximity);
  58. __isl_export
  59. __isl_give isl_schedule_constraints *
  60. isl_schedule_constraints_set_conditional_validity(
  61. __isl_take isl_schedule_constraints *sc,
  62. __isl_take isl_union_map *condition,
  63. __isl_take isl_union_map *validity);
  64. __isl_null isl_schedule_constraints *isl_schedule_constraints_free(
  65. __isl_take isl_schedule_constraints *sc);
  66. isl_ctx *isl_schedule_constraints_get_ctx(
  67. __isl_keep isl_schedule_constraints *sc);
  68. __isl_export
  69. __isl_give isl_union_set *isl_schedule_constraints_get_domain(
  70. __isl_keep isl_schedule_constraints *sc);
  71. __isl_export
  72. __isl_give isl_set *isl_schedule_constraints_get_context(
  73. __isl_keep isl_schedule_constraints *sc);
  74. __isl_export
  75. __isl_give isl_union_map *isl_schedule_constraints_get_validity(
  76. __isl_keep isl_schedule_constraints *sc);
  77. __isl_export
  78. __isl_give isl_union_map *isl_schedule_constraints_get_coincidence(
  79. __isl_keep isl_schedule_constraints *sc);
  80. __isl_export
  81. __isl_give isl_union_map *isl_schedule_constraints_get_proximity(
  82. __isl_keep isl_schedule_constraints *sc);
  83. __isl_export
  84. __isl_give isl_union_map *isl_schedule_constraints_get_conditional_validity(
  85. __isl_keep isl_schedule_constraints *sc);
  86. __isl_export
  87. __isl_give isl_union_map *
  88. isl_schedule_constraints_get_conditional_validity_condition(
  89. __isl_keep isl_schedule_constraints *sc);
  90. __isl_give isl_schedule_constraints *isl_schedule_constraints_apply(
  91. __isl_take isl_schedule_constraints *sc,
  92. __isl_take isl_union_map *umap);
  93. __isl_constructor
  94. __isl_give isl_schedule_constraints *isl_schedule_constraints_read_from_str(
  95. isl_ctx *ctx, const char *str);
  96. __isl_give isl_schedule_constraints *isl_schedule_constraints_read_from_file(
  97. isl_ctx *ctx, FILE *input);
  98. __isl_give isl_printer *isl_printer_print_schedule_constraints(
  99. __isl_take isl_printer *p, __isl_keep isl_schedule_constraints *sc);
  100. void isl_schedule_constraints_dump(__isl_keep isl_schedule_constraints *sc);
  101. __isl_give char *isl_schedule_constraints_to_str(
  102. __isl_keep isl_schedule_constraints *sc);
  103. __isl_export
  104. __isl_give isl_schedule *isl_schedule_constraints_compute_schedule(
  105. __isl_take isl_schedule_constraints *sc);
  106. __isl_give isl_schedule *isl_union_set_compute_schedule(
  107. __isl_take isl_union_set *domain,
  108. __isl_take isl_union_map *validity,
  109. __isl_take isl_union_map *proximity);
  110. __isl_give isl_schedule *isl_schedule_empty(__isl_take isl_space *space);
  111. __isl_export
  112. __isl_give isl_schedule *isl_schedule_from_domain(
  113. __isl_take isl_union_set *domain);
  114. __isl_give isl_schedule *isl_schedule_copy(__isl_keep isl_schedule *sched);
  115. __isl_null isl_schedule *isl_schedule_free(__isl_take isl_schedule *sched);
  116. __isl_export
  117. __isl_give isl_union_map *isl_schedule_get_map(__isl_keep isl_schedule *sched);
  118. isl_ctx *isl_schedule_get_ctx(__isl_keep isl_schedule *sched);
  119. isl_bool isl_schedule_plain_is_equal(__isl_keep isl_schedule *schedule1,
  120. __isl_keep isl_schedule *schedule2);
  121. __isl_export
  122. __isl_give isl_schedule_node *isl_schedule_get_root(
  123. __isl_keep isl_schedule *schedule);
  124. __isl_export
  125. __isl_give isl_union_set *isl_schedule_get_domain(
  126. __isl_keep isl_schedule *schedule);
  127. isl_stat isl_schedule_foreach_schedule_node_top_down(
  128. __isl_keep isl_schedule *sched,
  129. isl_bool (*fn)(__isl_keep isl_schedule_node *node, void *user),
  130. void *user);
  131. __isl_give isl_schedule *isl_schedule_map_schedule_node_bottom_up(
  132. __isl_take isl_schedule *schedule,
  133. __isl_give isl_schedule_node *(*fn)(
  134. __isl_take isl_schedule_node *node, void *user), void *user);
  135. __isl_give isl_schedule *isl_schedule_insert_context(
  136. __isl_take isl_schedule *schedule, __isl_take isl_set *context);
  137. __isl_give isl_schedule *isl_schedule_insert_partial_schedule(
  138. __isl_take isl_schedule *schedule,
  139. __isl_take isl_multi_union_pw_aff *partial);
  140. __isl_give isl_schedule *isl_schedule_insert_guard(
  141. __isl_take isl_schedule *schedule, __isl_take isl_set *guard);
  142. __isl_give isl_schedule *isl_schedule_sequence(
  143. __isl_take isl_schedule *schedule1, __isl_take isl_schedule *schedule2);
  144. __isl_give isl_schedule *isl_schedule_set(
  145. __isl_take isl_schedule *schedule1, __isl_take isl_schedule *schedule2);
  146. __isl_give isl_schedule *isl_schedule_intersect_domain(
  147. __isl_take isl_schedule *schedule, __isl_take isl_union_set *domain);
  148. __isl_give isl_schedule *isl_schedule_gist_domain_params(
  149. __isl_take isl_schedule *schedule, __isl_take isl_set *context);
  150. __isl_give isl_schedule *isl_schedule_reset_user(
  151. __isl_take isl_schedule *schedule);
  152. __isl_give isl_schedule *isl_schedule_align_params(
  153. __isl_take isl_schedule *schedule, __isl_take isl_space *space);
  154. __isl_overload
  155. __isl_give isl_schedule *isl_schedule_pullback_union_pw_multi_aff(
  156. __isl_take isl_schedule *schedule,
  157. __isl_take isl_union_pw_multi_aff *upma);
  158. __isl_give isl_schedule *isl_schedule_expand(__isl_take isl_schedule *schedule,
  159. __isl_take isl_union_pw_multi_aff *contraction,
  160. __isl_take isl_schedule *expansion);
  161. __isl_give isl_schedule *isl_schedule_read_from_file(isl_ctx *ctx, FILE *input);
  162. __isl_constructor
  163. __isl_give isl_schedule *isl_schedule_read_from_str(isl_ctx *ctx,
  164. const char *str);
  165. __isl_give isl_printer *isl_printer_print_schedule(__isl_take isl_printer *p,
  166. __isl_keep isl_schedule *schedule);
  167. void isl_schedule_dump(__isl_keep isl_schedule *schedule);
  168. __isl_give char *isl_schedule_to_str(__isl_keep isl_schedule *schedule);
  169. #if defined(__cplusplus)
  170. }
  171. #endif
  172. #endif