[OpenMP] Fix a few formatting issues

llvm-svn: 336575
This commit is contained in:
Jonathan Peyton 2018-07-09 18:09:25 +00:00
parent a1a8e66a11
commit 61d44f188a
3 changed files with 5 additions and 3 deletions

View File

@ -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);

View File

@ -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

View File

@ -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