2 * Copyright 2008-2009 Katholieke Universiteit Leuven
4 * Use of this software is governed by the GNU LGPLv2.1 license
6 * Written by Sven Verdoolaege, K.U.Leuven, Departement
7 * Computerwetenschappen, Celestijnenlaan 200A, B-3001 Leuven, Belgium
15 #if defined(__cplusplus)
20 typedef struct isl_dim isl_dim;
27 isl_dim_set = isl_dim_out,
32 isl_ctx *isl_dim_get_ctx(__isl_keep isl_dim *dim);
33 __isl_give isl_dim *isl_dim_alloc(isl_ctx *ctx,
34 unsigned nparam, unsigned n_in, unsigned n_out);
35 __isl_give isl_dim *isl_dim_set_alloc(isl_ctx *ctx,
36 unsigned nparam, unsigned dim);
37 __isl_give isl_dim *isl_dim_copy(__isl_keep isl_dim *dim);
38 struct isl_dim *isl_dim_cow(struct isl_dim *dim);
39 void isl_dim_free(__isl_take isl_dim *dim);
41 __isl_give isl_dim *isl_dim_set_tuple_name(__isl_take isl_dim *dim,
42 enum isl_dim_type type, const char *s);
43 const char *isl_dim_get_tuple_name(__isl_keep isl_dim *dim,
44 enum isl_dim_type type);
46 __isl_give isl_dim *isl_dim_set_name(__isl_take isl_dim *dim,
47 enum isl_dim_type type, unsigned pos,
48 __isl_keep const char *name);
49 __isl_keep const char *isl_dim_get_name(__isl_keep isl_dim *dim,
50 enum isl_dim_type type, unsigned pos);
52 struct isl_dim *isl_dim_extend(struct isl_dim *dim,
53 unsigned nparam, unsigned n_in, unsigned n_out);
54 __isl_give isl_dim *isl_dim_add(__isl_take isl_dim *dim, enum isl_dim_type type,
56 __isl_give isl_dim *isl_dim_move(__isl_take isl_dim *dim,
57 enum isl_dim_type dst_type, unsigned dst_pos,
58 enum isl_dim_type src_type, unsigned src_pos, unsigned n);
59 __isl_give isl_dim *isl_dim_insert(__isl_take isl_dim *dim,
60 enum isl_dim_type type, unsigned pos, unsigned n);
61 __isl_give isl_dim *isl_dim_join(__isl_take isl_dim *left,
62 __isl_take isl_dim *right);
63 struct isl_dim *isl_dim_product(struct isl_dim *left, struct isl_dim *right);
64 __isl_give isl_dim *isl_dim_range_product(__isl_take isl_dim *left,
65 __isl_take isl_dim *right);
66 struct isl_dim *isl_dim_map(struct isl_dim *dim);
67 __isl_give isl_dim *isl_dim_reverse(__isl_take isl_dim *dim);
68 __isl_give isl_dim *isl_dim_drop(__isl_take isl_dim *dim,
69 enum isl_dim_type type, unsigned first, unsigned num);
70 struct isl_dim *isl_dim_drop_inputs(struct isl_dim *dim,
71 unsigned first, unsigned n);
72 struct isl_dim *isl_dim_drop_outputs(struct isl_dim *dim,
73 unsigned first, unsigned n);
74 __isl_give isl_dim *isl_dim_domain(__isl_take isl_dim *dim);
75 __isl_give isl_dim *isl_dim_from_domain(__isl_take isl_dim *dim);
76 __isl_give isl_dim *isl_dim_range(__isl_take isl_dim *dim);
77 __isl_give isl_dim *isl_dim_from_range(__isl_take isl_dim *dim);
78 struct isl_dim *isl_dim_underlying(struct isl_dim *dim, unsigned n_div);
80 int isl_dim_is_wrapping(__isl_keep isl_dim *dim);
81 __isl_give isl_dim *isl_dim_wrap(__isl_take isl_dim *dim);
82 __isl_give isl_dim *isl_dim_unwrap(__isl_take isl_dim *dim);
84 int isl_dim_equal(struct isl_dim *dim1, struct isl_dim *dim2);
85 int isl_dim_match(struct isl_dim *dim1, enum isl_dim_type dim1_type,
86 struct isl_dim *dim2, enum isl_dim_type dim2_type);
87 int isl_dim_tuple_match(__isl_keep isl_dim *dim1, enum isl_dim_type dim1_type,
88 __isl_keep isl_dim *dim2, enum isl_dim_type dim2_type);
89 int isl_dim_compatible(struct isl_dim *dim1, struct isl_dim *dim2);
90 unsigned isl_dim_size(__isl_keep isl_dim *dim, enum isl_dim_type type);
91 unsigned isl_dim_total(struct isl_dim *dim);
93 #if defined(__cplusplus)