diff options
author | Arpith Chacko Jacob <acjacob@us.ibm.com> | 2017-01-25 00:57:16 +0000 |
---|---|---|
committer | Arpith Chacko Jacob <acjacob@us.ibm.com> | 2017-01-25 00:57:16 +0000 |
commit | 33c849a007707d6fd56511cf6f150fe00587434b (patch) | |
tree | be0552801e2c4fbd51ff8026b3dcc1b8b82a2ee8 /clang/lib/Serialization/ASTWriterStmt.cpp | |
parent | 11f6907f408ac72fe5c8af5e86f6ce20366d76b4 (diff) | |
download | bcm5719-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/Serialization/ASTWriterStmt.cpp')
-rw-r--r-- | clang/lib/Serialization/ASTWriterStmt.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Serialization/ASTWriterStmt.cpp b/clang/lib/Serialization/ASTWriterStmt.cpp index 4e8660e028d..ea6f579374f 100644 --- a/clang/lib/Serialization/ASTWriterStmt.cpp +++ b/clang/lib/Serialization/ASTWriterStmt.cpp @@ -1818,6 +1818,7 @@ void OMPClauseWriter::VisitOMPFinalClause(OMPFinalClause *C) { } void OMPClauseWriter::VisitOMPNumThreadsClause(OMPNumThreadsClause *C) { + VisitOMPClauseWithPreInit(C); Record.AddStmt(C->getNumThreads()); Record.AddSourceLocation(C->getLParenLoc()); } |