diff options
author | Carlo Bertolli <cbertol@us.ibm.com> | 2016-01-15 18:50:31 +0000 |
---|---|---|
committer | Carlo Bertolli <cbertol@us.ibm.com> | 2016-01-15 18:50:31 +0000 |
commit | b4adf55e0f050a494cc0c9a98b0bd46e8e30070a (patch) | |
tree | 450730c8fe4392d25666e1a3aad1481ce2f16c40 /clang/lib/AST/StmtProfile.cpp | |
parent | 47f2452da84f820addf92cb003e7d4905d4aa1bc (diff) | |
download | bcm5719-llvm-b4adf55e0f050a494cc0c9a98b0bd46e8e30070a.tar.gz bcm5719-llvm-b4adf55e0f050a494cc0c9a98b0bd46e8e30070a.zip |
Add OpenMP dist_schedule clause to distribute directive and related regression tests.
llvm-svn: 257917
Diffstat (limited to 'clang/lib/AST/StmtProfile.cpp')
-rw-r--r-- | clang/lib/AST/StmtProfile.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/clang/lib/AST/StmtProfile.cpp b/clang/lib/AST/StmtProfile.cpp index 175a43abbf6..f8aa4db2c06 100644 --- a/clang/lib/AST/StmtProfile.cpp +++ b/clang/lib/AST/StmtProfile.cpp @@ -611,6 +611,16 @@ void StmtProfiler::VisitOMPDistributeDirective( VisitOMPLoopDirective(S); } +void OMPClauseProfiler::VisitOMPDistScheduleClause( + const OMPDistScheduleClause *C) { + if (C->getChunkSize()) { + Profiler->VisitStmt(C->getChunkSize()); + if (C->getHelperChunkSize()) { + Profiler->VisitStmt(C->getChunkSize()); + } + } +} + void StmtProfiler::VisitExpr(const Expr *S) { VisitStmt(S); } |