add isl_aff_ge_basic_set
[isl.git] / include / isl / flow.h
blob9606fe970460bb8391af238c8d3267d4931e1d3b
1 #ifndef ISL_FLOW_H
2 #define ISL_FLOW_H
4 #include <isl/set_type.h>
5 #include <isl/map_type.h>
6 #include <isl/union_set.h>
7 #include <isl/union_map.h>
9 #if defined(__cplusplus)
10 extern "C" {
11 #endif
13 /* Let n (>= 0) be the number of iterators shared by first and second.
14 * If first precedes second textually return 2 * n + 1,
15 * otherwise return 2 * n.
17 typedef int (*isl_access_level_before)(void *first, void *second);
19 struct isl_access_info;
20 typedef struct isl_access_info isl_access_info;
21 struct isl_flow;
22 typedef struct isl_flow isl_flow;
24 __isl_give isl_access_info *isl_access_info_alloc(__isl_take isl_map *sink,
25 void *sink_user, isl_access_level_before fn, int max_source);
26 __isl_give isl_access_info *isl_access_info_add_source(
27 __isl_take isl_access_info *acc, __isl_take isl_map *source,
28 int must, void *source_user);
29 void isl_access_info_free(__isl_take isl_access_info *acc);
30 __isl_give isl_flow *isl_access_info_compute_flow(__isl_take isl_access_info *acc);
31 int isl_flow_foreach(__isl_keep isl_flow *deps,
32 int (*fn)(__isl_take isl_map *dep, int must, void *dep_user, void *user),
33 void *user);
34 __isl_give isl_map *isl_flow_get_no_source(__isl_keep isl_flow *deps, int must);
35 void isl_flow_free(__isl_take isl_flow *deps);
37 int isl_union_map_compute_flow(__isl_take isl_union_map *sink,
38 __isl_take isl_union_map *must_source,
39 __isl_take isl_union_map *may_source,
40 __isl_take isl_union_map *schedule,
41 __isl_give isl_union_map **must_dep, __isl_give isl_union_map **may_dep,
42 __isl_give isl_union_map **must_no_source,
43 __isl_give isl_union_map **may_no_source);
45 #if defined(__cplusplus)
47 #endif
49 #endif