]> granicus.if.org Git - clang/commit
[OPENMP] Initial codegen for 'single' directive.
authorAlexey Bataev <a.bataev@hotmail.com>
Thu, 5 Feb 2015 06:35:41 +0000 (06:35 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Thu, 5 Feb 2015 06:35:41 +0000 (06:35 +0000)
commit926060ac8046eba854826124cef96f5f25dae2ca
treefc18dc1c661484bb87ad63fa200880c7070d363a
parent789175b49aa1bb509ac47e81e3f603e97fa6f36b
[OPENMP] Initial codegen for 'single' directive.
This patch emits the following code for the single directive:

#pragma omp single
<body>
<---->

if(__kmpc_single(...)) {
    <body>
      __kmpc_end_single(...);
}
Differential Revision: http://reviews.llvm.org/D7045

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@228275 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGOpenMPRuntime.cpp
lib/CodeGen/CGOpenMPRuntime.h
lib/CodeGen/CGStmtOpenMP.cpp
test/OpenMP/single_codegen.cpp [new file with mode: 0644]