summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/StmtProfile.cpp
diff options
context:
space:
mode:
authorAlexey Bataev <a.bataev@hotmail.com>2014-06-20 07:16:17 +0000
committerAlexey Bataev <a.bataev@hotmail.com>2014-06-20 07:16:17 +0000
commit56dafe87c287f24f3640a3d969a3598d661256bd (patch)
tree0b4e09b3964bbc1f63c3087c5e2193cdaf91b834 /clang/lib/AST/StmtProfile.cpp
parentf5e2997affd04c404042f9a6e35cf86997a2ad84 (diff)
downloadbcm5719-llvm-56dafe87c287f24f3640a3d969a3598d661256bd.tar.gz
bcm5719-llvm-56dafe87c287f24f3640a3d969a3598d661256bd.zip
[OPENMP] Initial support for 'schedule' clause.
llvm-svn: 211342
Diffstat (limited to 'clang/lib/AST/StmtProfile.cpp')
-rw-r--r--clang/lib/AST/StmtProfile.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/lib/AST/StmtProfile.cpp b/clang/lib/AST/StmtProfile.cpp
index ac6a1eb59ab..bb41489597e 100644
--- a/clang/lib/AST/StmtProfile.cpp
+++ b/clang/lib/AST/StmtProfile.cpp
@@ -288,6 +288,11 @@ void OMPClauseProfiler::VisitOMPDefaultClause(const OMPDefaultClause *C) { }
void OMPClauseProfiler::VisitOMPProcBindClause(const OMPProcBindClause *C) { }
+void OMPClauseProfiler::VisitOMPScheduleClause(const OMPScheduleClause *C) {
+ if (C->getChunkSize())
+ Profiler->VisitStmt(C->getChunkSize());
+}
+
template<typename T>
void OMPClauseProfiler::VisitOMPClauseList(T *Node) {
for (auto *I : Node->varlists())
OpenPOWER on IntegriCloud