Polly 20.0.0git
isl_unbind_params_templ.c
Go to the documentation of this file.
1/*
2 * Copyright 2018 Sven Verdoolaege
3 *
4 * Use of this software is governed by the MIT license
5 *
6 * Written by Sven Verdoolaege.
7 */
8
9/* Given a function "obj" defined over a parameter domain,
10 * convert it to a function defined over a domain corresponding
11 * to "domain".
12 * Any parameters with identifiers in "domain" are reinterpreted
13 * as the corresponding domain dimensions.
14 */
17{
18 isl_bool is_params;
19 isl_space *space;
21
22 space = FN(TYPE,get_domain_space)(obj);
23 is_params = isl_space_is_params(space);
24 if (is_params < 0)
25 domain = isl_multi_id_free(domain);
26 else if (!is_params)
28 "expecting function with parameter domain",
29 domain = isl_multi_id_free(domain));
31 isl_space_free(space);
32 isl_multi_id_free(domain);
33
34 return FN(TYPE,realign_domain)(obj, r);
35}
#define TYPE
#define FN(TYPE, NAME)
#define __isl_take
Definition: ctx.h:22
#define __isl_give
Definition: ctx.h:19
#define isl_die(ctx, errno, msg, code)
Definition: ctx.h:137
@ isl_error_invalid
Definition: ctx.h:80
isl_bool
Definition: ctx.h:89
struct isl_multi_id isl_multi_id
Definition: id_type.h:16
static __isl_give isl_qpolynomial * realign_domain(__isl_take isl_qpolynomial *qp, void *user)
Definition: isl_fold.c:2027
static __isl_give isl_map * unbind_params_insert_domain(__isl_take isl_set *set, __isl_take isl_multi_id *tuple)
Definition: isl_map.c:12802
__isl_give isl_reordering * isl_reordering_unbind_params_insert_domain(__isl_keep isl_space *space, __isl_keep isl_multi_id *tuple)
const char * obj
Definition: isl_test.c:3316
__isl_null isl_space * isl_space_free(__isl_take isl_space *space)
Definition: isl_space.c:445
isl_bool isl_space_is_params(__isl_keep isl_space *space)
Definition: isl_space.c:179
static Signature domain