Polly
20.0.0git
llvm-project
polly
lib
External
isl
isl_from_range_templ.c
Go to the documentation of this file.
1
/*
2
* Copyright 2013 Ecole Normale Superieure
3
*
4
* Use of this software is governed by the MIT license
5
*
6
* Written by Sven Verdoolaege,
7
* Ecole Normale Superieure, 45 rue d'Ulm, 75230 Paris, France
8
*/
9
10
/* Convert an object defined over a parameter domain
11
* into one that is defined over a zero-dimensional set.
12
*/
13
__isl_give
TYPE
*
FN
(
TYPE
,from_range)(
__isl_take
TYPE
*
obj
)
14
{
15
isl_space
*space;
16
17
if
(!
obj
)
18
return
NULL;
19
if
(!
isl_space_is_set
(
FN
(
TYPE
,peek_space)(
obj
)))
20
isl_die
(
FN
(
TYPE
,get_ctx)(
obj
),
isl_error_invalid
,
21
"not living in a set space"
,
22
return
FN
(
TYPE
,free)(
obj
));
23
24
space =
FN
(
TYPE
,get_space)(
obj
);
25
space =
isl_space_from_range
(space);
26
obj
=
FN
(
TYPE
,reset_space)(
obj
, space);
27
28
return
obj
;
29
}
TYPE
#define TYPE
Definition:
check_parse_fail_test_templ.c:13
FN
#define FN(TYPE, NAME)
Definition:
check_parse_fail_test_templ.c:15
__isl_take
#define __isl_take
Definition:
ctx.h:22
__isl_give
#define __isl_give
Definition:
ctx.h:19
isl_die
#define isl_die(ctx, errno, msg, code)
Definition:
ctx.h:137
isl_error_invalid
@ isl_error_invalid
Definition:
ctx.h:80
obj
const char * obj
Definition:
isl_test.c:3316
isl_space_from_range
__isl_give isl_space * isl_space_from_range(__isl_take isl_space *space)
Definition:
isl_space.c:2172
isl_space_is_set
isl_bool isl_space_is_set(__isl_keep isl_space *space)
Definition:
isl_space.c:70
isl_space
Definition:
isl_space_private.h:10
Generated on Wed Nov 13 2024 03:17:22 for Polly by
1.9.6