LLVM OpenMP
runtime
test
transform
split
leq_bound.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 = 4;
9
printf(
"do\n"
);
10
#pragma omp split counts(2, omp_fill)
11
for
(
int
i
= 0;
i
<= n; ++
i
)
12
printf(
"i=%d\n"
,
i
);
13
printf(
"done\n"
);
14
return
EXIT_SUCCESS;
15
}
16
17
// CHECK: do
18
// CHECK-NEXT: i=0
19
// CHECK-NEXT: i=1
20
// CHECK-NEXT: i=2
21
// CHECK-NEXT: i=3
22
// CHECK-NEXT: i=4
23
// CHECK-NEXT: done
i
#define i
Definition
kmp_stub.cpp:88
main
int main()
Definition
leq_bound.c:7
Generated on
for LLVM OpenMP by
1.14.0