summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGOpenMPRuntime.cpp
diff options
context:
space:
mode:
authorAlexey Bataev <a.bataev@hotmail.com>2017-12-08 15:03:50 +0000
committerAlexey Bataev <a.bataev@hotmail.com>2017-12-08 15:03:50 +0000
commitdfa430f6947427394b48a8341621df4fd2f79998 (patch)
tree45cee41a77be1e117f66b1e1c12ad0d3d1594e5f /clang/lib/CodeGen/CGOpenMPRuntime.cpp
parent44fdcec26fc7b6a98c35521f645cf1aabd7ad384 (diff)
downloadbcm5719-llvm-dfa430f6947427394b48a8341621df4fd2f79998.tar.gz
bcm5719-llvm-dfa430f6947427394b48a8341621df4fd2f79998.zip
[OPENMP] Initial codegen for `target teams distribute` directive.
Host + default devices codegen for `target teams distribute` directive. llvm-svn: 320149
Diffstat (limited to 'clang/lib/CodeGen/CGOpenMPRuntime.cpp')
-rw-r--r--clang/lib/CodeGen/CGOpenMPRuntime.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CGOpenMPRuntime.cpp b/clang/lib/CodeGen/CGOpenMPRuntime.cpp
index f4e1e720d1d..72b9a3738b3 100644
--- a/clang/lib/CodeGen/CGOpenMPRuntime.cpp
+++ b/clang/lib/CodeGen/CGOpenMPRuntime.cpp
@@ -7132,6 +7132,10 @@ void CGOpenMPRuntime::scanForTargetRegionsFunctions(const Stmt *S,
CodeGenFunction::EmitOMPTargetTeamsDeviceFunction(
CGM, ParentName, cast<OMPTargetTeamsDirective>(*S));
break;
+ case Stmt::OMPTargetTeamsDistributeDirectiveClass:
+ CodeGenFunction::EmitOMPTargetTeamsDistributeDeviceFunction(
+ CGM, ParentName, cast<OMPTargetTeamsDistributeDirective>(*S));
+ break;
case Stmt::OMPTargetParallelForDirectiveClass:
CodeGenFunction::EmitOMPTargetParallelForDeviceFunction(
CGM, ParentName, cast<OMPTargetParallelForDirective>(*S));
OpenPOWER on IntegriCloud