diff options
author | Alexey Bataev <a.bataev@hotmail.com> | 2017-11-08 20:16:14 +0000 |
---|---|---|
committer | Alexey Bataev <a.bataev@hotmail.com> | 2017-11-08 20:16:14 +0000 |
commit | fb0ebecf0e0530540d2a219837a1734ecc3584dc (patch) | |
tree | 91e03ccc23d350517f0060d87c2deeff668192fc /clang/lib/CodeGen/CGOpenMPRuntime.cpp | |
parent | 6368442fb72b759eb3d54265224e90086b3d3b3a (diff) | |
download | bcm5719-llvm-fb0ebecf0e0530540d2a219837a1734ecc3584dc.tar.gz bcm5719-llvm-fb0ebecf0e0530540d2a219837a1734ecc3584dc.zip |
[OPENMP] Codegen for `#pragma omp target parallel for`.
llvm-svn: 317719
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 0846c6a0414..a46c0be0089 100644 --- a/clang/lib/CodeGen/CGOpenMPRuntime.cpp +++ b/clang/lib/CodeGen/CGOpenMPRuntime.cpp @@ -7121,6 +7121,10 @@ void CGOpenMPRuntime::scanForTargetRegionsFunctions(const Stmt *S, CodeGenFunction::EmitOMPTargetTeamsDeviceFunction( CGM, ParentName, cast<OMPTargetTeamsDirective>(*S)); break; + case Stmt::OMPTargetParallelForDirectiveClass: + CodeGenFunction::EmitOMPTargetParallelForDeviceFunction( + CGM, ParentName, cast<OMPTargetParallelForDirective>(*S)); + break; default: llvm_unreachable("Unknown target directive for OpenMP device codegen."); } |