From 46c5afbd7070bb8b4329331f5bac3d31078e3d01 Mon Sep 17 00:00:00 2001 From: Alexey Bataev Date: Tue, 17 Jun 2014 11:49:22 +0000 Subject: [OPENMP] Initial support for '#pragma omp for'. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@211096 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/CGStmt.cpp | 3 +++ lib/CodeGen/CGStmtOpenMP.cpp | 3 +++ lib/CodeGen/CodeGenFunction.h | 1 + 3 files changed, 7 insertions(+) (limited to 'lib/CodeGen') diff --git a/lib/CodeGen/CGStmt.cpp b/lib/CodeGen/CGStmt.cpp index 22373cddf3..e3d07dca64 100644 --- a/lib/CodeGen/CGStmt.cpp +++ b/lib/CodeGen/CGStmt.cpp @@ -179,6 +179,9 @@ void CodeGenFunction::EmitStmt(const Stmt *S) { case Stmt::OMPSimdDirectiveClass: EmitOMPSimdDirective(cast(*S)); break; + case Stmt::OMPForDirectiveClass: + EmitOMPForDirective(cast(*S)); + break; } } diff --git a/lib/CodeGen/CGStmtOpenMP.cpp b/lib/CodeGen/CGStmtOpenMP.cpp index 17d8dd1bd2..9f915fa2d3 100644 --- a/lib/CodeGen/CGStmtOpenMP.cpp +++ b/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/lib/CodeGen/CodeGenFunction.h b/lib/CodeGen/CodeGenFunction.h index 570e1a89eb..a222f646c6 100644 --- a/lib/CodeGen/CodeGenFunction.h +++ b/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 -- cgit v1.2.3