diff options
Diffstat (limited to 'contrib/llvm/tools/clang/lib/AST/StmtProfile.cpp')
| -rw-r--r-- | contrib/llvm/tools/clang/lib/AST/StmtProfile.cpp | 24 | 
1 files changed, 24 insertions, 0 deletions
diff --git a/contrib/llvm/tools/clang/lib/AST/StmtProfile.cpp b/contrib/llvm/tools/clang/lib/AST/StmtProfile.cpp index f1fbe2806b5d..e06386018d68 100644 --- a/contrib/llvm/tools/clang/lib/AST/StmtProfile.cpp +++ b/contrib/llvm/tools/clang/lib/AST/StmtProfile.cpp @@ -549,6 +549,30 @@ void OMPClauseProfiler::VisitOMPReductionClause(        Profiler->VisitStmt(E);    }  } +void OMPClauseProfiler::VisitOMPTaskReductionClause( +    const OMPTaskReductionClause *C) { +  Profiler->VisitNestedNameSpecifier( +      C->getQualifierLoc().getNestedNameSpecifier()); +  Profiler->VisitName(C->getNameInfo().getName()); +  VisitOMPClauseList(C); +  VistOMPClauseWithPostUpdate(C); +  for (auto *E : C->privates()) { +    if (E) +      Profiler->VisitStmt(E); +  } +  for (auto *E : C->lhs_exprs()) { +    if (E) +      Profiler->VisitStmt(E); +  } +  for (auto *E : C->rhs_exprs()) { +    if (E) +      Profiler->VisitStmt(E); +  } +  for (auto *E : C->reduction_ops()) { +    if (E) +      Profiler->VisitStmt(E); +  } +}  void OMPClauseProfiler::VisitOMPLinearClause(const OMPLinearClause *C) {    VisitOMPClauseList(C);    VistOMPClauseWithPostUpdate(C);  | 
