diff options
author | Alexey Bataev <a.bataev@hotmail.com> | 2014-06-26 12:05:45 +0000 |
---|---|---|
committer | Alexey Bataev <a.bataev@hotmail.com> | 2014-06-26 12:05:45 +0000 |
commit | f0a57f4453809e08ae1b4feaeec2c91c5257af48 (patch) | |
tree | 63157d4916525a53de363118a4a7aad768dadd1e /lib/CodeGen | |
parent | 0eca5e96c1b22228c8efe6a99df123186bfb340b (diff) | |
download | clang-f0a57f4453809e08ae1b4feaeec2c91c5257af48.tar.gz clang-f0a57f4453809e08ae1b4feaeec2c91c5257af48.tar.bz2 clang-f0a57f4453809e08ae1b4feaeec2c91c5257af48.tar.xz |
[OPENMP] Initial parsing and sema analysis for 'single' directive.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@211774 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r-- | lib/CodeGen/CGStmt.cpp | 3 | ||||
-rw-r--r-- | lib/CodeGen/CGStmtOpenMP.cpp | 4 | ||||
-rw-r--r-- | lib/CodeGen/CodeGenFunction.h | 1 |
3 files changed, 8 insertions, 0 deletions
diff --git a/lib/CodeGen/CGStmt.cpp b/lib/CodeGen/CGStmt.cpp index c3ad8b369c..8edee89e74 100644 --- a/lib/CodeGen/CGStmt.cpp +++ b/lib/CodeGen/CGStmt.cpp @@ -188,6 +188,9 @@ void CodeGenFunction::EmitStmt(const Stmt *S) { case Stmt::OMPSectionDirectiveClass: EmitOMPSectionDirective(cast<OMPSectionDirective>(*S)); break; + case Stmt::OMPSingleDirectiveClass: + EmitOMPSingleDirective(cast<OMPSingleDirective>(*S)); + break; } } diff --git a/lib/CodeGen/CGStmtOpenMP.cpp b/lib/CodeGen/CGStmtOpenMP.cpp index ae45aa4abb..805eeaf40d 100644 --- a/lib/CodeGen/CGStmtOpenMP.cpp +++ b/lib/CodeGen/CGStmtOpenMP.cpp @@ -87,3 +87,7 @@ void CodeGenFunction::EmitOMPSectionDirective(const OMPSectionDirective &) { llvm_unreachable("CodeGen for 'omp section' is not supported yet."); } +void CodeGenFunction::EmitOMPSingleDirective(const OMPSingleDirective &) { + llvm_unreachable("CodeGen for 'omp single' is not supported yet."); +} + diff --git a/lib/CodeGen/CodeGenFunction.h b/lib/CodeGen/CodeGenFunction.h index 87453992b1..2fe2b9bc36 100644 --- a/lib/CodeGen/CodeGenFunction.h +++ b/lib/CodeGen/CodeGenFunction.h @@ -1905,6 +1905,7 @@ public: void EmitOMPForDirective(const OMPForDirective &S); void EmitOMPSectionsDirective(const OMPSectionsDirective &S); void EmitOMPSectionDirective(const OMPSectionDirective &S); + void EmitOMPSingleDirective(const OMPSingleDirective &S); //===--------------------------------------------------------------------===// // LValue Expression Emission |