diff options
author | Alexander Musman <alexander.musman@gmail.com> | 2014-07-17 08:54:58 +0000 |
---|---|---|
committer | Alexander Musman <alexander.musman@gmail.com> | 2014-07-17 08:54:58 +0000 |
commit | 80c2289a03f8a993b2377993a873242a62116c58 (patch) | |
tree | 884ff25047b61490212bc094c568afb654d56757 /clang/lib/CodeGen | |
parent | c790515c8b2f395cc259030532992a4497b5daa8 (diff) | |
download | bcm5719-llvm-80c2289a03f8a993b2377993a873242a62116c58.tar.gz bcm5719-llvm-80c2289a03f8a993b2377993a873242a62116c58.zip |
[OPENMP] Parsing/Sema analysis of directive 'master'
llvm-svn: 213237
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 39adf9b7130..788fd067be5 100644 --- a/clang/lib/CodeGen/CGStmt.cpp +++ b/clang/lib/CodeGen/CGStmt.cpp @@ -194,6 +194,9 @@ void CodeGenFunction::EmitStmt(const Stmt *S) { case Stmt::OMPSingleDirectiveClass: EmitOMPSingleDirective(cast<OMPSingleDirective>(*S)); break; + case Stmt::OMPMasterDirectiveClass: + EmitOMPMasterDirective(cast<OMPMasterDirective>(*S)); + break; case Stmt::OMPParallelForDirectiveClass: EmitOMPParallelForDirective(cast<OMPParallelForDirective>(*S)); break; diff --git a/clang/lib/CodeGen/CGStmtOpenMP.cpp b/clang/lib/CodeGen/CGStmtOpenMP.cpp index 3d36dbb1b1a..f0861467246 100644 --- a/clang/lib/CodeGen/CGStmtOpenMP.cpp +++ b/clang/lib/CodeGen/CGStmtOpenMP.cpp @@ -90,6 +90,10 @@ void CodeGenFunction::EmitOMPSingleDirective(const OMPSingleDirective &) { llvm_unreachable("CodeGen for 'omp single' is not supported yet."); } +void CodeGenFunction::EmitOMPMasterDirective(const OMPMasterDirective &) { + llvm_unreachable("CodeGen for 'omp master' is not supported yet."); +} + void CodeGenFunction::EmitOMPParallelForDirective(const OMPParallelForDirective &) { llvm_unreachable("CodeGen for 'omp parallel for' is not supported yet."); diff --git a/clang/lib/CodeGen/CodeGenFunction.h b/clang/lib/CodeGen/CodeGenFunction.h index f6dd39f8fbd..d6675f39c7d 100644 --- a/clang/lib/CodeGen/CodeGenFunction.h +++ b/clang/lib/CodeGen/CodeGenFunction.h @@ -1916,6 +1916,7 @@ public: void EmitOMPSectionsDirective(const OMPSectionsDirective &S); void EmitOMPSectionDirective(const OMPSectionDirective &S); void EmitOMPSingleDirective(const OMPSingleDirective &S); + void EmitOMPMasterDirective(const OMPMasterDirective &S); void EmitOMPParallelForDirective(const OMPParallelForDirective &S); void EmitOMPParallelSectionsDirective(const OMPParallelSectionsDirective &S); void EmitOMPTaskDirective(const OMPTaskDirective &S); |