]> granicus.if.org Git - clang/commit
[OPENMP] Codegen for 'private' clause in 'single' directive.
authorAlexey Bataev <a.bataev@hotmail.com>
Mon, 27 Apr 2015 03:48:52 +0000 (03:48 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Mon, 27 Apr 2015 03:48:52 +0000 (03:48 +0000)
commitf22d311eeac8b2e7186451e527c9fe826961d1bb
tree4642fc3eff9404d71a56d93b0607cf2975feeced
parent8e9cfe287c29039331e4b1a656a56a64f7527a62
[OPENMP] Codegen for 'private' clause in 'single' directive.
Emit the following code for 'single' directive with 'private' clause:

if (@__kmpc_single()) {
  <default init for privates>
  @__kmpc_end_single();
}
Differential Revision: http://reviews.llvm.org/D9238

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