diff options
author | Alexey Bataev <a.bataev@hotmail.com> | 2014-06-17 11:49:22 +0000 |
---|---|---|
committer | Alexey Bataev <a.bataev@hotmail.com> | 2014-06-17 11:49:22 +0000 |
commit | c77dd5257a9388a34d4bc7b0105be88bc456b192 (patch) | |
tree | 8010c6b96d7ef452d399fa708e25e781a387d210 /clang/lib/CodeGen | |
parent | d5531f72dc1d4c85997a13530fc783c8dfaab25c (diff) | |
download | bcm5719-llvm-c77dd5257a9388a34d4bc7b0105be88bc456b192.tar.gz bcm5719-llvm-c77dd5257a9388a34d4bc7b0105be88bc456b192.zip |
[OPENMP] Initial support for '#pragma omp for'.
llvm-svn: 211096
Diffstat (limited to 'clang/lib/CodeGen')
-rw-r--r-- | clang/lib/CodeGen/CGStmt.cpp | 3 | ||||
-rw-r--r-- | clang/lib/CodeGen/CGStmtOpenMP.cpp | 3 | ||||
-rw-r--r-- | clang/lib/CodeGen/CodeGenFunction.h | 1 |
3 files changed, 7 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CGStmt.cpp b/clang/lib/CodeGen/CGStmt.cpp index 22373cddf30..e3d07dca642 100644 --- a/clang/lib/CodeGen/CGStmt.cpp +++ b/clang/lib/CodeGen/CGStmt.cpp @@ -179,6 +179,9 @@ void CodeGenFunction::EmitStmt(const Stmt *S) { case Stmt::OMPSimdDirectiveClass: EmitOMPSimdDirective(cast<OMPSimdDirective>(*S)); break; + case Stmt::OMPForDirectiveClass: + EmitOMPForDirective(cast<OMPForDirective>(*S)); + break; } } diff --git a/clang/lib/CodeGen/CGStmtOpenMP.cpp b/clang/lib/CodeGen/CGStmtOpenMP.cpp index 17d8dd1bd2f..9f915fa2d37 100644 --- a/clang/lib/CodeGen/CGStmtOpenMP.cpp +++ b/clang/lib/CodeGen/CGStmtOpenMP.cpp @@ -76,3 +76,6 @@ void CodeGenFunction::EmitOMPSimdDirective(const OMPSimdDirective &S) { EmitStmt(Body); } +void CodeGenFunction::EmitOMPForDirective(const OMPForDirective &) { + llvm_unreachable("Not supported yet."); +} diff --git a/clang/lib/CodeGen/CodeGenFunction.h b/clang/lib/CodeGen/CodeGenFunction.h index 570e1a89eb0..a222f646c61 100644 --- a/clang/lib/CodeGen/CodeGenFunction.h +++ b/clang/lib/CodeGen/CodeGenFunction.h @@ -1902,6 +1902,7 @@ public: void EmitOMPParallelDirective(const OMPParallelDirective &S); void EmitOMPSimdDirective(const OMPSimdDirective &S); + void EmitOMPForDirective(const OMPForDirective &S); //===--------------------------------------------------------------------===// // LValue Expression Emission |