LLVM OpenMP
20.0.0git
Toggle main menu visibility
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
c
d
e
g
h
i
m
n
p
r
s
t
u
Functions
c
d
e
g
i
m
n
p
r
s
u
Variables
Classes
Class List
Class Index
Class Hierarchy
Class 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
z
~
Functions
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
w
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
Typedefs
Enumerations
Enumerator
Related Functions
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
z
Functions
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
Typedefs
_
a
b
c
d
e
i
k
l
m
n
o
p
r
t
u
Enumerations
_
b
c
d
f
k
l
n
o
s
t
Enumerator
_
a
b
c
d
e
f
k
l
n
o
p
r
s
t
Macros
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
runtime
test
transform
interchange
intfor.c
Go to the documentation of this file.
1
// RUN: %libomp-compile-and-run | FileCheck %s --match-full-lines
2
3
#ifndef HEADER
4
#define HEADER
5
6
#include <stdlib.h>
7
#include <stdio.h>
8
9
int
main
() {
10
printf(
"do\n"
);
11
#pragma omp interchange
12
for
(
int
i
= 7;
i
< 17;
i
+= 3)
13
for
(
int
j
= 8;
j
< 18;
j
+= 3)
14
printf(
"i=%d j=%d\n"
,
i
,
j
);
15
printf(
"done\n"
);
16
return
EXIT_SUCCESS;
17
}
18
19
#endif
/* HEADER */
20
21
// CHECK: do
22
// CHECK-NEXT: i=7 j=8
23
// CHECK-NEXT: i=10 j=8
24
// CHECK-NEXT: i=13 j=8
25
// CHECK-NEXT: i=16 j=8
26
// CHECK-NEXT: i=7 j=11
27
// CHECK-NEXT: i=10 j=11
28
// CHECK-NEXT: i=13 j=11
29
// CHECK-NEXT: i=16 j=11
30
// CHECK-NEXT: i=7 j=14
31
// CHECK-NEXT: i=10 j=14
32
// CHECK-NEXT: i=13 j=14
33
// CHECK-NEXT: i=16 j=14
34
// CHECK-NEXT: i=7 j=17
35
// CHECK-NEXT: i=10 j=17
36
// CHECK-NEXT: i=13 j=17
37
// CHECK-NEXT: i=16 j=17
38
// CHECK-NEXT: done
main
int main()
Definition:
intfor.c:9
i
#define i
Definition:
kmp_stub.cpp:87
j
int j
Definition:
omp_single_copyprivate.c:6
Generated on Fri Jun 13 2025 09:43:50 for LLVM OpenMP by
1.9.6