Polly
20.0.0git
llvm-project
polly
lib
External
isl
check_type_range_templ.c
Go to the documentation of this file.
1
#define xFN(TYPE,NAME) TYPE ## _ ## NAME
2
#define FN(TYPE,NAME) xFN(TYPE,NAME)
3
4
/* Check that there are "n" dimensions of type "type" starting at "first"
5
* in "obj".
6
*/
7
isl_stat
FN
(
TYPE
,check_range)(
__isl_keep
TYPE
*
obj
,
8
enum
isl_dim_type
type
,
unsigned
first,
unsigned
n
)
9
{
10
isl_size
dim;
11
12
dim =
FN
(
TYPE
,dim)(
obj
,
type
);
13
if
(dim < 0)
14
return
isl_stat_error
;
15
if
(first +
n
> dim || first +
n
< first)
16
isl_die
(
FN
(
TYPE
,get_ctx)(
obj
),
isl_error_invalid
,
17
"position or range out of bounds"
,
18
return
isl_stat_error
);
19
return
isl_stat_ok
;
20
}
TYPE
#define TYPE
Definition:
check_parse_fail_test_templ.c:13
FN
#define FN(TYPE, NAME)
Definition:
check_type_range_templ.c:2
isl_stat
isl_stat
Definition:
ctx.h:84
isl_stat_error
@ isl_stat_error
Definition:
ctx.h:85
isl_stat_ok
@ isl_stat_ok
Definition:
ctx.h:86
isl_die
#define isl_die(ctx, errno, msg, code)
Definition:
ctx.h:137
isl_error_invalid
@ isl_error_invalid
Definition:
ctx.h:80
__isl_keep
#define __isl_keep
Definition:
ctx.h:25
isl_size
int isl_size
Definition:
ctx.h:96
type
enum isl_fold type
Definition:
isl_test.c:4017
obj
const char * obj
Definition:
isl_test.c:3316
isl_dim_type
isl_dim_type
Definition:
space_type.h:13
n
n
Definition:
youcefn.c:8
Generated on Wed Nov 13 2024 03:17:14 for Polly by
1.9.6