summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/StmtProfile.cpp
diff options
context:
space:
mode:
authorArpith Chacko Jacob <acjacob@us.ibm.com>2017-01-25 00:57:16 +0000
committerArpith Chacko Jacob <acjacob@us.ibm.com>2017-01-25 00:57:16 +0000
commit33c849a007707d6fd56511cf6f150fe00587434b (patch)
treebe0552801e2c4fbd51ff8026b3dcc1b8b82a2ee8 /clang/lib/AST/StmtProfile.cpp
parent11f6907f408ac72fe5c8af5e86f6ce20366d76b4 (diff)
downloadbcm5719-llvm-33c849a007707d6fd56511cf6f150fe00587434b.tar.gz
bcm5719-llvm-33c849a007707d6fd56511cf6f150fe00587434b.zip
[OpenMP] Support for the num_threads-clause on 'target parallel'.
The num_threads-clause on the combined directive applies to the 'parallel' region of this construct. We modify the NumThreadsClause class to capture the clause expression within the 'target' region. The offload runtime call for 'target parallel' is changed to __tgt_target_teams() with 1 team and the number of threads set by this clause or a default if none. Reviewers: ABataev Differential Revision: https://reviews.llvm.org/D29082 llvm-svn: 292997
Diffstat (limited to 'clang/lib/AST/StmtProfile.cpp')
-rw-r--r--clang/lib/AST/StmtProfile.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/AST/StmtProfile.cpp b/clang/lib/AST/StmtProfile.cpp
index 2f3653f32d3..fa086a3f337 100644
--- a/clang/lib/AST/StmtProfile.cpp
+++ b/clang/lib/AST/StmtProfile.cpp
@@ -294,6 +294,7 @@ void OMPClauseProfiler::VisitOMPFinalClause(const OMPFinalClause *C) {
}
void OMPClauseProfiler::VisitOMPNumThreadsClause(const OMPNumThreadsClause *C) {
+ VistOMPClauseWithPreInit(C);
if (C->getNumThreads())
Profiler->VisitStmt(C->getNumThreads());
}
OpenPOWER on IntegriCloud