summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/StmtPrinter.cpp
diff options
context:
space:
mode:
authorAlexey Bataev <a.bataev@hotmail.com>2014-07-07 13:01:15 +0000
committerAlexey Bataev <a.bataev@hotmail.com>2014-07-07 13:01:15 +0000
commit4acb859fbdad4b5bc9208d3bfaea6847a682e26f (patch)
tree9e7b794b1f6f141bc4141dbb84cc0d9a1a9e830a /clang/lib/AST/StmtPrinter.cpp
parent8a8b850c98f392ec21d5b1e99338e0145d57fe69 (diff)
downloadbcm5719-llvm-4acb859fbdad4b5bc9208d3bfaea6847a682e26f.tar.gz
bcm5719-llvm-4acb859fbdad4b5bc9208d3bfaea6847a682e26f.zip
[OPENMP] Added initial support for 'omp parallel for'.
llvm-svn: 212453
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 1d96c49c7bb..9e88ca91186 100644
--- a/clang/lib/AST/StmtPrinter.cpp
+++ b/clang/lib/AST/StmtPrinter.cpp
@@ -815,6 +815,11 @@ void StmtPrinter::VisitOMPSingleDirective(OMPSingleDirective *Node) {
PrintOMPExecutableDirective(Node);
}
+void StmtPrinter::VisitOMPParallelForDirective(OMPParallelForDirective *Node) {
+ Indent() << "#pragma omp parallel for ";
+ PrintOMPExecutableDirective(Node);
+}
+
//===----------------------------------------------------------------------===//
// Expr printing methods.
//===----------------------------------------------------------------------===//
OpenPOWER on IntegriCloud