Polly
20.0.0git
llvm-project
polly
lib
External
isl
isl_stream_read_pw_with_params_templ.c
Go to the documentation of this file.
1
/*
2
* Copyright 2011 Sven Verdoolaege
3
*
4
* Use of this software is governed by the MIT license
5
*
6
* Written by Sven Verdoolaege.
7
*/
8
9
#undef TYPE
10
#define TYPE CAT(isl_pw_,BASE)
11
12
/* Read an object of type "TYPE" from "s" with parameter domain "dom".
13
* "v" contains a description of the identifiers parsed so far.
14
*/
15
static
__isl_give
TYPE
*
FN
(isl_stream_read_with_params_pw,
BASE
)(
16
__isl_keep
isl_stream
*s,
__isl_keep
isl_set
*dom,
struct
vars
*
v
)
17
{
18
TYPE
*
obj
;
19
20
obj
=
FN
(read_conditional,
BASE
)(s,
isl_set_copy
(dom),
v
);
21
22
while
(
isl_stream_eat_if_available
(s,
';'
)) {
23
TYPE
*obj2;
24
25
obj2 =
FN
(read_conditional,
BASE
)(s,
isl_set_copy
(dom),
v
);
26
obj
=
FN
(
TYPE
,union_add)(
obj
, obj2);
27
}
28
29
return
obj
;
30
}
FN
#define FN(TYPE, NAME)
Definition:
check_parse_fail_test_templ.c:15
__isl_give
#define __isl_give
Definition:
ctx.h:19
__isl_keep
#define __isl_keep
Definition:
ctx.h:25
BASE
#define BASE
Definition:
flow_cmp.c:49
TYPE
#define TYPE
Definition:
isl_stream_read_pw_with_params_templ.c:10
obj
const char * obj
Definition:
isl_test.c:3316
isl_set
struct isl_set isl_set
Definition:
map_type.h:26
isl_set_copy
__isl_give isl_set * isl_set_copy(__isl_keep isl_set *set)
Definition:
isl_map.c:1470
isl_stream_eat_if_available
int isl_stream_eat_if_available(__isl_keep isl_stream *s, int type)
Definition:
isl_stream.c:703
isl_stream
Definition:
isl_stream_private.h:41
vars
Definition:
isl_input.c:42
vars::v
struct variable * v
Definition:
isl_input.c:45
Generated on Wed Nov 13 2024 03:17:28 for Polly by
1.9.6