diff options
author | Alexey Bataev <a.bataev@hotmail.com> | 2014-07-11 11:25:16 +0000 |
---|---|---|
committer | Alexey Bataev <a.bataev@hotmail.com> | 2014-07-11 11:25:16 +0000 |
commit | 9c2e8ee72fe8c99a016a204a2f2b167cd17e188a (patch) | |
tree | 813773957814bc63d730a1a0476cb5fa60cf8d2f /clang/lib/CodeGen | |
parent | 83442bb8b2e5284276d3eb5a97457401ed61d3f7 (diff) | |
download | bcm5719-llvm-9c2e8ee72fe8c99a016a204a2f2b167cd17e188a.tar.gz bcm5719-llvm-9c2e8ee72fe8c99a016a204a2f2b167cd17e188a.zip |
[OPENMP] Parsing and sema analysis for 'omp task' directive.
llvm-svn: 212804
Diffstat (limited to 'clang/lib/CodeGen')
-rw-r--r-- | clang/lib/CodeGen/CGStmt.cpp | 3 | ||||
-rw-r--r-- | clang/lib/CodeGen/CGStmtOpenMP.cpp | 4 | ||||
-rw-r--r-- | clang/lib/CodeGen/CodeGenFunction.h | 1 |
3 files changed, 8 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CGStmt.cpp b/clang/lib/CodeGen/CGStmt.cpp index b9d74b675a6..39adf9b7130 100644 --- a/clang/lib/CodeGen/CGStmt.cpp +++ b/clang/lib/CodeGen/CGStmt.cpp @@ -200,6 +200,9 @@ void CodeGenFunction::EmitStmt(const Stmt *S) { case Stmt::OMPParallelSectionsDirectiveClass: EmitOMPParallelSectionsDirective(cast<OMPParallelSectionsDirective>(*S)); break; + case Stmt::OMPTaskDirectiveClass: + EmitOMPTaskDirective(cast<OMPTaskDirective>(*S)); + break; } } diff --git a/clang/lib/CodeGen/CGStmtOpenMP.cpp b/clang/lib/CodeGen/CGStmtOpenMP.cpp index e253efc2cb3..3d36dbb1b1a 100644 --- a/clang/lib/CodeGen/CGStmtOpenMP.cpp +++ b/clang/lib/CodeGen/CGStmtOpenMP.cpp @@ -100,3 +100,7 @@ void CodeGenFunction::EmitOMPParallelSectionsDirective( llvm_unreachable("CodeGen for 'omp parallel sections' is not supported yet."); } +void CodeGenFunction::EmitOMPTaskDirective(const OMPTaskDirective &) { + llvm_unreachable("CodeGen for 'omp task' is not supported yet."); +} + diff --git a/clang/lib/CodeGen/CodeGenFunction.h b/clang/lib/CodeGen/CodeGenFunction.h index a2d92ff18cc..f6dd39f8fbd 100644 --- a/clang/lib/CodeGen/CodeGenFunction.h +++ b/clang/lib/CodeGen/CodeGenFunction.h @@ -1918,6 +1918,7 @@ public: void EmitOMPSingleDirective(const OMPSingleDirective &S); void EmitOMPParallelForDirective(const OMPParallelForDirective &S); void EmitOMPParallelSectionsDirective(const OMPParallelSectionsDirective &S); + void EmitOMPTaskDirective(const OMPTaskDirective &S); //===--------------------------------------------------------------------===// // LValue Expression Emission |