diff options
author | Arpith Chacko Jacob <acjacob@us.ibm.com> | 2017-01-25 11:28:18 +0000 |
---|---|---|
committer | Arpith Chacko Jacob <acjacob@us.ibm.com> | 2017-01-25 11:28:18 +0000 |
commit | bc126344e1a38e96189a74ef0942c0ba7731a363 (patch) | |
tree | e601eb3a51538cb0798a193086f413a7ee564e97 /clang/lib/Serialization/ASTWriterStmt.cpp | |
parent | 46897a46eefd346143bd461e100821dfcbb88631 (diff) | |
download | bcm5719-llvm-bc126344e1a38e96189a74ef0942c0ba7731a363.tar.gz bcm5719-llvm-bc126344e1a38e96189a74ef0942c0ba7731a363.zip |
[OpenMP] Support for num_teams-clause on the 'target teams' directive.
The num_teams-clause on the combined directive applies to the
'teams' region of this construct. We modify the NumTeamsClause
class to capture the clause expression within the 'target' region.
Reviewers: ABataev
Differential Revision: https://reviews.llvm.org/D29085
llvm-svn: 293048
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 ea6f579374f..5d9080ea881 100644 --- a/clang/lib/Serialization/ASTWriterStmt.cpp +++ b/clang/lib/Serialization/ASTWriterStmt.cpp @@ -2067,6 +2067,7 @@ void OMPClauseWriter::VisitOMPMapClause(OMPMapClause *C) { } void OMPClauseWriter::VisitOMPNumTeamsClause(OMPNumTeamsClause *C) { + VisitOMPClauseWithPreInit(C); Record.AddStmt(C->getNumTeams()); Record.AddSourceLocation(C->getLParenLoc()); } |