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__kmpc_fork_call_if.c
Go to the documentation of this file.
1
// RUN: %libomp-compile && %t | FileCheck %s
2
3
#include <stdio.h>
4
#include <omp.h>
5
6
typedef
int32_t
kmp_int32
;
7
typedef
void
*
ident_t
;
8
typedef
void
*
kmpc_micro
;
9
10
#ifdef __cplusplus
11
extern
"C"
{
12
#endif
13
extern
void
__kmpc_fork_call_if
(
ident_t
*
loc
,
kmp_int32
argc,
14
kmpc_micro
microtask
,
kmp_int32
cond,
15
void
*
args
);
16
#ifdef __cplusplus
17
}
18
#endif
19
20
// Microtask function for parallel region
21
void
microtask
(
int
*global_tid,
int
*bound_tid) {
22
// CHECK: PASS
23
if
(omp_in_parallel()) {
24
printf(
"FAIL\n"
);
25
}
else
{
26
printf(
"PASS\n"
);
27
}
28
}
29
30
int
main
() {
31
// Condition for parallelization (false in this case)
32
int
cond = 0;
33
// Call __kmpc_fork_call_if
34
__kmpc_fork_call_if
(NULL, 0,
microtask
, cond, NULL);
35
return
0;
36
}
__kmpc_fork_call_if
void __kmpc_fork_call_if(ident_t *loc, kmp_int32 argc, kmpc_micro microtask, kmp_int32 cond, void *args)
Definition:
kmp_csupport.cpp:388
args
#define args
microtask
void microtask(int *global_tid, int *bound_tid)
Definition:
omp__kmpc_fork_call_if.c:21
kmp_int32
int32_t kmp_int32
Definition:
omp__kmpc_fork_call_if.c:6
kmpc_micro
void * kmpc_micro
Definition:
omp__kmpc_fork_call_if.c:8
ident_t
void * ident_t
Definition:
omp__kmpc_fork_call_if.c:7
main
int main()
Definition:
omp__kmpc_fork_call_if.c:30
loc
static id loc
Definition:
kmp_task_depend_all.c:168
ident_t
Definition:
teams-no-par.c:23
Generated on Sun Jun 1 2025 10:54:21 for LLVM OpenMP by
1.9.6