diff options
author | Alexey Bataev <a.bataev@hotmail.com> | 2014-07-21 11:26:11 +0000 |
---|---|---|
committer | Alexey Bataev <a.bataev@hotmail.com> | 2014-07-21 11:26:11 +0000 |
commit | 6125da9258e6e070b5188a30715eef9e6e695f71 (patch) | |
tree | 1ff7bb0c664c8c49576f4e09338dc3303daaea6b /clang/lib/AST/StmtPrinter.cpp | |
parent | d7c279604551c091290fc8e5dadb26142ebef459 (diff) | |
download | bcm5719-llvm-6125da9258e6e070b5188a30715eef9e6e695f71.tar.gz bcm5719-llvm-6125da9258e6e070b5188a30715eef9e6e695f71.zip |
[OPENMP] Initial parsing and sema analysis for 'flush' directive.
llvm-svn: 213512
Diffstat (limited to 'clang/lib/AST/StmtPrinter.cpp')
-rw-r--r-- | clang/lib/AST/StmtPrinter.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/clang/lib/AST/StmtPrinter.cpp b/clang/lib/AST/StmtPrinter.cpp index 9c00eeaa0f8..1fdad9f4272 100644 --- a/clang/lib/AST/StmtPrinter.cpp +++ b/clang/lib/AST/StmtPrinter.cpp @@ -775,6 +775,12 @@ void OMPClausePrinter::VisitOMPCopyprivateClause(OMPCopyprivateClause *Node) { } } +void OMPClausePrinter::VisitOMPFlushClause(OMPFlushClause *Node) { + if (!Node->varlist_empty()) { + VisitOMPClauseList(Node, '('); + OS << ")"; + } +} } //===----------------------------------------------------------------------===// @@ -875,6 +881,11 @@ void StmtPrinter::VisitOMPTaskwaitDirective(OMPTaskwaitDirective *Node) { PrintOMPExecutableDirective(Node); } +void StmtPrinter::VisitOMPFlushDirective(OMPFlushDirective *Node) { + Indent() << "#pragma omp flush "; + PrintOMPExecutableDirective(Node); +} + //===----------------------------------------------------------------------===// // Expr printing methods. //===----------------------------------------------------------------------===// |