summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/StmtPrinter.cpp
diff options
context:
space:
mode:
authorKelvin Li <kkwli0@gmail.com>2016-12-17 05:48:59 +0000
committerKelvin Li <kkwli0@gmail.com>2016-12-17 05:48:59 +0000
commitbf594a560089552d861d72764256fa469296b97b (patch)
tree0f1e12fd60b3251df7236c22b4e6b28efee0985c /clang/lib/AST/StmtPrinter.cpp
parent7761abb64a03d7a4dda6d8cc0e25dfe0ab67ab14 (diff)
downloadbcm5719-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/AST/StmtPrinter.cpp')
-rw-r--r--clang/lib/AST/StmtPrinter.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/lib/AST/StmtPrinter.cpp b/clang/lib/AST/StmtPrinter.cpp
index 65e9f824999..4f029119955 100644
--- a/clang/lib/AST/StmtPrinter.cpp
+++ b/clang/lib/AST/StmtPrinter.cpp
@@ -1227,6 +1227,11 @@ void StmtPrinter::VisitOMPTeamsDistributeParallelForDirective(
PrintOMPExecutableDirective(Node);
}
+void StmtPrinter::VisitOMPTargetTeamsDirective(OMPTargetTeamsDirective *Node) {
+ Indent() << "#pragma omp target teams ";
+ PrintOMPExecutableDirective(Node);
+}
+
//===----------------------------------------------------------------------===//
// Expr printing methods.
//===----------------------------------------------------------------------===//
OpenPOWER on IntegriCloud