[PATCH] [OPENMP] Codegen for 'private' clause in 'sections' directive.

Alexey Bataev a.bataev at hotmail.com
Thu Apr 23 22:11:48 PDT 2015


Hi rjmccall, hfinkel,

If there are 2 or more sections in a 'section' directive the following code is generated:
```
<default init for privates>
@__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()) {
<default init for privates>
@__kmpc_end_single();
}
```

http://reviews.llvm.org/D9239

Files:
  lib/CodeGen/CGStmtOpenMP.cpp
  test/OpenMP/sections_private_codegen.cpp

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D9239.24354.patch
Type: text/x-patch
Size: 9306 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150424/9ff0769f/attachment.bin>


More information about the cfe-commits mailing list