From f0a57f4453809e08ae1b4feaeec2c91c5257af48 Mon Sep 17 00:00:00 2001 From: Alexey Bataev Date: Thu, 26 Jun 2014 12:05:45 +0000 Subject: [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 --- lib/CodeGen/CGStmt.cpp | 3 +++ lib/CodeGen/CGStmtOpenMP.cpp | 4 ++++ lib/CodeGen/CodeGenFunction.h | 1 + 3 files changed, 8 insertions(+) (limited to 'lib/CodeGen') 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(*S)); break; + case Stmt::OMPSingleDirectiveClass: + EmitOMPSingleDirective(cast(*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 -- cgit v1.2.3