aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenFunction.h
diff options
context:
space:
mode:
authorAlexey Bataev <a.bataev@hotmail.com>2015-06-16 13:14:42 +0000
committerAlexey Bataev <a.bataev@hotmail.com>2015-06-16 13:14:42 +0000
commitfc087ecc051e52229cc0af176436005d97152ef3 (patch)
tree798ee933f7a1a092e36fccf12970fd495ba5db67 /clang/lib/CodeGen/CodeGenFunction.h
parent8d8b13dc19d5f031a04ba1393be70e7be37dd561 (diff)
downloadllvm-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.h4
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.
///