Polly 20.0.0git
isl_schedule_tree.h
Go to the documentation of this file.
1#ifndef ISL_SCHEDLUE_TREE_H
2#define ISL_SCHEDLUE_TREE_H
3
4#include <isl_schedule_band.h>
5#include <isl/schedule.h>
6#include <isl/set.h>
7#include <isl/union_set.h>
8
11
12ISL_DECLARE_LIST(schedule_tree)
13
14/* A schedule (sub)tree.
15 *
16 * The leaves of a tree are not explicitly represented inside
17 * the isl_schedule_tree, except when the tree consists of only a leaf.
18 *
19 * The "band" field is valid when type is isl_schedule_node_band.
20 * The "context" field is valid when type is isl_schedule_node_context
21 * and represents constraints on the flat product of the outer band nodes,
22 * possibly introducing additional parameters.
23 * The "domain" field is valid when type is isl_schedule_node_domain
24 * and introduces the statement instances scheduled by the tree.
25 *
26 * The "contraction" and "expansion" fields are valid when type
27 * is isl_schedule_node_expansion.
28 * "expansion" expands the reaching domain elements to one or more
29 * domain elements for the subtree.
30 * "contraction" maps these elements back to the corresponding
31 * reaching domain element. It does not involve any domain constraints.
32 *
33 * The "extension" field is valid when the is isl_schedule_node_extension
34 * maps outer schedule dimensions (the flat product of the outer band nodes)
35 * to additional iteration domains.
36 *
37 * The "filter" field is valid when type is isl_schedule_node_filter
38 * and represents the statement instances selected by the node.
39 *
40 * The "guard" field is valid when type is isl_schedule_node_guard
41 * and represents constraints on the flat product of the outer band nodes
42 * that need to be enforced by the outer nodes in the generated AST.
43 *
44 * The "mark" field is valid when type is isl_schedule_node_mark and
45 * identifies the mark.
46 *
47 * The "children" field is valid for all types except
48 * isl_schedule_node_leaf. This field is NULL if there are
49 * no children (except for the implicit leaves).
50 *
51 * anchored is set if the node or any of its descendants depends
52 * on its position in the schedule tree.
53 */
55 int ref;
59 union {
63 struct {
66 };
71 };
72 isl_schedule_tree_list *children;
73};
74
78
81
84
89
98 __isl_take isl_union_map *expansion);
100 __isl_take isl_union_map *extension);
102 __isl_take isl_union_set *filter);
104 __isl_take isl_set *guard);
107 __isl_take isl_schedule_tree_list *list);
117
120
146 __isl_keep isl_schedule_tree *tree, int depth);
161 __isl_take isl_union_map *expansion);
166 __isl_take isl_union_map *extension);
175
180
182
186 __isl_take isl_schedule_tree *tree, int pos, int coincident);
190 __isl_take isl_schedule_tree *tree, int permutable);
191
196
206 __isl_take isl_union_map *expansion);
209 __isl_take isl_union_map *extension);
218
222
235 __isl_take isl_schedule_tree *tree, int pos, int depth);
238
247 __isl_take isl_schedule_tree *new_child);
251
259
264 int n_ancestor, int *child_pos);
265
266#endif
polly Polly Forward operand tree
struct isl_union_pw_multi_aff isl_union_pw_multi_aff
Definition: aff_type.h:38
struct isl_multi_union_pw_aff isl_multi_union_pw_aff
Definition: aff_type.h:46
isl_ast_loop_type
Definition: ast_type.h:91
#define __isl_take
Definition: ctx.h:22
#define __isl_give
Definition: ctx.h:19
#define __isl_null
Definition: ctx.h:28
#define __isl_keep
Definition: ctx.h:25
int isl_size
Definition: ctx.h:96
isl_bool
Definition: ctx.h:89
static unsigned pos(__isl_keep isl_space *space, enum isl_dim_type type)
Definition: isl_map.c:70
__isl_give isl_schedule_tree * isl_schedule_tree_replace_child(__isl_take isl_schedule_tree *tree, int pos, __isl_take isl_schedule_tree *new_child)
__isl_give isl_multi_union_pw_aff * isl_schedule_tree_band_get_partial_schedule(__isl_keep isl_schedule_tree *tree)
__isl_give isl_set * isl_schedule_tree_guard_get_guard(__isl_keep isl_schedule_tree *tree)
__isl_give isl_schedule_tree * isl_schedule_tree_band_set_permutable(__isl_take isl_schedule_tree *tree, int permutable)
__isl_give isl_schedule_tree * isl_schedule_tree_from_pair(enum isl_schedule_node_type type, __isl_take isl_schedule_tree *tree1, __isl_take isl_schedule_tree *tree2)
__isl_null isl_schedule_tree * isl_schedule_tree_free(__isl_take isl_schedule_tree *tree)
__isl_give isl_schedule_tree * isl_schedule_tree_extension_set_extension(__isl_take isl_schedule_tree *tree, __isl_take isl_union_map *extension)
__isl_give isl_schedule_tree * isl_schedule_tree_from_filter(__isl_take isl_union_set *filter)
__isl_give isl_schedule_tree * isl_schedule_tree_from_extension(__isl_take isl_union_map *extension)
__isl_give isl_schedule_tree * isl_schedule_tree_pullback_union_pw_multi_aff(__isl_take isl_schedule_tree *tree, __isl_take isl_union_pw_multi_aff *upma)
__isl_give isl_schedule_tree * isl_schedule_tree_band_scale_down(__isl_take isl_schedule_tree *tree, __isl_take isl_multi_val *mv)
isl_size isl_schedule_tree_band_n_member(__isl_keep isl_schedule_tree *tree)
__isl_give isl_union_map * isl_schedule_tree_extension_get_extension(__isl_keep isl_schedule_tree *tree)
__isl_give isl_schedule_tree * isl_schedule_tree_insert_band(__isl_take isl_schedule_tree *tree, __isl_take isl_schedule_band *band)
__isl_give isl_schedule_tree * isl_schedule_tree_band_gist(__isl_take isl_schedule_tree *tree, __isl_take isl_union_set *context)
__isl_give isl_schedule_tree * isl_schedule_tree_from_band(__isl_take isl_schedule_band *band)
__isl_give isl_schedule_tree * isl_schedule_tree_band_mod(__isl_take isl_schedule_tree *tree, __isl_take isl_multi_val *mv)
__isl_give isl_space * isl_schedule_tree_band_get_space(__isl_keep isl_schedule_tree *tree)
__isl_give isl_schedule_tree * isl_schedule_tree_from_domain(__isl_take isl_union_set *domain)
__isl_give isl_schedule_tree * isl_schedule_tree_insert_mark(__isl_take isl_schedule_tree *tree, __isl_take isl_id *mark)
__isl_give isl_schedule_tree * isl_schedule_tree_band_member_set_isolate_ast_loop_type(__isl_take isl_schedule_tree *tree, int pos, enum isl_ast_loop_type type)
__isl_give isl_schedule_tree * isl_schedule_tree_band_shift(__isl_take isl_schedule_tree *tree, __isl_take isl_multi_union_pw_aff *shift)
isl_bool isl_schedule_tree_band_member_get_coincident(__isl_keep isl_schedule_tree *tree, int pos)
__isl_give isl_schedule_tree * isl_schedule_tree_copy(__isl_keep isl_schedule_tree *tree)
enum isl_ast_loop_type isl_schedule_tree_band_member_get_ast_loop_type(__isl_keep isl_schedule_tree *tree, int pos)
__isl_give isl_union_pw_multi_aff * isl_schedule_tree_expansion_get_contraction(__isl_keep isl_schedule_tree *tree)
__isl_give isl_schedule_tree * isl_schedule_tree_band_split(__isl_take isl_schedule_tree *tree, int pos, int depth)
__isl_give isl_schedule_tree * isl_schedule_tree_domain_set_domain(__isl_take isl_schedule_tree *tree, __isl_take isl_union_set *domain)
__isl_give isl_schedule_tree * isl_schedule_tree_align_params(__isl_take isl_schedule_tree *tree, __isl_take isl_space *space)
isl_bool isl_schedule_tree_plain_is_equal(__isl_keep isl_schedule_tree *tree1, __isl_keep isl_schedule_tree *tree2)
__isl_give isl_schedule_tree * isl_schedule_tree_insert_expansion(__isl_take isl_schedule_tree *tree, __isl_take isl_union_pw_multi_aff *contraction, __isl_take isl_union_map *expansion)
__isl_give isl_schedule_tree * isl_schedule_tree_reset_children(__isl_take isl_schedule_tree *tree)
__isl_give isl_schedule_tree * isl_schedule_tree_insert_domain(__isl_take isl_schedule_tree *tree, __isl_take isl_union_set *domain)
isl_size isl_schedule_tree_n_children(__isl_keep isl_schedule_tree *tree)
__isl_give isl_schedule_tree * isl_schedule_tree_band_member_set_coincident(__isl_take isl_schedule_tree *tree, int pos, int coincident)
__isl_give isl_schedule_tree * isl_schedule_tree_set_pair(__isl_take isl_schedule_tree *tree1, __isl_take isl_schedule_tree *tree2)
__isl_give isl_schedule_tree * isl_schedule_tree_insert_guard(__isl_take isl_schedule_tree *tree, __isl_take isl_set *guard)
__isl_give isl_union_map * isl_schedule_tree_expansion_get_expansion(__isl_keep isl_schedule_tree *tree)
__isl_give isl_schedule_tree * isl_schedule_tree_band_scale(__isl_take isl_schedule_tree *tree, __isl_take isl_multi_val *mv)
__isl_give isl_schedule_tree * isl_schedule_tree_filter_set_filter(__isl_take isl_schedule_tree *tree, __isl_take isl_union_set *filter)
__isl_give isl_printer * isl_printer_print_schedule_tree(__isl_take isl_printer *p, __isl_keep isl_schedule_tree *tree)
__isl_give isl_schedule_tree * isl_schedule_tree_reset_user(__isl_take isl_schedule_tree *tree)
__isl_give isl_union_map * isl_schedule_tree_get_subtree_schedule_union_map(__isl_keep isl_schedule_tree *tree)
__isl_give isl_schedule_tree * isl_schedule_tree_band_member_set_ast_loop_type(__isl_take isl_schedule_tree *tree, int pos, enum isl_ast_loop_type type)
__isl_give isl_schedule_tree * isl_schedule_tree_from_context(__isl_take isl_set *context)
__isl_give isl_schedule_tree * isl_schedule_tree_children_insert_filter(__isl_take isl_schedule_tree *tree, __isl_take isl_union_set *filter)
__isl_give isl_schedule_tree * isl_schedule_tree_leaf(isl_ctx *ctx)
__isl_give isl_schedule_tree * isl_schedule_tree_from_children(enum isl_schedule_node_type type, __isl_take isl_schedule_tree_list *list)
__isl_give isl_id * isl_schedule_tree_mark_get_id(__isl_keep isl_schedule_tree *tree)
int isl_schedule_tree_has_children(__isl_keep isl_schedule_tree *tree)
__isl_give isl_schedule_tree * isl_schedule_tree_insert_filter(__isl_take isl_schedule_tree *tree, __isl_take isl_union_set *filter)
__isl_give isl_schedule_tree * isl_schedule_tree_band_intersect_domain(__isl_take isl_schedule_tree *tree, __isl_take isl_union_set *domain)
__isl_give isl_schedule_tree * isl_schedule_tree_band_set_ast_build_options(__isl_take isl_schedule_tree *tree, __isl_take isl_union_set *options)
__isl_give isl_schedule_tree * isl_schedule_tree_expansion_set_contraction_and_expansion(__isl_take isl_schedule_tree *tree, __isl_take isl_union_pw_multi_aff *contraction, __isl_take isl_union_map *expansion)
__isl_give isl_schedule_tree * isl_schedule_tree_from_guard(__isl_take isl_set *guard)
__isl_give isl_schedule_tree * isl_schedule_tree_append_to_leaves(__isl_take isl_schedule_tree *tree1, __isl_take isl_schedule_tree *tree2)
__isl_give isl_schedule_tree * isl_schedule_tree_get_child(__isl_keep isl_schedule_tree *tree, int pos)
isl_bool isl_schedule_tree_band_get_permutable(__isl_keep isl_schedule_tree *tree)
__isl_give isl_set * isl_schedule_tree_context_get_context(__isl_keep isl_schedule_tree *tree)
__isl_give isl_union_set * isl_schedule_tree_domain_get_domain(__isl_keep isl_schedule_tree *tree)
__isl_give isl_schedule_tree * isl_schedule_tree_from_expansion(__isl_take isl_union_pw_multi_aff *contraction, __isl_take isl_union_map *expansion)
enum isl_schedule_node_type isl_schedule_tree_get_type(__isl_keep isl_schedule_tree *tree)
__isl_give isl_union_set * isl_schedule_tree_filter_get_filter(__isl_keep isl_schedule_tree *tree)
__isl_give isl_printer * isl_printer_print_schedule_tree_mark(__isl_take isl_printer *p, __isl_keep isl_schedule_tree *tree, int n_ancestor, int *child_pos)
__isl_give isl_schedule_tree * isl_schedule_tree_child(__isl_take isl_schedule_tree *tree, int pos)
__isl_give isl_schedule_tree * isl_schedule_tree_insert_context(__isl_take isl_schedule_tree *tree, __isl_take isl_set *context)
__isl_give isl_schedule_tree * isl_schedule_tree_drop_child(__isl_take isl_schedule_tree *tree, int pos)
__isl_give isl_schedule_tree * isl_schedule_tree_band_set_partial_schedule(__isl_take isl_schedule_tree *tree, __isl_take isl_multi_union_pw_aff *schedule)
__isl_give isl_set * isl_schedule_tree_band_get_ast_isolate_option(__isl_keep isl_schedule_tree *tree, int depth)
__isl_give isl_schedule_tree * isl_schedule_tree_band_tile(__isl_take isl_schedule_tree *tree, __isl_take isl_multi_val *sizes)
__isl_give isl_schedule_tree * isl_schedule_tree_insert_extension(__isl_take isl_schedule_tree *tree, __isl_take isl_union_map *extension)
__isl_give isl_union_set * isl_schedule_tree_band_get_ast_build_options(__isl_keep isl_schedule_tree *tree)
__isl_give isl_schedule_tree * isl_schedule_tree_sequence_pair(__isl_take isl_schedule_tree *tree1, __isl_take isl_schedule_tree *tree2)
__isl_give isl_schedule_tree * isl_schedule_tree_first_schedule_descendant(__isl_take isl_schedule_tree *tree, __isl_keep isl_schedule_tree *leaf)
isl_ctx * isl_schedule_tree_get_ctx(__isl_keep isl_schedule_tree *tree)
isl_bool isl_schedule_tree_is_subtree_anchored(__isl_keep isl_schedule_tree *tree)
int isl_schedule_tree_is_leaf(__isl_keep isl_schedule_tree *tree)
enum isl_ast_loop_type isl_schedule_tree_band_member_get_isolate_ast_loop_type(__isl_keep isl_schedule_tree *tree, int pos)
__isl_give isl_schedule_tree * isl_schedule_tree_sequence_splice(__isl_take isl_schedule_tree *tree, int pos, __isl_take isl_schedule_tree *child)
enum isl_fold type
Definition: isl_test.c:4017
const char * schedule
Definition: isl_test.c:10697
const char * p
Definition: isl_test.c:8643
const char * context
Definition: isl_test.c:1784
const char * sizes
Definition: isl_test.c:10698
#define ISL_DECLARE_LIST(EL)
Definition: list.h:121
struct isl_set isl_set
Definition: map_type.h:26
isl_schedule_node_type
Definition: schedule_type.h:8
isl_schedule_tree_list * children
isl_union_pw_multi_aff * contraction
isl_schedule_band * band
enum isl_schedule_node_type type
isl_union_set * domain
isl_union_set * filter
isl_union_map * expansion
isl_union_map * extension
static Signature domain
struct isl_union_set isl_union_set
struct isl_multi_val isl_multi_val
Definition: val_type.h:16