Polly
20.0.0git
llvm-project
polly
lib
External
isl
isl_union_locals_templ.c
Go to the documentation of this file.
1
/*
2
* Copyright 2020 Cerebras Systems
3
*
4
* Use of this software is governed by the MIT license
5
*
6
* Written by Sven Verdoolaege,
7
* Cerebras Systems, 175 S San Antonio Rd, Los Altos, CA, USA
8
*/
9
10
/* isl_union_*_every_* callback that checks whether "pw"
11
* is free of local variables.
12
*/
13
static
isl_bool
FN
(
UNION
,no_locals_el)(
__isl_keep
PW
*pw,
void
*
user
)
14
{
15
return
isl_bool_not
(
FN
(
PW
,involves_locals)(pw));
16
}
17
18
/* Does "u" involve any local variables, i.e., integer divisions?
19
*/
20
isl_bool
FN
(
UNION
,involves_locals)(
__isl_keep
UNION
*u)
21
{
22
isl_bool
no_locals;
23
24
no_locals =
FN
(
FN
(
UNION
,every),
BASE
)(u, &
FN
(
UNION
,no_locals_el), NULL);
25
26
return
isl_bool_not
(no_locals);
27
}
FN
#define FN(TYPE, NAME)
Definition:
check_parse_fail_test_templ.c:15
__isl_keep
#define __isl_keep
Definition:
ctx.h:25
isl_bool_not
isl_bool isl_bool_not(isl_bool b)
Definition:
isl_ctx.c:32
isl_bool
isl_bool
Definition:
ctx.h:89
BASE
#define BASE
Definition:
flow_cmp.c:49
user
isl_stat isl_stat(*) void user)
Definition:
hmap.h:39
PW
#define PW
Definition:
isl_aff.c:4582
UNION
Definition:
isl_union_multi.c:37
Generated on Wed Nov 13 2024 03:17:29 for Polly by
1.9.6