[Openmp-commits] [openmp] r327740 - Moved extern declarations to private header file, they are only used from within libomptarget, they don't need to be in omptarget.h.

George Rokos via Openmp-commits openmp-commits at lists.llvm.org
Fri Mar 16 13:40:09 PDT 2018


Author: grokos
Date: Fri Mar 16 13:40:09 2018
New Revision: 327740

URL: http://llvm.org/viewvc/llvm-project?rev=327740&view=rev
Log:
Moved extern declarations to private header file, they are only used from within libomptarget, they don't need to be in omptarget.h.


Modified:
    openmp/trunk/libomptarget/include/omptarget.h
    openmp/trunk/libomptarget/src/private.h

Modified: openmp/trunk/libomptarget/include/omptarget.h
URL: http://llvm.org/viewvc/llvm-project/openmp/trunk/libomptarget/include/omptarget.h?rev=327740&r1=327739&r2=327740&view=diff
==============================================================================
--- openmp/trunk/libomptarget/include/omptarget.h (original)
+++ openmp/trunk/libomptarget/include/omptarget.h Fri Mar 16 13:40:09 2018
@@ -99,10 +99,6 @@ struct __tgt_target_table {
 extern "C" {
 #endif
 
-// Implemented in libomp, they are called from within __tgt_* functions.
-int omp_get_default_device(void) __attribute__((weak));
-int32_t __kmpc_omp_taskwait(void *loc_ref, int32_t gtid) __attribute__((weak));
-
 int omp_get_num_devices(void);
 int omp_get_initial_device(void);
 void *omp_target_alloc(size_t size, int device_num);

Modified: openmp/trunk/libomptarget/src/private.h
URL: http://llvm.org/viewvc/llvm-project/openmp/trunk/libomptarget/src/private.h?rev=327740&r1=327739&r2=327740&view=diff
==============================================================================
--- openmp/trunk/libomptarget/src/private.h (original)
+++ openmp/trunk/libomptarget/src/private.h Fri Mar 16 13:40:09 2018
@@ -33,6 +33,10 @@ extern int target(int64_t device_id, voi
 
 extern int CheckDeviceAndCtors(int64_t device_id);
 
+// Implemented in libomp, they are called from within __tgt_* functions.
+int omp_get_default_device(void) __attribute__((weak));
+int32_t __kmpc_omp_taskwait(void *loc_ref, int32_t gtid) __attribute__((weak));
+
 #ifdef OMPTARGET_DEBUG
 extern int DebugLevel;
 




More information about the Openmp-commits mailing list