summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGOpenMPRuntime.cpp
diff options
context:
space:
mode:
authorCarlo Bertolli <cbertol@us.ibm.com>2018-01-03 21:12:44 +0000
committerCarlo Bertolli <cbertol@us.ibm.com>2018-01-03 21:12:44 +0000
commit52978c35544b0b731971fd93c1c1eece6f816700 (patch)
tree4dd1db7c6b11c1e79ebedacae62c3bd57728eb60 /clang/lib/CodeGen/CGOpenMPRuntime.cpp
parentcaac5761f864690e4129c59a535888efbfb3c52e (diff)
downloadbcm5719-llvm-52978c35544b0b731971fd93c1c1eece6f816700.tar.gz
bcm5719-llvm-52978c35544b0b731971fd93c1c1eece6f816700.zip
[OpenMP] Initial implementation of code generation for pragma 'target teams distribute parallel for' on host
https://reviews.llvm.org/D41709 This patch includes code generation and testing for offloading when target device is host. llvm-svn: 321759
Diffstat (limited to 'clang/lib/CodeGen/CGOpenMPRuntime.cpp')
-rw-r--r--clang/lib/CodeGen/CGOpenMPRuntime.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CGOpenMPRuntime.cpp b/clang/lib/CodeGen/CGOpenMPRuntime.cpp
index 784c90a9eb9..3c594994ffe 100644
--- a/clang/lib/CodeGen/CGOpenMPRuntime.cpp
+++ b/clang/lib/CodeGen/CGOpenMPRuntime.cpp
@@ -7292,6 +7292,11 @@ void CGOpenMPRuntime::scanForTargetRegionsFunctions(const Stmt *S,
CodeGenFunction::EmitOMPTargetSimdDeviceFunction(
CGM, ParentName, cast<OMPTargetSimdDirective>(*S));
break;
+ case Stmt::OMPTargetTeamsDistributeParallelForDirectiveClass:
+ CodeGenFunction::EmitOMPTargetTeamsDistributeParallelForDeviceFunction(
+ CGM, ParentName,
+ cast<OMPTargetTeamsDistributeParallelForDirective>(*S));
+ break;
default:
llvm_unreachable("Unknown target directive for OpenMP device codegen.");
}
OpenPOWER on IntegriCloud