diff options
author | Alexey Bataev <a.bataev@hotmail.com> | 2015-10-08 09:10:53 +0000 |
---|---|---|
committer | Alexey Bataev <a.bataev@hotmail.com> | 2015-10-08 09:10:53 +0000 |
commit | f24e7b1f609cdbf6c750c74c10a69acc0d56f009 (patch) | |
tree | 7a25d6e03862a4acd361362d4834fd6c1b927b2f /clang/lib/AST/StmtProfile.cpp | |
parent | 3ddef773ad5c994988c2f753f6d7107d74eeb4e8 (diff) | |
download | bcm5719-llvm-f24e7b1f609cdbf6c750c74c10a69acc0d56f009.tar.gz bcm5719-llvm-f24e7b1f609cdbf6c750c74c10a69acc0d56f009.zip |
[OPENMP 4.1] Codegen for array sections/subscripts in 'reduction' clause.
OpenMP 4.1 adds support for array sections/subscripts in 'reduction' clause. Patch adds codegen for this feature.
llvm-svn: 249672
Diffstat (limited to 'clang/lib/AST/StmtProfile.cpp')
-rw-r--r-- | clang/lib/AST/StmtProfile.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/lib/AST/StmtProfile.cpp b/clang/lib/AST/StmtProfile.cpp index c807f5e2f9c..cf5289adc2c 100644 --- a/clang/lib/AST/StmtProfile.cpp +++ b/clang/lib/AST/StmtProfile.cpp @@ -382,6 +382,9 @@ void OMPClauseProfiler::VisitOMPReductionClause( C->getQualifierLoc().getNestedNameSpecifier()); Profiler->VisitName(C->getNameInfo().getName()); VisitOMPClauseList(C); + for (auto *E : C->privates()) { + Profiler->VisitStmt(E); + } for (auto *E : C->lhs_exprs()) { Profiler->VisitStmt(E); } |