source: Daodan/MSYS2/mingw32/include/isl/ast_build.h@ 1175

Last change on this file since 1175 was 1166, checked in by rossy, 3 years ago

Daodan: Replace MinGW build env with an up-to-date MSYS2 env

File size: 5.0 KB
Line 
1#ifndef ISL_AST_BUILD_H
2#define ISL_AST_BUILD_H
3
4#include <isl/ctx.h>
5#include <isl/set.h>
6#include <isl/ast.h>
7#include <isl/schedule.h>
8
9#if defined(__cplusplus)
10extern "C" {
11#endif
12
13struct __isl_export isl_ast_build;
14typedef struct isl_ast_build isl_ast_build;
15
16
17isl_stat isl_options_set_ast_build_atomic_upper_bound(isl_ctx *ctx, int val);
18int isl_options_get_ast_build_atomic_upper_bound(isl_ctx *ctx);
19
20isl_stat isl_options_set_ast_build_prefer_pdiv(isl_ctx *ctx, int val);
21int isl_options_get_ast_build_prefer_pdiv(isl_ctx *ctx);
22
23isl_stat isl_options_set_ast_build_detect_min_max(isl_ctx *ctx, int val);
24int isl_options_get_ast_build_detect_min_max(isl_ctx *ctx);
25
26isl_stat isl_options_set_ast_build_exploit_nested_bounds(isl_ctx *ctx, int val);
27int isl_options_get_ast_build_exploit_nested_bounds(isl_ctx *ctx);
28
29isl_stat isl_options_set_ast_build_group_coscheduled(isl_ctx *ctx, int val);
30int isl_options_get_ast_build_group_coscheduled(isl_ctx *ctx);
31
32#define ISL_AST_BUILD_SEPARATION_BOUNDS_EXPLICIT 0
33#define ISL_AST_BUILD_SEPARATION_BOUNDS_IMPLICIT 1
34isl_stat isl_options_set_ast_build_separation_bounds(isl_ctx *ctx, int val);
35int isl_options_get_ast_build_separation_bounds(isl_ctx *ctx);
36
37isl_stat isl_options_set_ast_build_scale_strides(isl_ctx *ctx, int val);
38int isl_options_get_ast_build_scale_strides(isl_ctx *ctx);
39
40isl_stat isl_options_set_ast_build_allow_else(isl_ctx *ctx, int val);
41int isl_options_get_ast_build_allow_else(isl_ctx *ctx);
42
43isl_stat isl_options_set_ast_build_allow_or(isl_ctx *ctx, int val);
44int isl_options_get_ast_build_allow_or(isl_ctx *ctx);
45
46isl_ctx *isl_ast_build_get_ctx(__isl_keep isl_ast_build *build);
47
48__isl_constructor
49__isl_give isl_ast_build *isl_ast_build_alloc(isl_ctx *ctx);
50__isl_export
51__isl_give isl_ast_build *isl_ast_build_from_context(__isl_take isl_set *set);
52
53__isl_give isl_space *isl_ast_build_get_schedule_space(
54 __isl_keep isl_ast_build *build);
55__isl_export
56__isl_give isl_union_map *isl_ast_build_get_schedule(
57 __isl_keep isl_ast_build *build);
58
59__isl_give isl_ast_build *isl_ast_build_restrict(
60 __isl_take isl_ast_build *build, __isl_take isl_set *set);
61
62__isl_give isl_ast_build *isl_ast_build_copy(
63 __isl_keep isl_ast_build *build);
64__isl_null isl_ast_build *isl_ast_build_free(
65 __isl_take isl_ast_build *build);
66
67__isl_give isl_ast_build *isl_ast_build_set_options(
68 __isl_take isl_ast_build *build,
69 __isl_take isl_union_map *options);
70__isl_give isl_ast_build *isl_ast_build_set_iterators(
71 __isl_take isl_ast_build *build,
72 __isl_take isl_id_list *iterators);
73__isl_export
74__isl_give isl_ast_build *isl_ast_build_set_at_each_domain(
75 __isl_take isl_ast_build *build,
76 __isl_give isl_ast_node *(*fn)(__isl_take isl_ast_node *node,
77 __isl_keep isl_ast_build *build, void *user), void *user);
78__isl_give isl_ast_build *isl_ast_build_set_before_each_for(
79 __isl_take isl_ast_build *build,
80 __isl_give isl_id *(*fn)(__isl_keep isl_ast_build *build,
81 void *user), void *user);
82__isl_give isl_ast_build *isl_ast_build_set_after_each_for(
83 __isl_take isl_ast_build *build,
84 __isl_give isl_ast_node *(*fn)(__isl_take isl_ast_node *node,
85 __isl_keep isl_ast_build *build, void *user), void *user);
86__isl_give isl_ast_build *isl_ast_build_set_before_each_mark(
87 __isl_take isl_ast_build *build,
88 isl_stat (*fn)(__isl_keep isl_id *mark, __isl_keep isl_ast_build *build,
89 void *user), void *user);
90__isl_give isl_ast_build *isl_ast_build_set_after_each_mark(
91 __isl_take isl_ast_build *build,
92 __isl_give isl_ast_node *(*fn)(__isl_take isl_ast_node *node,
93 __isl_keep isl_ast_build *build, void *user), void *user);
94__isl_give isl_ast_build *isl_ast_build_set_create_leaf(
95 __isl_take isl_ast_build *build,
96 __isl_give isl_ast_node *(*fn)(__isl_take isl_ast_build *build,
97 void *user), void *user);
98
99__isl_overload
100__isl_give isl_ast_expr *isl_ast_build_expr_from_set(
101 __isl_keep isl_ast_build *build, __isl_take isl_set *set);
102__isl_overload
103__isl_give isl_ast_expr *isl_ast_build_expr_from_pw_aff(
104 __isl_keep isl_ast_build *build, __isl_take isl_pw_aff *pa);
105__isl_overload
106__isl_give isl_ast_expr *isl_ast_build_access_from_pw_multi_aff(
107 __isl_keep isl_ast_build *build, __isl_take isl_pw_multi_aff *pma);
108__isl_overload
109__isl_give isl_ast_expr *isl_ast_build_access_from_multi_pw_aff(
110 __isl_keep isl_ast_build *build, __isl_take isl_multi_pw_aff *mpa);
111__isl_overload
112__isl_give isl_ast_expr *isl_ast_build_call_from_pw_multi_aff(
113 __isl_keep isl_ast_build *build, __isl_take isl_pw_multi_aff *pma);
114__isl_overload
115__isl_give isl_ast_expr *isl_ast_build_call_from_multi_pw_aff(
116 __isl_keep isl_ast_build *build, __isl_take isl_multi_pw_aff *mpa);
117
118__isl_overload
119__isl_give isl_ast_node *isl_ast_build_node_from_schedule(
120 __isl_keep isl_ast_build *build, __isl_take isl_schedule *schedule);
121__isl_export
122__isl_give isl_ast_node *isl_ast_build_node_from_schedule_map(
123 __isl_keep isl_ast_build *build, __isl_take isl_union_map *schedule);
124__isl_give isl_ast_node *isl_ast_build_ast_from_schedule(
125 __isl_keep isl_ast_build *build, __isl_take isl_union_map *schedule);
126
127#if defined(__cplusplus)
128}
129#endif
130
131#endif
Note: See TracBrowser for help on using the repository browser.