diff options
author | Jonathan Peyton <jonathan.l.peyton@intel.com> | 2016-06-21 15:59:34 +0000 |
---|---|---|
committer | Jonathan Peyton <jonathan.l.peyton@intel.com> | 2016-06-21 15:59:34 +0000 |
commit | 8c61c597be7bad592129ab3266bbe9afa96feca5 (patch) | |
tree | a174f033a6d4befdd98112a40ceb37b499e5b12c /openmp | |
parent | f6be62f2c8a5d97e7d738fc03f4b8ed723f1b083 (diff) | |
download | bcm5719-llvm-8c61c597be7bad592129ab3266bbe9afa96feca5.tar.gz bcm5719-llvm-8c61c597be7bad592129ab3266bbe9afa96feca5.zip |
Addition of debugger comments and whitespace
The removal of legacy code to support long-deprecated debugger support library
resulted in some whitespace changes. Comments from that legacy code were made
public as they may be useful for other debuggers.
Patch by Olga Malysheva.
Differential Revision: http://reviews.llvm.org/D21391
llvm-svn: 273282
Diffstat (limited to 'openmp')
-rw-r--r-- | openmp/runtime/src/dllexports | 16 | ||||
-rw-r--r-- | openmp/runtime/src/kmp_runtime.c | 1 | ||||
-rw-r--r-- | openmp/runtime/src/kmp_tasking.c | 4 |
3 files changed, 12 insertions, 9 deletions
diff --git a/openmp/runtime/src/dllexports b/openmp/runtime/src/dllexports index d4ec6fe7a84..fe1f5f2b284 100644 --- a/openmp/runtime/src/dllexports +++ b/openmp/runtime/src/dllexports @@ -186,15 +186,15 @@ __kmp_omp_debug_struct_info DATA %endif - # Symbols for MS mutual detection: - _You_must_link_with_exactly_one_OpenMP_library DATA - _You_must_link_with_Intel_OpenMP_library DATA - %ifdef msvc_compat - _You_must_link_with_Microsoft_OpenMP_library DATA - %endif + # Symbols for MS mutual detection: + _You_must_link_with_exactly_one_OpenMP_library DATA + _You_must_link_with_Intel_OpenMP_library DATA + %ifdef msvc_compat + _You_must_link_with_Microsoft_OpenMP_library DATA + %endif - __kmp_wait_64 - __kmp_release_64 + __kmp_wait_64 + __kmp_release_64 # VT_getthid 1 diff --git a/openmp/runtime/src/kmp_runtime.c b/openmp/runtime/src/kmp_runtime.c index 131d5a3044a..446dccb4aa5 100644 --- a/openmp/runtime/src/kmp_runtime.c +++ b/openmp/runtime/src/kmp_runtime.c @@ -531,7 +531,6 @@ static void __kmp_fini_allocator() {} #ifdef KMP_DYNAMIC_LIB # if KMP_OS_WINDOWS - static void __kmp_reset_lock( kmp_bootstrap_lock_t* lck ) { // TODO: Change to __kmp_break_bootstrap_lock(). diff --git a/openmp/runtime/src/kmp_tasking.c b/openmp/runtime/src/kmp_tasking.c index f5bf65b7eb1..79466d80e5b 100644 --- a/openmp/runtime/src/kmp_tasking.c +++ b/openmp/runtime/src/kmp_tasking.c @@ -1420,6 +1420,7 @@ __kmpc_omp_taskwait( ident_t *loc_ref, kmp_int32 gtid ) } #endif + // Debugger: The taskwait is active. Store location and thread encountered the taskwait. #if USE_ITT_BUILD // Note: These values are used by ITT events as well. #endif /* USE_ITT_BUILD */ @@ -1452,6 +1453,7 @@ __kmpc_omp_taskwait( ident_t *loc_ref, kmp_int32 gtid ) #endif /* USE_ITT_BUILD */ // GEH TODO: shouldn't we have some sort of OMPRAP API calls here to mark end of wait? + // Debugger: The taskwait is completed. Location remains, but thread is negated. taskdata->td_taskwait_thread = - taskdata->td_taskwait_thread; #if OMPT_SUPPORT && OMPT_TRACE @@ -1494,6 +1496,7 @@ __kmpc_omp_taskyield( ident_t *loc_ref, kmp_int32 gtid, int end_part ) thread = __kmp_threads[ gtid ]; taskdata = thread -> th.th_current_task; // Should we model this as a task wait or not? + // Debugger: The taskwait is active. Store location and thread encountered the taskwait. #if USE_ITT_BUILD // Note: These values are used by ITT events as well. #endif /* USE_ITT_BUILD */ @@ -1521,6 +1524,7 @@ __kmpc_omp_taskyield( ident_t *loc_ref, kmp_int32 gtid, int end_part ) #endif /* USE_ITT_BUILD */ // GEH TODO: shouldn't we have some sort of OMPRAP API calls here to mark end of wait? + // Debugger: The taskwait is completed. Location remains, but thread is negated. taskdata->td_taskwait_thread = - taskdata->td_taskwait_thread; } |