summaryrefslogtreecommitdiffstats
path: root/clang/lib/Basic/OpenMPKinds.cpp
diff options
context:
space:
mode:
authorArpith Chacko Jacob <acjacob@us.ibm.com>2017-01-25 02:18:43 +0000
committerArpith Chacko Jacob <acjacob@us.ibm.com>2017-01-25 02:18:43 +0000
commit99a1e0eba53d13fd0b3103068955db91d6265708 (patch)
treec2968a60805e443075aac63e91b05f5363b0c076 /clang/lib/Basic/OpenMPKinds.cpp
parentae7e0da4f8a746f888b398cd42a245ef9456b045 (diff)
downloadbcm5719-llvm-99a1e0eba53d13fd0b3103068955db91d6265708.tar.gz
bcm5719-llvm-99a1e0eba53d13fd0b3103068955db91d6265708.zip
[OpenMP] Codegen support for 'target teams' on the host.
This patch adds support for codegen of 'target teams' on the host. This combined directive has two captured statements, one for the 'teams' region, and the other for the 'parallel'. This target teams region is offloaded using the __tgt_target_teams() call. The patch sets the number of teams as an argument to this call. Reviewers: ABataev Differential Revision: https://reviews.llvm.org/D29084 llvm-svn: 293005
Diffstat (limited to 'clang/lib/Basic/OpenMPKinds.cpp')
-rw-r--r--clang/lib/Basic/OpenMPKinds.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/clang/lib/Basic/OpenMPKinds.cpp b/clang/lib/Basic/OpenMPKinds.cpp
index 12686ff083a..12a4aea31fe 100644
--- a/clang/lib/Basic/OpenMPKinds.cpp
+++ b/clang/lib/Basic/OpenMPKinds.cpp
@@ -875,8 +875,11 @@ void clang::getOpenMPCaptureRegions(
case OMPD_parallel_sections:
CaptureRegions.push_back(OMPD_parallel);
break;
- case OMPD_teams:
case OMPD_target_teams:
+ CaptureRegions.push_back(OMPD_target);
+ CaptureRegions.push_back(OMPD_teams);
+ break;
+ case OMPD_teams:
case OMPD_simd:
case OMPD_for:
case OMPD_for_simd:
OpenPOWER on IntegriCloud