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 | bf594a560089552d861d72764256fa469296b97b (patch) | |
tree | 0f1e12fd60b3251df7236c22b4e6b28efee0985c /clang/lib/Serialization/ASTWriterStmt.cpp | |
parent | 7761abb64a03d7a4dda6d8cc0e25dfe0ab67ab14 (diff) | |
download | bcm5719-llvm-bf594a560089552d861d72764256fa469296b97b.tar.gz bcm5719-llvm-bf594a560089552d861d72764256fa469296b97b.zip |
[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
llvm-svn: 290038
Diffstat (limited to 'clang/lib/Serialization/ASTWriterStmt.cpp')
-rw-r--r-- | clang/lib/Serialization/ASTWriterStmt.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/lib/Serialization/ASTWriterStmt.cpp b/clang/lib/Serialization/ASTWriterStmt.cpp index f66cc029f52..5c1b2cc1261 100644 --- a/clang/lib/Serialization/ASTWriterStmt.cpp +++ b/clang/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 //===----------------------------------------------------------------------===// |