diff options
author | Alexey Bataev <a.bataev@hotmail.com> | 2014-06-20 07:16:17 +0000 |
---|---|---|
committer | Alexey Bataev <a.bataev@hotmail.com> | 2014-06-20 07:16:17 +0000 |
commit | 56dafe87c287f24f3640a3d969a3598d661256bd (patch) | |
tree | 0b4e09b3964bbc1f63c3087c5e2193cdaf91b834 /clang/lib/AST/StmtProfile.cpp | |
parent | f5e2997affd04c404042f9a6e35cf86997a2ad84 (diff) | |
download | bcm5719-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.cpp | 5 |
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()) |