diff options
author | Alexey Bataev <a.bataev@hotmail.com> | 2015-04-24 03:37:03 +0000 |
---|---|---|
committer | Alexey Bataev <a.bataev@hotmail.com> | 2015-04-24 03:37:03 +0000 |
commit | 2cb9b95adf7a46ccb86ead94e4a6002a4fd7aed5 (patch) | |
tree | 9664a0f879a534cfe8e33c597b4312d889941c8e /clang/test/OpenMP/single_codegen.cpp | |
parent | 62af99b0db1375a449a7a3771685111d1663e54a (diff) | |
download | bcm5719-llvm-2cb9b95adf7a46ccb86ead94e4a6002a4fd7aed5.tar.gz bcm5719-llvm-2cb9b95adf7a46ccb86ead94e4a6002a4fd7aed5.zip |
[OPENMP] Codegen for 'firstprivate' clause in 'sections' directive.
If there are 2 or more sections in a 'section' directive the following code is generated:
<init for firstprivates>
@__kmpc_cancel_barrier();// To avoid data race in firstprivate init
@__kmpc_for_static_init_4();
<BODY for sections directive>
@__kmpc_for_static_fini()
If there is only one section, the following code is generated:
if (@__kmpc_single()) {
<init for firstprivates>
@__kmpc_end_single();
}
@__kmpc_cancel_barrier(); // To avoid data race in firstprivate init
Differential Revision: http://reviews.llvm.org/D9214
llvm-svn: 235691
Diffstat (limited to 'clang/test/OpenMP/single_codegen.cpp')
0 files changed, 0 insertions, 0 deletions