Polly
20.0.0git
Toggle main menu visibility
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
w
Functions
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
v
Variables
Typedefs
Enumerations
Enumerator
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
y
z
~
Functions
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
z
~
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
y
z
Typedefs
a
b
c
d
e
i
l
m
p
r
s
v
Enumerations
Enumerator
Related Functions
a
d
f
l
m
s
v
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
Typedefs
b
f
i
m
o
r
s
t
Enumerations
a
g
i
m
o
t
Enumerator
i
m
o
t
v
Macros
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
z
llvm-project
polly
lib
External
isl
isl_multi_from_base_templ.c
Go to the documentation of this file.
1
/*
2
* Copyright 2012,2014 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
#include <
isl/space.h
>
11
12
#include <
isl_multi_macro.h
>
13
14
/* Create a multiple expression with a single output/set dimension
15
* equal to "el".
16
* For most multiple expression types, the base type has a single
17
* output/set dimension and the space of the result is therefore
18
* the same as the space of the input.
19
* In the case of isl_multi_union_pw_aff, however, the base type
20
* lives in a parameter space and we therefore need to add
21
* a single set dimension.
22
*/
23
__isl_give
MULTI
(
BASE
) *
FN
(
FN
(
MULTI
(
BASE
),from),
BASE
)(
__isl_take
EL
*el)
24
{
25
isl_space
*space;
26
MULTI
(
BASE
) *multi;
27
28
space =
FN
(
EL
,get_space(el));
29
if
(
isl_space_is_params
(space)) {
30
space =
isl_space_set_from_params
(space);
31
space =
isl_space_add_dims
(space,
isl_dim_set
, 1);
32
}
33
multi =
FN
(
MULTI
(
BASE
),alloc)(space);
34
multi =
FN
(
FN
(
MULTI
(
BASE
),
set
),
BASE
)(multi, 0, el);
35
36
return
multi;
37
}
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
BASE
#define BASE
Definition:
flow_cmp.c:49
EL
#define EL
Definition:
isl_aff_private.h:238
isl_multi_macro.h
MULTI
#define MULTI(BASE)
Definition:
isl_multi_macro.h:6
set
const char * set
Definition:
isl_test.c:1356
space.h
isl_space_set_from_params
__isl_give isl_space * isl_space_set_from_params(__isl_take isl_space *space)
Definition:
isl_space.c:2227
isl_space_is_params
isl_bool isl_space_is_params(__isl_keep isl_space *space)
Definition:
isl_space.c:179
isl_space_add_dims
__isl_give isl_space * isl_space_add_dims(__isl_take isl_space *space, enum isl_dim_type type, unsigned n)
Definition:
isl_space.c:1229
isl_dim_set
@ isl_dim_set
Definition:
space_type.h:18
isl_space
Definition:
isl_space_private.h:10
Generated on Fri Apr 25 2025 19:44:05 for Polly by
1.9.6