diff options
author | Alexey Bataev <a.bataev@hotmail.com> | 2015-06-16 13:14:42 +0000 |
---|---|---|
committer | Alexey Bataev <a.bataev@hotmail.com> | 2015-06-16 13:14:42 +0000 |
commit | fc087ecc051e52229cc0af176436005d97152ef3 (patch) | |
tree | 798ee933f7a1a092e36fccf12970fd495ba5db67 /clang/lib/CodeGen/CodeGenFunction.h | |
parent | 8d8b13dc19d5f031a04ba1393be70e7be37dd561 (diff) | |
download | llvm-fc087ecc051e52229cc0af176436005d97152ef3.zip llvm-fc087ecc051e52229cc0af176436005d97152ef3.tar.gz llvm-fc087ecc051e52229cc0af176436005d97152ef3.tar.bz2 |
[OPENMP] Support lastprivate clause in omp simd directive.
Added codegen for lastprivate clauses within simd loop-based directives.
llvm-svn: 239813
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.h')
-rw-r--r-- | clang/lib/CodeGen/CodeGenFunction.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.h b/clang/lib/CodeGen/CodeGenFunction.h index b3c31f6..fddecbc 100644 --- a/clang/lib/CodeGen/CodeGenFunction.h +++ b/clang/lib/CodeGen/CodeGenFunction.h @@ -2130,9 +2130,9 @@ public: /// \param D Directive that has at least one 'lastprivate' directives. /// \param IsLastIterCond Boolean condition that must be set to 'i1 true' if /// it is the last iteration of the loop code in associated directive, or to - /// 'i1 false' otherwise. + /// 'i1 false' otherwise. If this item is nullptr, no final check is required. void EmitOMPLastprivateClauseFinal(const OMPExecutableDirective &D, - llvm::Value *IsLastIterCond); + llvm::Value *IsLastIterCond = nullptr); /// \brief Emit initial code for reduction variables. Creates reduction copies /// and initializes them with the values according to OpenMP standard. /// |