diff options
author | Arpith Chacko Jacob <acjacob@us.ibm.com> | 2017-01-25 11:44:35 +0000 |
---|---|---|
committer | Arpith Chacko Jacob <acjacob@us.ibm.com> | 2017-01-25 11:44:35 +0000 |
commit | 2c44f4663c11135e794a30316dee7328979baf5d (patch) | |
tree | 36c3748258e0adb2c952b5078beed7fc330d9f5e /lib/AST/StmtProfile.cpp | |
parent | a9053102c29f2ce3b1af17679b45756a34702a6c (diff) | |
download | clang-2c44f4663c11135e794a30316dee7328979baf5d.tar.gz |
[OpenMP] Support for thread_limit-clause on the 'target teams' directive.
The thread_limit-clause on the combined directive applies to the
'teams' region of this construct. We modify the ThreadLimitClause
class to capture the clause expression within the 'target' region.
Reviewers: ABataev
Differential Revision: https://reviews.llvm.org/D29087
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@293049 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/StmtProfile.cpp')
-rw-r--r-- | lib/AST/StmtProfile.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/AST/StmtProfile.cpp b/lib/AST/StmtProfile.cpp index b12258016d..49e43de638 100644 --- a/lib/AST/StmtProfile.cpp +++ b/lib/AST/StmtProfile.cpp @@ -503,6 +503,7 @@ void OMPClauseProfiler::VisitOMPNumTeamsClause(const OMPNumTeamsClause *C) { } void OMPClauseProfiler::VisitOMPThreadLimitClause( const OMPThreadLimitClause *C) { + VistOMPClauseWithPreInit(C); if (C->getThreadLimit()) Profiler->VisitStmt(C->getThreadLimit()); } |