summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGStmtOpenMP.cpp
diff options
context:
space:
mode:
authorAlexey Bataev <a.bataev@hotmail.com>2019-10-10 20:13:02 +0000
committerAlexey Bataev <a.bataev@hotmail.com>2019-10-10 20:13:02 +0000
commit60e51c48033c5d6cfc7aa8e07d1143971e24261a (patch)
tree5ad12f1dc5c1e9ec65a17839606ed3278055f9e7 /clang/lib/CodeGen/CGStmtOpenMP.cpp
parent8dd16ed0c8d70e169544fd3e3732203aed55a806 (diff)
downloadbcm5719-llvm-60e51c48033c5d6cfc7aa8e07d1143971e24261a.tar.gz
bcm5719-llvm-60e51c48033c5d6cfc7aa8e07d1143971e24261a.zip
[OPENMP50]Support for 'master taskloop' directive.
Added full support for master taskloop directive. llvm-svn: 374437
Diffstat (limited to 'clang/lib/CodeGen/CGStmtOpenMP.cpp')
-rw-r--r--clang/lib/CodeGen/CGStmtOpenMP.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CGStmtOpenMP.cpp b/clang/lib/CodeGen/CGStmtOpenMP.cpp
index 0c264bb371c..e50cdb1b678 100644
--- a/clang/lib/CodeGen/CGStmtOpenMP.cpp
+++ b/clang/lib/CodeGen/CGStmtOpenMP.cpp
@@ -5109,6 +5109,16 @@ void CodeGenFunction::EmitOMPTaskLoopSimdDirective(
EmitOMPTaskLoopBasedDirective(S);
}
+void CodeGenFunction::EmitOMPMasterTaskLoopDirective(
+ const OMPMasterTaskLoopDirective &S) {
+ auto &&CodeGen = [this, &S](CodeGenFunction &CGF, PrePostActionTy &Action) {
+ Action.Enter(CGF);
+ EmitOMPTaskLoopBasedDirective(S);
+ };
+ OMPLexicalScope Scope(*this, S, llvm::None, /*EmitPreInitStmt=*/false);
+ CGM.getOpenMPRuntime().emitMasterRegion(*this, CodeGen, S.getBeginLoc());
+}
+
// Generate the instructions for '#pragma omp target update' directive.
void CodeGenFunction::EmitOMPTargetUpdateDirective(
const OMPTargetUpdateDirective &S) {
OpenPOWER on IntegriCloud