Polly 20.0.0git
flow.h
Go to the documentation of this file.
1#ifndef ISL_FLOW_H
2#define ISL_FLOW_H
3
4#include <stdio.h>
5
6#include <isl/set_type.h>
7#include <isl/map_type.h>
10#include <isl/schedule.h>
11#include <isl/printer.h>
12
13#if defined(__cplusplus)
14extern "C" {
15#endif
16
17/* Let n (>= 0) be the number of iterators shared by first and second.
18 * If first precedes second textually return 2 * n + 1,
19 * otherwise return 2 * n.
20 */
21typedef int (*isl_access_level_before)(void *first, void *second);
22
23struct isl_restriction;
25
29 __isl_take isl_map *source_map);
31 __isl_take isl_map *source_map);
33 __isl_take isl_set *source_restr, __isl_take isl_set *sink_restr);
35 __isl_take isl_set *source_restr);
36
38
39typedef __isl_give isl_restriction *(*isl_access_restrict)(
41 void *source_user, void *user);
42
43struct isl_access_info;
45struct isl_flow;
46typedef struct isl_flow isl_flow;
47
49 void *sink_user, isl_access_level_before fn, int max_source);
54 int must, void *source_user);
57
59
62 isl_stat (*fn)(__isl_take isl_map *dep, int must, void *dep_user,
63 void *user),
64 void *user);
67
69
74
81 __isl_take isl_union_map *must_source);
85 __isl_take isl_union_map *may_source);
97 __isl_take isl_union_map *schedule_map);
102
105
107 isl_ctx *ctx, FILE *input);
112
116
139
143
145 __isl_take isl_union_map *must_source,
146 __isl_take isl_union_map *may_source,
151
152#if defined(__cplusplus)
153}
154#endif
155
156#endif
#define __isl_export
Definition: ctx.h:31
#define __isl_take
Definition: ctx.h:22
isl_stat
Definition: ctx.h:84
#define __isl_constructor
Definition: ctx.h:37
#define __isl_give
Definition: ctx.h:19
#define __isl_null
Definition: ctx.h:28
#define __isl_keep
Definition: ctx.h:25
__isl_export __isl_give isl_union_access_info * isl_union_access_info_set_schedule(__isl_take isl_union_access_info *access, __isl_take isl_schedule *schedule)
Definition: isl_flow.c:1706
isl_stat isl_flow_foreach(__isl_keep isl_flow *deps, isl_stat(*fn)(__isl_take isl_map *dep, int must, void *dep_user, void *user), void *user)
Definition: isl_flow.c:488
__isl_null isl_union_flow * isl_union_flow_free(__isl_take isl_union_flow *flow)
Definition: isl_flow.c:2108
__isl_give isl_flow * isl_access_info_compute_flow(__isl_take isl_access_info *acc)
Definition: isl_flow.c:1371
__isl_export __isl_give isl_union_map * isl_union_flow_get_full_must_dependence(__isl_keep isl_union_flow *flow)
Definition: isl_flow.c:2137
__isl_give isl_map * isl_flow_get_no_source(__isl_keep isl_flow *deps, int must)
Definition: isl_flow.c:511
__isl_null isl_union_access_info * isl_union_access_info_free(__isl_take isl_union_access_info *access)
Definition: isl_flow.c:1512
__isl_export __isl_give isl_union_access_info * isl_union_access_info_set_may_source(__isl_take isl_union_access_info *access, __isl_take isl_union_map *may_source)
Definition: isl_flow.c:1640
isl_ctx * isl_union_access_info_get_ctx(__isl_keep isl_union_access_info *access)
Definition: isl_flow.c:1531
__isl_export __isl_give isl_union_map * isl_union_flow_get_full_may_dependence(__isl_keep isl_union_flow *flow)
Definition: isl_flow.c:2148
__isl_give isl_restriction * isl_restriction_output(__isl_take isl_set *source_restr)
Definition: isl_flow.c:115
__isl_export __isl_give isl_union_access_info * isl_union_access_info_set_schedule_map(__isl_take isl_union_access_info *access, __isl_take isl_union_map *schedule_map)
Definition: isl_flow.c:1727
__isl_give isl_restriction *(* isl_access_restrict)(__isl_keep isl_map *source_map, __isl_keep isl_set *sink, void *source_user, void *user)
Definition: flow.h:39
__isl_give char * isl_union_access_info_to_str(__isl_keep isl_union_access_info *access)
Definition: isl_flow.c:1852
__isl_null isl_restriction * isl_restriction_free(__isl_take isl_restriction *restr)
Definition: isl_flow.c:138
__isl_give isl_restriction * isl_restriction_input(__isl_take isl_set *source_restr, __isl_take isl_set *sink_restr)
Definition: isl_flow.c:87
__isl_give isl_printer * isl_printer_print_union_flow(__isl_take isl_printer *p, __isl_keep isl_union_flow *flow)
Definition: isl_flow.c:3241
__isl_give isl_restriction * isl_restriction_empty(__isl_take isl_map *source_map)
Definition: isl_flow.c:78
__isl_give isl_union_flow * isl_union_flow_copy(__isl_keep isl_union_flow *flow)
Definition: isl_flow.c:2265
__isl_export __isl_give isl_union_access_info * isl_union_access_info_set_must_source(__isl_take isl_union_access_info *access, __isl_take isl_union_map *must_source)
Definition: isl_flow.c:1630
isl_ctx * isl_restriction_get_ctx(__isl_keep isl_restriction *restr)
Definition: isl_flow.c:150
__isl_give isl_union_access_info * isl_union_access_info_copy(__isl_keep isl_union_access_info *access)
Definition: isl_flow.c:1745
__isl_constructor __isl_give isl_union_access_info * isl_union_access_info_from_sink(__isl_take isl_union_map *sink)
Definition: isl_flow.c:1590
__isl_export __isl_give isl_union_access_info * isl_union_access_info_set_kill(__isl_take isl_union_access_info *access, __isl_take isl_union_map *kill)
Definition: isl_flow.c:1650
__isl_give isl_printer * isl_printer_print_union_access_info(__isl_take isl_printer *p, __isl_keep isl_union_access_info *access)
Definition: isl_flow.c:1824
__isl_give char * isl_union_flow_to_str(__isl_keep isl_union_flow *flow)
Definition: isl_flow.c:3269
__isl_null isl_access_info * isl_access_info_free(__isl_take isl_access_info *acc)
Definition: isl_flow.c:247
__isl_export __isl_give isl_union_flow * isl_union_access_info_compute_flow(__isl_take isl_union_access_info *access)
Definition: isl_flow.c:3206
int isl_union_map_compute_flow(__isl_take isl_union_map *sink, __isl_take isl_union_map *must_source, __isl_take isl_union_map *may_source, __isl_take isl_union_map *schedule, __isl_give isl_union_map **must_dep, __isl_give isl_union_map **may_dep, __isl_give isl_union_map **must_no_source, __isl_give isl_union_map **may_no_source)
Definition: isl_flow.c:3302
__isl_export __isl_give isl_union_map * isl_union_flow_get_may_no_source(__isl_keep isl_union_flow *flow)
Definition: isl_flow.c:2210
__isl_give isl_access_info * isl_access_info_set_restrict(__isl_take isl_access_info *acc, isl_access_restrict fn, void *user)
Definition: isl_flow.c:267
__isl_export __isl_give isl_union_map * isl_union_flow_get_must_dependence(__isl_keep isl_union_flow *flow)
Definition: isl_flow.c:2159
__isl_give isl_access_info * isl_access_info_add_source(__isl_take isl_access_info *acc, __isl_take isl_map *source, int must, void *source_user)
Definition: isl_flow.c:283
__isl_give isl_restriction * isl_restriction_none(__isl_take isl_map *source_map)
Definition: isl_flow.c:71
__isl_give isl_access_info * isl_access_info_alloc(__isl_take isl_map *sink, void *sink_user, isl_access_level_before fn, int max_source)
Definition: isl_flow.c:214
int(* isl_access_level_before)(void *first, void *second)
Definition: flow.h:21
__isl_export __isl_give isl_union_map * isl_union_flow_get_may_dependence(__isl_keep isl_union_flow *flow)
Definition: isl_flow.c:2173
isl_ctx * isl_union_flow_get_ctx(__isl_keep isl_union_flow *flow)
Definition: isl_flow.c:2101
isl_ctx * isl_access_info_get_ctx(__isl_keep isl_access_info *acc)
Definition: isl_flow.c:262
isl_ctx * isl_flow_get_ctx(__isl_keep isl_flow *deps)
Definition: isl_flow.c:540
__isl_null isl_flow * isl_flow_free(__isl_take isl_flow *deps)
Definition: isl_flow.c:522
__isl_give isl_union_access_info * isl_union_access_info_read_from_file(isl_ctx *ctx, FILE *input)
Definition: isl_flow.c:1974
__isl_export __isl_give isl_union_map * isl_union_flow_get_must_no_source(__isl_keep isl_union_flow *flow)
Definition: isl_flow.c:2198
isl_stat isl_stat(* fn)(__isl_take ISL_KEY *key, __isl_take ISL_VAL *val, void *user)
Definition: hmap.h:37
isl_stat isl_stat(*) void user)
Definition: hmap.h:39
const char * schedule
Definition: isl_test.c:10697
const char * p
Definition: isl_test.c:8643
const char * flow
Definition: isl_test.c:4845
struct isl_set isl_set
Definition: map_type.h:26
struct isl_labeled_map * dep
Definition: isl_flow.c:208
isl_set * sink
Definition: isl_flow.c:41
isl_union_map * may_dep
Definition: isl_flow.c:2094
isl_union_map * must_dep
Definition: isl_flow.c:2093
isl_union_map * must_no_source
Definition: isl_flow.c:2095
isl_union_map * may_no_source
Definition: isl_flow.c:2096