[Openmp-commits] [openmp] b1f882f - [OpenMP][NFC] Remove unused clock function types and globals (#127684)

via Openmp-commits openmp-commits at lists.llvm.org
Wed Feb 19 11:31:43 PST 2025


Author: Jonathan Peyton
Date: 2025-02-19T13:31:40-06:00
New Revision: b1f882f86a5ba87ac77ed0f31e06e77a34f8303b

URL: https://github.com/llvm/llvm-project/commit/b1f882f86a5ba87ac77ed0f31e06e77a34f8303b
DIFF: https://github.com/llvm/llvm-project/commit/b1f882f86a5ba87ac77ed0f31e06e77a34f8303b.diff

LOG: [OpenMP][NFC] Remove unused clock function types and globals (#127684)

Added: 
    

Modified: 
    openmp/runtime/src/kmp.h
    openmp/runtime/src/kmp_global.cpp

Removed: 
    


################################################################################
diff  --git a/openmp/runtime/src/kmp.h b/openmp/runtime/src/kmp.h
index 04bf6c3b34dac..7b565d12a9308 100644
--- a/openmp/runtime/src/kmp.h
+++ b/openmp/runtime/src/kmp.h
@@ -521,13 +521,6 @@ enum library_type {
   library_throughput
 };
 
-#if KMP_OS_LINUX
-enum clock_function_type {
-  clock_function_gettimeofday,
-  clock_function_clock_gettime
-};
-#endif /* KMP_OS_LINUX */
-
 #if KMP_MIC_SUPPORTED
 enum mic_type { non_mic, mic1, mic2, mic3, dummy };
 #endif
@@ -3545,11 +3538,6 @@ extern int __kmp_hot_teams_mode;
 extern int __kmp_hot_teams_max_level;
 #endif
 
-#if KMP_OS_LINUX
-extern enum clock_function_type __kmp_clock_function;
-extern int __kmp_clock_function_param;
-#endif /* KMP_OS_LINUX */
-
 #if KMP_MIC_SUPPORTED
 extern enum mic_type __kmp_mic_type;
 #endif

diff  --git a/openmp/runtime/src/kmp_global.cpp b/openmp/runtime/src/kmp_global.cpp
index 5017cd3de4be5..ce803bb0d6079 100644
--- a/openmp/runtime/src/kmp_global.cpp
+++ b/openmp/runtime/src/kmp_global.cpp
@@ -242,11 +242,6 @@ enum sched_type __kmp_sch_map[kmp_sched_upper - kmp_sched_lower_ext +
     // of public intel extension schedules
 };
 
-#if KMP_OS_LINUX
-enum clock_function_type __kmp_clock_function;
-int __kmp_clock_function_param;
-#endif /* KMP_OS_LINUX */
-
 #if KMP_MIC_SUPPORTED
 enum mic_type __kmp_mic_type = non_mic;
 #endif


        


More information about the Openmp-commits mailing list