Polly 20.0.0git
constraint.h
Go to the documentation of this file.
1/*
2 * Copyright 2008-2009 Katholieke Universiteit Leuven
3 *
4 * Use of this software is governed by the MIT license
5 *
6 * Written by Sven Verdoolaege, K.U.Leuven, Departement
7 * Computerwetenschappen, Celestijnenlaan 200A, B-3001 Leuven, Belgium
8 */
9
10#ifndef ISL_CONSTRAINT_H
11#define ISL_CONSTRAINT_H
12
13#include <isl/local_space.h>
14#include <isl/space_type.h>
15#include <isl/aff_type.h>
16#include <isl/set_type.h>
17#include <isl/list.h>
18#include <isl/val_type.h>
19#include <isl/printer.h>
20
21#if defined(__cplusplus)
22extern "C" {
23#endif
24
25struct isl_constraint;
27
28ISL_DECLARE_LIST(constraint)
29
31
38
41
45 isl_stat (*fn)(__isl_take isl_constraint *c, void *user), void *user);
47 isl_stat (*fn)(__isl_take isl_constraint *c, void *user), void *user);
53 __isl_keep isl_constraint *constraint2);
54
56 enum isl_dim_type type, unsigned pos,
59 __isl_take isl_basic_set *bset, void *user), void *user);
60
66 __isl_take isl_constraint *constraint);
68 __isl_take isl_constraint *constraint);
69
74 struct isl_basic_set *bset, enum isl_dim_type type, int pos,
75 struct isl_constraint **constraint);
77 struct isl_basic_set *bset, enum isl_dim_type type, int pos,
78 struct isl_constraint **lower,
79 struct isl_constraint **upper);
80
82 __isl_keep isl_constraint *constraint);
84 __isl_keep isl_constraint *constraint);
86 enum isl_dim_type type);
87
89 enum isl_dim_type type, unsigned first, unsigned n);
90
92 enum isl_dim_type type, unsigned pos);
94 __isl_keep isl_constraint *constraint);
96 __isl_keep isl_constraint *constraint, enum isl_dim_type type, int pos);
98 __isl_take isl_constraint *constraint, int v);
102 __isl_take isl_constraint *constraint,
103 enum isl_dim_type type, int pos, int v);
105 __isl_take isl_constraint *constraint,
107
109 int pos);
110
112 __isl_take isl_constraint *constraint);
113
116 __isl_keep isl_constraint *constraint);
117
119 enum isl_dim_type type, unsigned pos);
121 enum isl_dim_type type, unsigned pos);
122
124 __isl_take isl_constraint *constraint);
126 __isl_take isl_constraint *constraint);
127
129 __isl_keep isl_constraint *constraint, enum isl_dim_type type, int pos);
131 __isl_keep isl_constraint *constraint);
134
139
143
144#if defined(__cplusplus)
145}
146#endif
147
148#endif
__isl_give isl_local_space * isl_constraint_get_local_space(__isl_keep isl_constraint *constraint)
isl_size isl_constraint_dim(__isl_keep isl_constraint *constraint, enum isl_dim_type type)
__isl_give isl_map * isl_map_add_constraint(__isl_take isl_map *map, __isl_take isl_constraint *constraint)
__isl_give isl_constraint * isl_inequality_from_aff(__isl_take isl_aff *aff)
__isl_give isl_constraint * isl_equality_alloc(__isl_take isl_local_space *ls)
Definition: isl_deprecated.c:5
int isl_constraint_is_equal(__isl_keep isl_constraint *constraint1, __isl_keep isl_constraint *constraint2)
int isl_constraint_plain_cmp(__isl_keep isl_constraint *c1, __isl_keep isl_constraint *c2)
__isl_give isl_constraint * isl_constraint_set_constant_val(__isl_take isl_constraint *constraint, __isl_take isl_val *v)
__isl_give isl_aff * isl_constraint_get_bound(__isl_keep isl_constraint *constraint, enum isl_dim_type type, int pos)
__isl_give isl_constraint * isl_inequality_alloc(__isl_take isl_local_space *ls)
isl_bool isl_basic_map_has_defining_equality(__isl_keep isl_basic_map *bmap, enum isl_dim_type type, int pos, __isl_give isl_constraint **c)
isl_bool isl_constraint_is_upper_bound(__isl_keep isl_constraint *constraint, enum isl_dim_type type, unsigned pos)
isl_size isl_basic_map_n_constraint(__isl_keep isl_basic_map *bmap)
__isl_null isl_constraint * isl_constraint_free(__isl_take isl_constraint *c)
__isl_give isl_basic_map * isl_basic_map_add_constraint(__isl_take isl_basic_map *bmap, __isl_take isl_constraint *constraint)
__isl_give isl_constraint * isl_constraint_copy(__isl_keep isl_constraint *c)
__isl_give isl_constraint * isl_constraint_alloc_equality(__isl_take isl_local_space *ls)
__isl_give isl_constraint * isl_equality_from_aff(__isl_take isl_aff *aff)
__isl_give isl_basic_map * isl_basic_map_from_constraint(__isl_take isl_constraint *constraint)
__isl_give isl_val * isl_constraint_get_constant_val(__isl_keep isl_constraint *constraint)
__isl_give isl_printer * isl_printer_print_constraint(__isl_take isl_printer *p, __isl_keep isl_constraint *c)
Definition: isl_output.c:2397
isl_bool isl_constraint_involves_dims(__isl_keep isl_constraint *constraint, enum isl_dim_type type, unsigned first, unsigned n)
__isl_give isl_constraint * isl_constraint_alloc_inequality(__isl_take isl_local_space *ls)
__isl_give isl_basic_set * isl_basic_set_add_constraint(__isl_take isl_basic_set *bset, __isl_take isl_constraint *constraint)
__isl_give isl_constraint_list * isl_basic_set_get_constraint_list(__isl_keep isl_basic_set *bset)
void isl_constraint_dump(__isl_keep isl_constraint *c)
isl_bool isl_constraint_is_lower_bound(__isl_keep isl_constraint *constraint, enum isl_dim_type type, unsigned pos)
isl_stat isl_basic_set_foreach_constraint(__isl_keep isl_basic_set *bset, isl_stat(*fn)(__isl_take isl_constraint *c, void *user), void *user)
isl_bool isl_basic_set_has_defining_inequalities(struct isl_basic_set *bset, enum isl_dim_type type, int pos, struct isl_constraint **lower, struct isl_constraint **upper)
__isl_give isl_basic_set * isl_basic_set_from_constraint(__isl_take isl_constraint *constraint)
const char * isl_constraint_get_dim_name(__isl_keep isl_constraint *constraint, enum isl_dim_type type, unsigned pos)
__isl_give isl_val * isl_constraint_get_coefficient_val(__isl_keep isl_constraint *constraint, enum isl_dim_type type, int pos)
__isl_give isl_set * isl_set_add_constraint(__isl_take isl_set *set, __isl_take isl_constraint *constraint)
isl_bool isl_constraint_is_div_constraint(__isl_keep isl_constraint *constraint)
__isl_give isl_constraint * isl_constraint_negate(__isl_take isl_constraint *constraint)
__isl_give isl_space * isl_constraint_get_space(__isl_keep isl_constraint *constraint)
__isl_give isl_aff * isl_constraint_get_aff(__isl_keep isl_constraint *constraint)
int isl_constraint_cmp_last_non_zero(__isl_keep isl_constraint *c1, __isl_keep isl_constraint *c2)
isl_stat isl_basic_set_foreach_bound_pair(__isl_keep isl_basic_set *bset, enum isl_dim_type type, unsigned pos, isl_stat(*fn)(__isl_take isl_constraint *lower, __isl_take isl_constraint *upper, __isl_take isl_basic_set *bset, void *user), void *user)
isl_size isl_basic_set_n_constraint(__isl_keep isl_basic_set *bset)
isl_bool isl_constraint_is_equality(__isl_keep isl_constraint *constraint)
isl_stat isl_basic_map_foreach_constraint(__isl_keep isl_basic_map *bmap, isl_stat(*fn)(__isl_take isl_constraint *c, void *user), void *user)
__isl_give isl_constraint_list * isl_basic_map_get_constraint_list(__isl_keep isl_basic_map *bmap)
__isl_give isl_constraint * isl_constraint_set_constant_si(__isl_take isl_constraint *constraint, int v)
__isl_give isl_constraint * isl_constraint_set_coefficient_si(__isl_take isl_constraint *constraint, enum isl_dim_type type, int pos, int v)
isl_bool isl_basic_set_has_defining_equality(struct isl_basic_set *bset, enum isl_dim_type type, int pos, struct isl_constraint **constraint)
__isl_give isl_aff * isl_constraint_get_div(__isl_keep isl_constraint *constraint, int pos)
isl_ctx * isl_constraint_get_ctx(__isl_keep isl_constraint *c)
__isl_give isl_constraint * isl_constraint_set_coefficient_val(__isl_take isl_constraint *constraint, enum isl_dim_type type, int pos, __isl_take isl_val *v)
#define __isl_take
Definition: ctx.h:22
isl_stat
Definition: ctx.h:84
#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
c1
Definition: dot.c:2
isl_stat isl_stat(* fn)(__isl_take ISL_KEY *key, __isl_take ISL_VAL *val, void *user)
Definition: hmap.h:37
isl_stat isl_stat(*) void user)
Definition: hmap.h:39
static unsigned pos(__isl_keep isl_space *space, enum isl_dim_type type)
Definition: isl_map.c:70
enum isl_fold type
Definition: isl_test.c:4017
const char * set
Definition: isl_test.c:1356
const char * map
Definition: isl_test.c:1783
const char * p
Definition: isl_test.c:8643
const char * aff
Definition: isl_test.c:7278
#define ISL_DECLARE_LIST(EL)
Definition: list.h:121
struct isl_set isl_set
Definition: map_type.h:26
struct isl_basic_set isl_basic_set
Definition: map_type.h:20
isl_dim_type
Definition: space_type.h:13
isl_local_space * ls
n
Definition: youcefn.c:8