diff options
author | Alexey Bataev <a.bataev@hotmail.com> | 2017-12-08 15:03:50 +0000 |
---|---|---|
committer | Alexey Bataev <a.bataev@hotmail.com> | 2017-12-08 15:03:50 +0000 |
commit | dfa430f6947427394b48a8341621df4fd2f79998 (patch) | |
tree | 45cee41a77be1e117f66b1e1c12ad0d3d1594e5f /clang/lib/CodeGen/CGOpenMPRuntime.cpp | |
parent | 44fdcec26fc7b6a98c35521f645cf1aabd7ad384 (diff) | |
download | bcm5719-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.cpp | 4 |
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)); |