1#ifndef ISL_SPACE_PRIVATE
2#define ISL_SPACE_PRIVATE
3
4#include <isl/space.h>
5#include <isl/hash.h>
6#include <isl/id_type.h>
7#include <isl/stream.h>
8
9struct isl_name;
10struct isl_space {
11 int ref;
12
13 struct isl_ctx *ctx;
14
15 unsigned nparam;
16 unsigned n_in; /* zero for sets */
17 unsigned n_out; /* dim for sets */
18
19 isl_id *tuple_id[2];
20 isl_space *nested[2];
21
22 unsigned n_id;
23 isl_id **ids;
24};
25
26__isl_give isl_space *isl_space_cow(__isl_take isl_space *space);
27
28__isl_give isl_space *isl_space_underlying(__isl_take isl_space *space,
29 unsigned n_div);
30
31uint32_t isl_space_get_tuple_hash(__isl_keep isl_space *space);
32uint32_t isl_space_get_tuple_domain_hash(__isl_keep isl_space *space);
33uint32_t isl_space_get_full_hash(__isl_keep isl_space *space);
34
35isl_bool isl_space_has_domain_tuples(__isl_keep isl_space *space1,
36 __isl_keep isl_space *space2);
37isl_bool isl_space_has_range_tuples(__isl_keep isl_space *space1,
38 __isl_keep isl_space *space2);
39isl_stat isl_space_check_domain_tuples(__isl_keep isl_space *space1,
40 __isl_keep isl_space *space2);
41isl_bool isl_space_is_domain_internal(__isl_keep isl_space *space1,
42 __isl_keep isl_space *space2);
43isl_bool isl_space_is_range_internal(__isl_keep isl_space *space1,
44 __isl_keep isl_space *space2);
45isl_stat isl_space_check_domain_wrapped_domain_tuples(
46 __isl_keep isl_space *space1, __isl_keep isl_space *space2);
47isl_bool isl_space_wrapped_tuple_is_equal(__isl_keep isl_space *space1,
48 enum isl_dim_type outer, enum isl_dim_type inner,
49 __isl_keep isl_space *space2, enum isl_dim_type type2);
50isl_stat isl_space_check_wrapped_tuple_is_equal(__isl_keep isl_space *space1,
51 enum isl_dim_type outer, enum isl_dim_type inner,
52 __isl_keep isl_space *space2, enum isl_dim_type type2);
53
54isl_size isl_space_wrapped_dim(__isl_keep isl_space *space,
55 enum isl_dim_type outer, enum isl_dim_type inner);
56unsigned isl_space_offset(__isl_keep isl_space *space, enum isl_dim_type type);
57
58isl_stat isl_space_check_range(__isl_keep isl_space *space,
59 enum isl_dim_type type, unsigned first, unsigned n);
60isl_stat isl_space_check_is_set(__isl_keep isl_space *space);
61isl_bool isl_space_may_be_set(__isl_keep isl_space *space);
62isl_bool isl_space_is_named_or_nested(__isl_keep isl_space *space,
63 enum isl_dim_type type);
64isl_bool isl_space_has_equal_ids(__isl_keep isl_space *space1,
65 __isl_keep isl_space *space2);
66isl_bool isl_space_has_named_params(__isl_keep isl_space *space);
67isl_stat isl_space_check_named_params(__isl_keep isl_space *space);
68isl_stat isl_space_check_equal_params(__isl_keep isl_space *space1,
69 __isl_keep isl_space *space2);
70isl_stat isl_space_check_equal_tuples(__isl_keep isl_space *space1,
71 __isl_keep isl_space *space2);
72__isl_give isl_space *isl_space_reset(__isl_take isl_space *space,
73 enum isl_dim_type type);
74__isl_give isl_space *isl_space_flatten(__isl_take isl_space *space);
75
76isl_stat isl_space_check_domain_is_wrapping(__isl_keep isl_space *space);
77isl_stat isl_space_check_range_is_wrapping(__isl_keep isl_space *space);
78
79__isl_give isl_space *isl_space_replace_params(__isl_take isl_space *dst,
80 __isl_keep isl_space *src);
81__isl_give isl_space *isl_space_copy_ids_if_unset(__isl_take isl_space *dst,
82 enum isl_dim_type dst_type, __isl_keep isl_space *src,
83 enum isl_dim_type src_type);
84
85__isl_give isl_space *isl_space_lift(__isl_take isl_space *space,
86 unsigned n_local);
87
88__isl_give isl_space *isl_space_extend_domain_with_range(
89 __isl_take isl_space *domain, __isl_take isl_space *model);
90__isl_give isl_space *isl_space_bind_set(__isl_take isl_space *space,
91 __isl_keep isl_multi_id *tuple);
92__isl_give isl_space *isl_space_bind_map_domain(__isl_take isl_space *space,
93 __isl_keep isl_multi_id *tuple);
94__isl_give isl_space *isl_space_bind_domain_wrapped_domain(
95 __isl_take isl_space *space, __isl_keep isl_multi_id *tuple);
96__isl_give isl_space *isl_space_unbind_params_insert_domain(
97 __isl_take isl_space *space, __isl_keep isl_multi_id *tuple);
98
99int isl_space_cmp(__isl_keep isl_space *space1, __isl_keep isl_space *space2);
100
101__isl_give isl_space *isl_stream_read_space(__isl_keep isl_stream *s);
102
103#endif
104

source code of polly/lib/External/isl/isl_space_private.h