diff options
| author | Alexey Bataev <a.bataev@hotmail.com> | 2016-03-09 09:49:09 +0000 |
|---|---|---|
| committer | Alexey Bataev <a.bataev@hotmail.com> | 2016-03-09 09:49:09 +0000 |
| commit | ef549a89559c1038f2cc8fbdf62a49ec78ef5aa7 (patch) | |
| tree | 3b1ff5749eb4106bc5db32c6a9865ca53c3de187 /clang/lib/CodeGen/CodeGenFunction.h | |
| parent | 78849fb464ce63bd701e07d607d4c70ceec897f4 (diff) | |
| download | bcm5719-llvm-ef549a89559c1038f2cc8fbdf62a49ec78ef5aa7.tar.gz bcm5719-llvm-ef549a89559c1038f2cc8fbdf62a49ec78ef5aa7.zip | |
[OPENMP 4.5] Codegen for data members in 'linear' clause
OpenMP 4.5 allows privatization of non-static data members in OpenMP
constructs. Patch adds proper codegen support for data members in
'linear' clause
llvm-svn: 263003
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.h')
| -rw-r--r-- | clang/lib/CodeGen/CodeGenFunction.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.h b/clang/lib/CodeGen/CodeGenFunction.h index a84a0f0e73c..13a3acbaeda 100644 --- a/clang/lib/CodeGen/CodeGenFunction.h +++ b/clang/lib/CodeGen/CodeGenFunction.h @@ -2389,7 +2389,9 @@ private: /// Helpers for the OpenMP loop directives. void EmitOMPLoopBody(const OMPLoopDirective &D, JumpDest LoopExit); void EmitOMPSimdInit(const OMPLoopDirective &D, bool IsMonotonic = false); - void EmitOMPSimdFinal(const OMPLoopDirective &D); + void EmitOMPSimdFinal( + const OMPLoopDirective &D, + const llvm::function_ref<llvm::Value *(CodeGenFunction &)> &CondGen); /// \brief Emit code for the worksharing loop-based directive. /// \return true, if this construct has any lastprivate clause, false - /// otherwise. |

