diff options
author | Alexey Bataev <a.bataev@hotmail.com> | 2015-07-01 06:57:41 +0000 |
---|---|---|
committer | Alexey Bataev <a.bataev@hotmail.com> | 2015-07-01 06:57:41 +0000 |
commit | 6d4ed0583033169f4a83f352e6ef0bd9275e34fa (patch) | |
tree | 283082dc9a4eda33ade3539de6575c9305ec5a09 /clang/lib/AST/StmtPrinter.cpp | |
parent | 2510ba3f6e3153d94171bf7b0c6735fe644841cf (diff) | |
download | bcm5719-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.cpp | 6 |
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. //===----------------------------------------------------------------------===// |