From 7caa106b2c39a36729475dbeba276bfd7eda4244 Mon Sep 17 00:00:00 2001 From: Jonathan Peyton Date: Mon, 9 Jul 2018 18:09:25 +0000 Subject: [PATCH] [OpenMP] Fix a few formatting issues git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@336575 91177308-0d34-0410-b5e6-96231b3b80d8 --- runtime/src/kmp_runtime.cpp | 3 ++- runtime/src/kmp_taskdeps.cpp | 3 ++- runtime/src/kmp_threadprivate.cpp | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/runtime/src/kmp_runtime.cpp b/runtime/src/kmp_runtime.cpp index d876ba1..69eba21 100644 --- a/runtime/src/kmp_runtime.cpp +++ b/runtime/src/kmp_runtime.cpp @@ -3397,7 +3397,8 @@ void __kmp_print_structure(void) { root->r.r_uber_thread); __kmp_printf(" Active?: %2d\n", root->r.r_active); __kmp_printf(" Nested?: %2d\n", root->r.r_nested); - __kmp_printf(" In Parallel: %2d\n", KMP_ATOMIC_LD_RLX(&root->r.r_in_parallel)); + __kmp_printf(" In Parallel: %2d\n", + KMP_ATOMIC_LD_RLX(&root->r.r_in_parallel)); __kmp_printf("\n"); __kmp_print_structure_team_accum(list, root->r.r_root_team); __kmp_print_structure_team_accum(list, root->r.r_hot_team); diff --git a/runtime/src/kmp_taskdeps.cpp b/runtime/src/kmp_taskdeps.cpp index 702b919..4efd12b 100644 --- a/runtime/src/kmp_taskdeps.cpp +++ b/runtime/src/kmp_taskdeps.cpp @@ -40,7 +40,8 @@ static void __kmp_init_node(kmp_depnode_t *node) { // task once dependences have been processed node->dn.successors = NULL; __kmp_init_lock(&node->dn.lock); - KMP_ATOMIC_ST_RLX(&node->dn.nrefs, 1); // init creates the first reference to the node + KMP_ATOMIC_ST_RLX(&node->dn.nrefs, + 1); // init creates the first reference to the node #ifdef KMP_SUPPORT_GRAPH_OUTPUT node->dn.id = KMP_ATOMIC_INC(&kmp_node_id_seed); #endif diff --git a/runtime/src/kmp_threadprivate.cpp b/runtime/src/kmp_threadprivate.cpp index e64097b..d1ca422 100644 --- a/runtime/src/kmp_threadprivate.cpp +++ b/runtime/src/kmp_threadprivate.cpp @@ -719,7 +719,7 @@ void __kmp_threadprivate_resize_cache(int newCapacity) { // compilers use new method.) (void)KMP_COMPARE_AND_STORE_PTR(tp_cache_addr->compiler_cache, old_cache, my_cache); - //TCW_PTR(*(tp_cache_addr->compiler_cache), my_cache); + // TCW_PTR(*(tp_cache_addr->compiler_cache), my_cache); // If the store doesn't happen here, the compiler's old behavior will // inevitably call __kmpc_threadprivate_cache with a new location for the