summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/StmtProfile.cpp
diff options
context:
space:
mode:
authorKelvin Li <kkwli0@gmail.com>2015-11-27 18:47:36 +0000
committerKelvin Li <kkwli0@gmail.com>2015-11-27 18:47:36 +0000
commita15fb1a1105b08e6a43993a0e48e92475b4edbbd (patch)
tree9fa4d1e05463c3662f107c46b60a3f19cf7c768a /clang/lib/AST/StmtProfile.cpp
parentd08cb6c5283a26d7b2fda44e234b1c814426a3f8 (diff)
downloadbcm5719-llvm-a15fb1a1105b08e6a43993a0e48e92475b4edbbd.tar.gz
bcm5719-llvm-a15fb1a1105b08e6a43993a0e48e92475b4edbbd.zip
[OpenMP] Parsing and sema support for thread_limit clause.
http://reviews.llvm.org/D15029 llvm-svn: 254207
Diffstat (limited to 'clang/lib/AST/StmtProfile.cpp')
-rw-r--r--clang/lib/AST/StmtProfile.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/lib/AST/StmtProfile.cpp b/clang/lib/AST/StmtProfile.cpp
index 5711bfc8a2b..511303a5152 100644
--- a/clang/lib/AST/StmtProfile.cpp
+++ b/clang/lib/AST/StmtProfile.cpp
@@ -456,6 +456,10 @@ void OMPClauseProfiler::VisitOMPMapClause(const OMPMapClause *C) {
void OMPClauseProfiler::VisitOMPNumTeamsClause(const OMPNumTeamsClause *C) {
Profiler->VisitStmt(C->getNumTeams());
}
+void OMPClauseProfiler::VisitOMPThreadLimitClause(
+ const OMPThreadLimitClause *C) {
+ Profiler->VisitStmt(C->getThreadLimit());
+}
}
void
OpenPOWER on IntegriCloud