From b4adf55e0f050a494cc0c9a98b0bd46e8e30070a Mon Sep 17 00:00:00 2001 From: Carlo Bertolli Date: Fri, 15 Jan 2016 18:50:31 +0000 Subject: Add OpenMP dist_schedule clause to distribute directive and related regression tests. llvm-svn: 257917 --- clang/lib/AST/StmtProfile.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'clang/lib/AST/StmtProfile.cpp') 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); } -- cgit v1.2.3