diff options
author | Kelvin Li <kkwli0@gmail.com> | 2016-12-17 05:48:59 +0000 |
---|---|---|
committer | Kelvin Li <kkwli0@gmail.com> | 2016-12-17 05:48:59 +0000 |
commit | 2c7cf6d8125fa8c2905f1b683ce3dd327997448b (patch) | |
tree | 1d7c6f0dee4ea6f0d865e2fd6390f2d626aa9ae7 /lib/Serialization/ASTWriterStmt.cpp | |
parent | d9d5af2d993a8097c4f496f09f1b403396ec6272 (diff) |
[OpenMP] Sema and parsing for 'target teams' pragma
This patch is to implement sema and parsing for 'target teams' pragma.
Differential Revision: https://reviews.llvm.org/D27818
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@290038 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Serialization/ASTWriterStmt.cpp')
-rw-r--r-- | lib/Serialization/ASTWriterStmt.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/Serialization/ASTWriterStmt.cpp b/lib/Serialization/ASTWriterStmt.cpp index f66cc029f5..5c1b2cc126 100644 --- a/lib/Serialization/ASTWriterStmt.cpp +++ b/lib/Serialization/ASTWriterStmt.cpp @@ -2537,6 +2537,13 @@ void ASTStmtWriter::VisitOMPTeamsDistributeParallelForDirective( Code = serialization::STMT_OMP_TEAMS_DISTRIBUTE_PARALLEL_FOR_DIRECTIVE; } +void ASTStmtWriter::VisitOMPTargetTeamsDirective(OMPTargetTeamsDirective *D) { + VisitStmt(D); + Record.push_back(D->getNumClauses()); + VisitOMPExecutableDirective(D); + Code = serialization::STMT_OMP_TARGET_TEAMS_DIRECTIVE; +} + //===----------------------------------------------------------------------===// // ASTWriter Implementation //===----------------------------------------------------------------------===// |