1 #ifndef ISL_AST_CONTEXT_H
2 #define ISL_AST_CONTEXT_H
8 #if defined(__cplusplus)
13 typedef struct isl_ast_build isl_ast_build;
16 int isl_options_set_ast_build_atomic_upper_bound(isl_ctx *ctx, int val);
17 int isl_options_get_ast_build_atomic_upper_bound(isl_ctx *ctx);
19 int isl_options_set_ast_build_prefer_pdiv(isl_ctx *ctx, int val);
20 int isl_options_get_ast_build_prefer_pdiv(isl_ctx *ctx);
22 int isl_options_set_ast_build_exploit_nested_bounds(isl_ctx *ctx, int val);
23 int isl_options_get_ast_build_exploit_nested_bounds(isl_ctx *ctx);
25 int isl_options_set_ast_build_group_coscheduled(isl_ctx *ctx, int val);
26 int isl_options_get_ast_build_group_coscheduled(isl_ctx *ctx);
28 #define ISL_AST_BUILD_SEPARATION_BOUNDS_EXPLICIT 0
29 #define ISL_AST_BUILD_SEPARATION_BOUNDS_IMPLICIT 1
30 int isl_options_set_ast_build_separation_bounds(isl_ctx *ctx, int val);
31 int isl_options_get_ast_build_separation_bounds(isl_ctx *ctx);
33 int isl_options_set_ast_build_scale_strides(isl_ctx *ctx, int val);
34 int isl_options_get_ast_build_scale_strides(isl_ctx *ctx);
36 int isl_options_set_ast_build_allow_else(isl_ctx *ctx, int val);
37 int isl_options_get_ast_build_allow_else(isl_ctx *ctx);
39 int isl_options_set_ast_build_allow_or(isl_ctx *ctx, int val);
40 int isl_options_get_ast_build_allow_or(isl_ctx *ctx);
42 isl_ctx *isl_ast_build_get_ctx(__isl_keep isl_ast_build *build);
44 __isl_give isl_ast_build *isl_ast_build_from_context(__isl_take isl_set *set);
46 __isl_give isl_space *isl_ast_build_get_schedule_space(
47 __isl_keep isl_ast_build *build);
48 __isl_give isl_union_map *isl_ast_build_get_schedule(
49 __isl_keep isl_ast_build *build);
51 __isl_give isl_ast_build *isl_ast_build_restrict(
52 __isl_take isl_ast_build *build, __isl_take isl_set *set);
54 __isl_give isl_ast_build *isl_ast_build_copy(
55 __isl_keep isl_ast_build *build);
56 void *isl_ast_build_free(__isl_take isl_ast_build *build);
58 __isl_give isl_ast_build *isl_ast_build_set_options(
59 __isl_take isl_ast_build *build,
60 __isl_take isl_union_map *options);
61 __isl_give isl_ast_build *isl_ast_build_set_iterators(
62 __isl_take isl_ast_build *build,
63 __isl_take isl_id_list *iterators);
64 __isl_give isl_ast_build *isl_ast_build_set_at_each_domain(
65 __isl_take isl_ast_build *build,
66 __isl_give isl_ast_node *(*fn)(__isl_take isl_ast_node *node,
67 __isl_keep isl_ast_build *build, void *user), void *user);
68 __isl_give isl_ast_build *isl_ast_build_set_before_each_for(
69 __isl_take isl_ast_build *build,
70 __isl_give isl_id *(*fn)(__isl_keep isl_ast_build *build,
71 void *user), void *user);
72 __isl_give isl_ast_build *isl_ast_build_set_after_each_for(
73 __isl_take isl_ast_build *build,
74 __isl_give isl_ast_node *(*fn)(__isl_take isl_ast_node *node,
75 __isl_keep isl_ast_build *build, void *user), void *user);
76 __isl_give isl_ast_build *isl_ast_build_set_create_leaf(
77 __isl_take isl_ast_build *build,
78 __isl_give isl_ast_node *(*fn)(__isl_take isl_ast_build *build,
79 void *user), void *user);
81 __isl_give isl_ast_expr *isl_ast_build_expr_from_pw_aff(
82 __isl_keep isl_ast_build *build, __isl_take isl_pw_aff *pa);
83 __isl_give isl_ast_expr *isl_ast_build_call_from_pw_multi_aff(
84 __isl_keep isl_ast_build *build, __isl_take isl_pw_multi_aff *pma);
86 __isl_give isl_ast_node *isl_ast_build_ast_from_schedule(
87 __isl_keep isl_ast_build *build, __isl_take isl_union_map *schedule);
89 #if defined(__cplusplus)