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
;
26 isl_dim_set
= isl_dim_out
,
31 isl_ctx
*isl_dim_get_ctx(__isl_keep isl_dim
*dim
);
32 __isl_give isl_dim
*isl_dim_alloc(isl_ctx
*ctx
,
33 unsigned nparam
, unsigned n_in
, unsigned n_out
);
34 __isl_give isl_dim
*isl_dim_set_alloc(isl_ctx
*ctx
,
35 unsigned nparam
, unsigned dim
);
36 __isl_give isl_dim
*isl_dim_copy(__isl_keep isl_dim
*dim
);
37 struct isl_dim
*isl_dim_cow(struct isl_dim
*dim
);
38 void isl_dim_free(__isl_take isl_dim
*dim
);
40 __isl_give isl_dim
*isl_dim_set_tuple_name(__isl_take isl_dim
*dim
,
41 enum isl_dim_type type
, const char *s
);
42 const char *isl_dim_get_tuple_name(__isl_keep isl_dim
*dim
,
43 enum isl_dim_type type
);
45 __isl_give isl_dim
*isl_dim_set_name(__isl_take isl_dim
*dim
,
46 enum isl_dim_type type
, unsigned pos
,
47 __isl_keep
const char *name
);
48 __isl_keep
const char *isl_dim_get_name(__isl_keep isl_dim
*dim
,
49 enum isl_dim_type type
, unsigned pos
);
51 struct isl_dim
*isl_dim_extend(struct isl_dim
*dim
,
52 unsigned nparam
, unsigned n_in
, unsigned n_out
);
53 struct isl_dim
*isl_dim_add(struct isl_dim
*dim
, enum isl_dim_type type
,
55 __isl_give isl_dim
*isl_dim_move(__isl_take isl_dim
*dim
,
56 enum isl_dim_type dst_type
, unsigned dst_pos
,
57 enum isl_dim_type src_type
, unsigned src_pos
, unsigned n
);
58 __isl_give isl_dim
*isl_dim_insert(__isl_take isl_dim
*dim
,
59 enum isl_dim_type type
, unsigned pos
, unsigned n
);
60 struct isl_dim
*isl_dim_join(struct isl_dim
*left
, struct isl_dim
*right
);
61 struct isl_dim
*isl_dim_product(struct isl_dim
*left
, struct isl_dim
*right
);
62 struct isl_dim
*isl_dim_map(struct isl_dim
*dim
);
63 struct isl_dim
*isl_dim_reverse(struct isl_dim
*dim
);
64 struct isl_dim
*isl_dim_drop(struct isl_dim
*dim
, enum isl_dim_type type
,
65 unsigned first
, unsigned num
);
66 struct isl_dim
*isl_dim_drop_inputs(struct isl_dim
*dim
,
67 unsigned first
, unsigned n
);
68 struct isl_dim
*isl_dim_drop_outputs(struct isl_dim
*dim
,
69 unsigned first
, unsigned n
);
70 struct isl_dim
*isl_dim_domain(struct isl_dim
*dim
);
71 struct isl_dim
*isl_dim_range(struct isl_dim
*dim
);
72 struct isl_dim
*isl_dim_underlying(struct isl_dim
*dim
, unsigned n_div
);
74 int isl_dim_equal(struct isl_dim
*dim1
, struct isl_dim
*dim2
);
75 int isl_dim_match(struct isl_dim
*dim1
, enum isl_dim_type dim1_type
,
76 struct isl_dim
*dim2
, enum isl_dim_type dim2_type
);
77 int isl_dim_compatible(struct isl_dim
*dim1
, struct isl_dim
*dim2
);
78 unsigned isl_dim_size(__isl_keep isl_dim
*dim
, enum isl_dim_type type
);
79 unsigned isl_dim_total(struct isl_dim
*dim
);
81 #if defined(__cplusplus)