diff options
author | Alexey Bataev <a.bataev@hotmail.com> | 2014-06-16 07:08:35 +0000 |
---|---|---|
committer | Alexey Bataev <a.bataev@hotmail.com> | 2014-06-16 07:08:35 +0000 |
commit | c5e025831ba7bd42ea0e62e0828482c1263fffa1 (patch) | |
tree | cfbe6d92c3e1a4a8ea4b0e1eba35f8aac98baa76 /clang/lib/AST/StmtProfile.cpp | |
parent | 43ab82c562b4b1c22d2ace3cced4cf310a99f206 (diff) | |
download | bcm5719-llvm-c5e025831ba7bd42ea0e62e0828482c1263fffa1.tar.gz bcm5719-llvm-c5e025831ba7bd42ea0e62e0828482c1263fffa1.zip |
[OPENMP] Initial support of 'reduction' clause
llvm-svn: 211007
Diffstat (limited to 'clang/lib/AST/StmtProfile.cpp')
-rw-r--r-- | clang/lib/AST/StmtProfile.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/lib/AST/StmtProfile.cpp b/clang/lib/AST/StmtProfile.cpp index 8d97d71db78..17cd28e46a4 100644 --- a/clang/lib/AST/StmtProfile.cpp +++ b/clang/lib/AST/StmtProfile.cpp @@ -308,6 +308,13 @@ OMPClauseProfiler::VisitOMPLastprivateClause(const OMPLastprivateClause *C) { void OMPClauseProfiler::VisitOMPSharedClause(const OMPSharedClause *C) { VisitOMPClauseList(C); } +void OMPClauseProfiler::VisitOMPReductionClause( + const OMPReductionClause *C) { + Profiler->VisitNestedNameSpecifier( + C->getQualifierLoc().getNestedNameSpecifier()); + Profiler->VisitName(C->getNameInfo().getName()); + VisitOMPClauseList(C); +} void OMPClauseProfiler::VisitOMPLinearClause(const OMPLinearClause *C) { VisitOMPClauseList(C); Profiler->VisitStmt(C->getStep()); |