LLVM OpenMP
runtime
test
transform
split
nonconstant_incr.c
Go to the documentation of this file.
1
// RUN: %libomp-compile -fopenmp-version=60 && %libomp-run \
2
// RUN: | FileCheck %s --match-full-lines
3
4
#include <stdlib.h>
5
#include <stdio.h>
6
7
int
main
() {
8
int
n = 19;
9
int
c = 3;
10
printf(
"do\n"
);
11
#pragma omp split counts(1, omp_fill, 1)
12
for
(
int
i
= 7;
i
< n;
i
+= c)
13
printf(
"i=%d\n"
,
i
);
14
printf(
"done\n"
);
15
return
EXIT_SUCCESS;
16
}
17
18
// CHECK: do
19
// CHECK-NEXT: i=7
20
// CHECK-NEXT: i=10
21
// CHECK-NEXT: i=13
22
// CHECK-NEXT: i=16
23
// CHECK-NEXT: done
i
#define i
Definition
kmp_stub.cpp:88
main
int main()
Definition
nonconstant_incr.c:7
Generated on
for LLVM OpenMP by
1.14.0