summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/StmtPrinter.cpp
diff options
context:
space:
mode:
authorKelvin Li <kkwli0@gmail.com>2016-12-09 03:24:30 +0000
committerKelvin Li <kkwli0@gmail.com>2016-12-09 03:24:30 +0000
commit7ade93f5e29c470f624ec5b71a92aadd6256a357 (patch)
tree0e6601099618973fb99d09c7754ec9ecb38a08b7 /clang/lib/AST/StmtPrinter.cpp
parent217c5d36bb2bbcda1859f1ab5b4b5145487e9454 (diff)
downloadbcm5719-llvm-7ade93f5e29c470f624ec5b71a92aadd6256a357.tar.gz
bcm5719-llvm-7ade93f5e29c470f624ec5b71a92aadd6256a357.zip
[OpenMP] Sema and parsing for 'teams distribute parallel for' pragma
This patch is to implement sema and parsing for 'teams distribute parallel for' pragma. Differential Revision: https://reviews.llvm.org/D27345 llvm-svn: 289179
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 f548e78f6f0..2c0b74ab016 100644
--- a/clang/lib/AST/StmtPrinter.cpp
+++ b/clang/lib/AST/StmtPrinter.cpp
@@ -1221,6 +1221,12 @@ void StmtPrinter::VisitOMPTeamsDistributeParallelForSimdDirective(
PrintOMPExecutableDirective(Node);
}
+void StmtPrinter::VisitOMPTeamsDistributeParallelForDirective(
+ OMPTeamsDistributeParallelForDirective *Node) {
+ Indent() << "#pragma omp teams distribute parallel for ";
+ PrintOMPExecutableDirective(Node);
+}
+
//===----------------------------------------------------------------------===//
// Expr printing methods.
//===----------------------------------------------------------------------===//
OpenPOWER on IntegriCloud