Polly
20.0.0git
llvm-project
polly
lib
External
isl
isl_pw_range_tuple_id_templ.c
Go to the documentation of this file.
1
/*
2
* Copyright 2018 Sven Verdoolaege
3
* Copyright 2019 Cerebras Systems
4
*
5
* Use of this software is governed by the MIT license
6
*
7
* Written by Sven Verdoolaege,
8
* Cerebras Systems, 175 S San Antonio Rd, Los Altos, CA, USA
9
*/
10
11
/* Does the (range) tuple of "pw" have an identifier?
12
*
13
* Technically, the implementation should use isl_dim_set if "pw"
14
* lives in a set space and isl_dim_out if it lives in a map space.
15
* Internally, however, it can be assumed that isl_dim_set is equal
16
* to isl_dim_out.
17
*/
18
isl_bool
FN
(
PW
,has_range_tuple_id)(
__isl_keep
PW
*pw)
19
{
20
return
FN
(
PW
,has_tuple_id)(pw,
isl_dim_out
);
21
}
22
23
/* Return the identifier of the (range) tuple of "pw", assuming it has one.
24
*
25
* Technically, the implementation should use isl_dim_set if "pw"
26
* lives in a set space and isl_dim_out if it lives in a map space.
27
* Internally, however, it can be assumed that isl_dim_set is equal
28
* to isl_dim_out.
29
*/
30
__isl_give
isl_id
*
FN
(
PW
,get_range_tuple_id)(
__isl_keep
PW
*pw)
31
{
32
return
FN
(
PW
,get_tuple_id)(pw,
isl_dim_out
);
33
}
34
35
/* Replace the identifier of the (range) tuple of "pw" by "id".
36
*
37
* Technically, the implementation should use isl_dim_set if "pw"
38
* lives in a set space and isl_dim_out if it lives in a map space.
39
* Internally, however, it can be assumed that isl_dim_set is equal
40
* to isl_dim_out.
41
*/
42
__isl_give
PW
*
FN
(
PW
,set_range_tuple_id)(
__isl_take
PW
*pw,
43
__isl_take
isl_id
*
id
)
44
{
45
return
FN
(
PW
,set_tuple_id)(pw,
isl_dim_out
,
id
);
46
}
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_keep
#define __isl_keep
Definition:
ctx.h:25
isl_bool
isl_bool
Definition:
ctx.h:89
PW
#define PW
Definition:
isl_aff.c:4582
id
const char * id
Definition:
isl_test.c:7279
isl_dim_out
@ isl_dim_out
Definition:
space_type.h:17
isl_id
Definition:
isl_id_private.h:21
Generated on Wed Nov 13 2024 03:17:26 for Polly by
1.9.6