Skip to content

Commit

Permalink
Cleanup version symbol macros and attributes/declspecs
Browse files Browse the repository at this point in the history
1) Get rid of xaliasify, xexpand and xversionify for KMP_EXPAND_NAME and
KMP_VERSION_SYMBOL. KMP_VERSION_SYMBOL is a combination of xaliasify and
xversionify.

2) Put all attribute and __declspec definitions in kmp_os.h

Differential Revision: https://reviews.llvm.org/D39516


git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@317636 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
jpeyton52 committed Nov 7, 2017
1 parent e63fa83 commit dc14379
Show file tree
Hide file tree
Showing 11 changed files with 375 additions and 523 deletions.
4 changes: 4 additions & 0 deletions CREDITS.txt
Expand Up @@ -8,6 +8,10 @@ beautification by scripts. The fields are: name (N), email (E), web-address
(W), PGP key ID and fingerprint (P), description (D), and snail-mail address
(S).

N: Adam Azarchs
W: 10xgenomics.com
D: Bug fix for lock code

N: Carlo Bertolli
W: http://ibm.com
D: IBM contributor to PowerPC support in CMake files and elsewhere.
Expand Down
8 changes: 1 addition & 7 deletions runtime/src/kmp.h
Expand Up @@ -2896,13 +2896,7 @@ extern int __kmp_gtid_mode; /* Method of getting gtid, values:
extern int
__kmp_adjust_gtid_mode; /* If true, adjust method based on #threads */
#ifdef KMP_TDATA_GTID
#if KMP_OS_WINDOWS
extern __declspec(
thread) int __kmp_gtid; /* This thread's gtid, if __kmp_gtid_mode == 3 */
#else
extern __thread int __kmp_gtid;
#endif /* KMP_OS_WINDOWS - workaround because Intel(R) Many Integrated Core \
compiler 20110316 doesn't accept __declspec */
extern KMP_THREAD_LOCAL int __kmp_gtid;
#endif
extern int __kmp_tls_gtid_min; /* #threads below which use sp search for gtid */
extern int __kmp_foreign_tp; // If true, separate TP var for each foreign thread
Expand Down

0 comments on commit dc14379

Please sign in to comment.