summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/StmtPrinter.cpp
diff options
context:
space:
mode:
authorKelvin Li <kkwli0@gmail.com>2016-08-05 14:37:37 +0000
committerKelvin Li <kkwli0@gmail.com>2016-08-05 14:37:37 +0000
commit02532876334c3323c26b236761bca6b4cead3c27 (patch)
tree5324cdc4a4a6726796691a75ebd274772c66b66f /clang/lib/AST/StmtPrinter.cpp
parent24dc1e7a90ee85b33ac103f976bf6ad14097f9bf (diff)
downloadbcm5719-llvm-02532876334c3323c26b236761bca6b4cead3c27.tar.gz
bcm5719-llvm-02532876334c3323c26b236761bca6b4cead3c27.zip
[OpenMP] Sema and parsing for 'teams distribute' pragma
This patch is to implement sema and parsing for 'teams distribute' pragma. Differential Revision: https://reviews.llvm.org/D23189 llvm-svn: 277818
Diffstat (limited to 'clang/lib/AST/StmtPrinter.cpp')
-rw-r--r--clang/lib/AST/StmtPrinter.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/lib/AST/StmtPrinter.cpp b/clang/lib/AST/StmtPrinter.cpp
index 8033ea263db..0b103f96a5c 100644
--- a/clang/lib/AST/StmtPrinter.cpp
+++ b/clang/lib/AST/StmtPrinter.cpp
@@ -1203,6 +1203,12 @@ void StmtPrinter::VisitOMPTargetSimdDirective(OMPTargetSimdDirective *Node) {
PrintOMPExecutableDirective(Node);
}
+void StmtPrinter::VisitOMPTeamsDistributeDirective(
+ OMPTeamsDistributeDirective *Node) {
+ Indent() << "#pragma omp teams distribute ";
+ PrintOMPExecutableDirective(Node);
+}
+
//===----------------------------------------------------------------------===//
// Expr printing methods.
//===----------------------------------------------------------------------===//
OpenPOWER on IntegriCloud