summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorge Rokos <grokos@us.ibm.com>2017-04-22 11:21:54 +0000
committerGeorge Rokos <grokos@us.ibm.com>2017-04-22 11:21:54 +0000
commitf9cb9c18a023ed2c88056dab85ceb3c50ea530c8 (patch)
tree6bca356ab0d3249241c94f4e360dfd8a0c4b051b
parent6c79cc2198b90f42bcf8235a72e19c2d0b0a1703 (diff)
downloadbcm5719-llvm-f9cb9c18a023ed2c88056dab85ceb3c50ea530c8.tar.gz
bcm5719-llvm-f9cb9c18a023ed2c88056dab85ceb3c50ea530c8.zip
[OpenMP] libomptarget: Remove obsolete negative device IDs -2/-3
Differential Revision: https://reviews.llvm.org/D32325 llvm-svn: 301075
-rw-r--r--openmp/libomptarget/src/omptarget.cpp14
-rw-r--r--openmp/libomptarget/src/omptarget.h2
2 files changed, 0 insertions, 16 deletions
diff --git a/openmp/libomptarget/src/omptarget.cpp b/openmp/libomptarget/src/omptarget.cpp
index 1c04e3f0ece..eb1e765ba2f 100644
--- a/openmp/libomptarget/src/omptarget.cpp
+++ b/openmp/libomptarget/src/omptarget.cpp
@@ -2208,13 +2208,6 @@ static int target(int32_t device_id, void *host_ptr, int32_t arg_num,
EXTERN int __tgt_target(int32_t device_id, void *host_ptr, int32_t arg_num,
void **args_base, void **args, int64_t *arg_sizes, int32_t *arg_types) {
- if (device_id == OFFLOAD_DEVICE_CONSTRUCTOR ||
- device_id == OFFLOAD_DEVICE_DESTRUCTOR) {
- // Return immediately for the time being, target calls with device_id
- // -2 or -3 will be removed from the compiler in the future.
- return OFFLOAD_SUCCESS;
- }
-
DP("Entering target region with entry point " DPxMOD " and device Id %d\n",
DPxPTR(host_ptr), device_id);
@@ -2262,13 +2255,6 @@ EXTERN int __tgt_target_nowait(int32_t device_id, void *host_ptr,
EXTERN int __tgt_target_teams(int32_t device_id, void *host_ptr,
int32_t arg_num, void **args_base, void **args, int64_t *arg_sizes,
int32_t *arg_types, int32_t team_num, int32_t thread_limit) {
- if (device_id == OFFLOAD_DEVICE_CONSTRUCTOR ||
- device_id == OFFLOAD_DEVICE_DESTRUCTOR) {
- // Return immediately for the time being, target calls with device_id
- // -2 or -3 will be removed from the compiler in the future.
- return OFFLOAD_SUCCESS;
- }
-
DP("Entering target region with entry point " DPxMOD " and device Id %d\n",
DPxPTR(host_ptr), device_id);
diff --git a/openmp/libomptarget/src/omptarget.h b/openmp/libomptarget/src/omptarget.h
index ec2f99f82ad..357bdcbf2c9 100644
--- a/openmp/libomptarget/src/omptarget.h
+++ b/openmp/libomptarget/src/omptarget.h
@@ -21,8 +21,6 @@
#define OFFLOAD_FAIL (~0)
#define OFFLOAD_DEVICE_DEFAULT -1
-#define OFFLOAD_DEVICE_CONSTRUCTOR -2
-#define OFFLOAD_DEVICE_DESTRUCTOR -3
#define HOST_DEVICE -10
/// Data attributes for each data reference used in an OpenMP target region.
OpenPOWER on IntegriCloud