summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/StmtPrinter.cpp
diff options
context:
space:
mode:
authorAlexey Bataev <a.bataev@hotmail.com>2015-07-01 06:57:41 +0000
committerAlexey Bataev <a.bataev@hotmail.com>2015-07-01 06:57:41 +0000
commit6d4ed0583033169f4a83f352e6ef0bd9275e34fa (patch)
tree283082dc9a4eda33ade3539de6575c9305ec5a09 /clang/lib/AST/StmtPrinter.cpp
parent2510ba3f6e3153d94171bf7b0c6735fe644841cf (diff)
downloadbcm5719-llvm-6d4ed0583033169f4a83f352e6ef0bd9275e34fa.tar.gz
bcm5719-llvm-6d4ed0583033169f4a83f352e6ef0bd9275e34fa.zip
[OPENMP 4.0] Initial support for 'omp cancellation point' construct.
Add parsing and sema analysis for 'omp cancellation point' directive. llvm-svn: 241145
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 a82d104d7aa..3e9e9df3fa5 100644
--- a/clang/lib/AST/StmtPrinter.cpp
+++ b/clang/lib/AST/StmtPrinter.cpp
@@ -951,6 +951,12 @@ void StmtPrinter::VisitOMPTeamsDirective(OMPTeamsDirective *Node) {
PrintOMPExecutableDirective(Node);
}
+void StmtPrinter::VisitOMPCancellationPointDirective(
+ OMPCancellationPointDirective *Node) {
+ Indent() << "#pragma omp cancellation point "
+ << getOpenMPDirectiveName(Node->getCancelRegion());
+ PrintOMPExecutableDirective(Node);
+}
//===----------------------------------------------------------------------===//
// Expr printing methods.
//===----------------------------------------------------------------------===//
OpenPOWER on IntegriCloud