[PATCH] [OPENMP] Initial codegen for 'single' directive.

Alexey Bataev a.bataev at hotmail.com
Sun Jan 18 21:33:26 PST 2015


Hi rjmccall, fraggamuffin, ejstotzer,

This patch emits the following code for the single directive:

```
#pragma omp single
<body>
```

<---->

```
if(__kmpc_single(...)) {
  <body>
  __kmpc_end_single(...);
}
```

http://reviews.llvm.org/D7045

Files:
  lib/CodeGen/CGOpenMPRuntime.cpp
  lib/CodeGen/CGOpenMPRuntime.h
  lib/CodeGen/CGStmtOpenMP.cpp
  test/OpenMP/single_codegen.cpp

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D7045.18365.patch
Type: text/x-patch
Size: 7227 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150119/12358431/attachment.bin>


More information about the cfe-commits mailing list