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
misc_bugs
omp_nothing.c
Go to the documentation of this file.
1
// RUN: %libomp-compile
2
// RUN: %libomp-run | FileCheck %s --check-prefix OMP-CHECK
3
4
#include <stdio.h>
5
6
void
foo
(
int
x) {
7
printf(
"foo"
);
8
return
;
9
}
10
11
int
main
() {
12
int
x = 4;
13
// should call foo()
14
if
(x % 2 == 0)
15
#pragma omp nothing
16
foo
(x);
17
18
// should not call foo()
19
x = 3;
20
if
(x % 2 == 0)
21
#pragma omp nothing
22
foo
(x);
23
24
// OMP-CHECK: foo
25
// OMP-CHECK-NOT: foo
26
return
0;
27
}
main
int main()
Definition:
omp_nothing.c:11
foo
void foo()
Definition:
target_thread_limit.cpp:7
Generated on Sun Jun 15 2025 06:09:32 for LLVM OpenMP by
1.9.6