Skip to content

Commit 8d8cca0

Browse files
author
Vadim Paretsky
committed
[OpenMP] remove obsolete symbol defintions
Some globals were used for enforcing certain linking rules in the Intel OpenMP implementation's MSVC compatibility layer and are not applicable to the LLVM implementation (kmp_import.cpp has already been removed from the build). Differential Revision:https://reviews.llvm.org/D145837
1 parent a92eaa3 commit 8d8cca0

File tree

4 files changed

+0
-50
lines changed

4 files changed

+0
-50
lines changed

openmp/runtime/src/dllexports

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -186,9 +186,6 @@
186186
__kmp_omp_debug_struct_info DATA
187187
%endif
188188

189-
# Symbols for MS mutual detection:
190-
_You_must_link_with_exactly_one_OpenMP_library DATA
191-
_You_must_link_with_Intel_OpenMP_library DATA
192189
__kmp_wait_64
193190
__kmp_release_64
194191

openmp/runtime/src/kmp.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4184,13 +4184,6 @@ KMP_EXPORT void *__kmpc_threadprivate_cached(ident_t *loc, kmp_int32 global_tid,
41844184
void *data, size_t size,
41854185
void ***cache);
41864186

4187-
// Symbols for MS mutual detection.
4188-
extern int _You_must_link_with_exactly_one_OpenMP_library;
4189-
extern int _You_must_link_with_Intel_OpenMP_library;
4190-
#if KMP_OS_WINDOWS && (KMP_VERSION_MAJOR > 4)
4191-
extern int _You_must_link_with_Microsoft_OpenMP_library;
4192-
#endif
4193-
41944187
// The routines below are not exported.
41954188
// Consider making them 'static' in corresponding source files.
41964189
void kmp_threadprivate_insert_private_data(int gtid, void *pc_addr,

openmp/runtime/src/kmp_global.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -547,13 +547,6 @@ int get_suspend_count_(void) {
547547
void set_suspend_count_(int *value) { __kmp_suspend_count = *value; }
548548
#endif
549549

550-
// Symbols for MS mutual detection.
551-
int _You_must_link_with_exactly_one_OpenMP_library = 1;
552-
int _You_must_link_with_Intel_OpenMP_library = 1;
553-
#if KMP_OS_WINDOWS && (KMP_VERSION_MAJOR > 4)
554-
int _You_must_link_with_Microsoft_OpenMP_library = 1;
555-
#endif
556-
557550
kmp_target_offload_kind_t __kmp_target_offload = tgt_default;
558551

559552
// OMP Pause Resources

openmp/runtime/src/kmp_import.cpp

Lines changed: 0 additions & 33 deletions
This file was deleted.

0 commit comments

Comments
 (0)