LLVM OpenMP 20.0.0git
|
#include "kmp_str.h"
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include "kmp.h"
#include "kmp_i18n.h"
Go to the source code of this file.
Macros | |
#define | KMP_STR_BUF_INVARIANT(b) |
#define | args _args |
#define | _case(ch, exp) |
#define _case | ( | ch, | |
exp | |||
) |
#define args _args |
#define KMP_STR_BUF_INVARIANT | ( | b | ) |
Definition at line 59 of file kmp_str.cpp.
Definition at line 622 of file kmp_str.cpp.
References result.
Referenced by __kmp_stg_parse_blocktime().
void __kmp_str_buf_cat | ( | kmp_str_buf_t * | buffer, |
char const * | str, | ||
size_t | len | ||
) |
Definition at line 134 of file kmp_str.cpp.
References __kmp_str_buf_reserve(), __kmp_type_convert(), KMP_DEBUG_ASSERT, KMP_STR_BUF_INVARIANT, KMP_STRNCAT_S, kmp_str_buf::str, and kmp_str_buf::used.
Referenced by __kmp_aux_capture_affinity(), __kmp_aux_capture_affinity_field(), __kmp_msg(), __kmp_msg_format(), and kmp_trimmed_str_t::kmp_trimmed_str_t().
void __kmp_str_buf_catbuf | ( | kmp_str_buf_t * | dest, |
const kmp_str_buf_t * | src | ||
) |
Definition at line 146 of file kmp_str.cpp.
References __kmp_str_buf_reserve(), KMP_DEBUG_ASSERT, KMP_STR_BUF_INVARIANT, KMP_STRNCAT_S, kmp_str_buf::str, and kmp_str_buf::used.
Referenced by __kmp_aux_capture_affinity().
void __kmp_str_buf_clear | ( | kmp_str_buf_t * | buffer | ) |
Definition at line 71 of file kmp_str.cpp.
References KMP_STR_BUF_INVARIANT, kmp_str_buf::str, and kmp_str_buf::used.
Referenced by __kmp_aux_capture_affinity(), __kmp_aux_capture_affinity_field(), __kmp_vprintf(), and kmp_topology_t::print().
void __kmp_str_buf_detach | ( | kmp_str_buf_t * | buffer | ) |
Definition at line 110 of file kmp_str.cpp.
References kmp_str_buf::bulk, KMP_FATAL, KMP_INTERNAL_MALLOC, KMP_MEMCPY_S, KMP_STR_BUF_INVARIANT, kmp_str_buf::size, kmp_str_buf::str, and kmp_str_buf::used.
Referenced by __kmp_msg_format().
void __kmp_str_buf_free | ( | kmp_str_buf_t * | buffer | ) |
Definition at line 123 of file kmp_str.cpp.
References kmp_str_buf::bulk, KMP_INTERNAL_FREE, KMP_STR_BUF_INVARIANT, kmp_str_buf::size, kmp_str_buf::str, and kmp_str_buf::used.
Referenced by __kmp_aux_capture_affinity(), __kmp_aux_capture_affinity_field(), __kmp_aux_display_affinity(), __kmp_display_env_impl(), __kmp_do_serial_initialize(), __kmp_env_print(), __kmp_msg(), __kmp_pragma(), __kmp_print_version_1(), __kmp_runtime_initialize(), __kmp_stg_parse_int(), __kmp_stg_parse_size(), __kmp_stg_print_hw_subset(), __kmp_stg_print_num_threads(), FTN_CAPTURE_AFFINITY(), ompc_capture_affinity(), kmp_topology_t::print(), and kmp_trimmed_str_t::~kmp_trimmed_str_t().
int __kmp_str_buf_print | ( | kmp_str_buf_t * | buffer, |
char const * | format, | ||
... | |||
) |
Definition at line 221 of file kmp_str.cpp.
References __kmp_str_buf_vprint(), and args.
Referenced by __kmp_aux_capture_affinity_field(), __kmp_display_env_impl(), __kmp_env_print(), __kmp_i18n_dump_catalog(), __kmp_pragma(), __kmp_print_version_1(), __kmp_runtime_initialize(), __kmp_stg_parse_int(), __kmp_stg_print_affinity_format(), __kmp_stg_print_barrier_branch_bit(), __kmp_stg_print_barrier_pattern(), __kmp_stg_print_blocktime(), __kmp_stg_print_bool(), __kmp_stg_print_cpuinfo_file(), __kmp_stg_print_force_reduction(), __kmp_stg_print_hw_subset(), __kmp_stg_print_int(), __kmp_stg_print_kmp_dynamic_mode(), __kmp_stg_print_nested(), __kmp_stg_print_nesting_mode(), __kmp_stg_print_num_threads(), __kmp_stg_print_omp_schedule(), __kmp_stg_print_proc_bind(), __kmp_stg_print_schedule(), __kmp_stg_print_size(), __kmp_stg_print_spin_backoff_params(), __kmp_stg_print_stacksize(), __kmp_stg_print_str(), __kmp_stg_print_target_offload(), __kmp_stg_print_uint64(), __kmp_str_buf_print_size(), __kmp_vprintf(), and kmp_topology_t::print().
void __kmp_str_buf_print_size | ( | kmp_str_buf_t * | buf, |
size_t | size | ||
) |
Definition at line 232 of file kmp_str.cpp.
References __kmp_str_buf_print(), buf, and size.
Referenced by __kmp_stg_parse_size(), __kmp_stg_print_size(), and __kmp_stg_print_stacksize().
void __kmp_str_buf_reserve | ( | kmp_str_buf_t * | buffer, |
size_t | size | ||
) |
Definition at line 80 of file kmp_str.cpp.
References kmp_str_buf::bulk, KMP_DEBUG_ASSERT, KMP_FATAL, KMP_INTERNAL_MALLOC, KMP_INTERNAL_REALLOC, KMP_MEMCPY_S, KMP_STR_BUF_INVARIANT, kmp_str_buf::size, size, kmp_str_buf::str, and kmp_str_buf::used.
Referenced by __kmp_runtime_initialize(), __kmp_str_buf_cat(), __kmp_str_buf_catbuf(), and __kmp_str_buf_vprint().
int __kmp_str_buf_vprint | ( | kmp_str_buf_t * | buffer, |
char const * | format, | ||
va_list | args | ||
) |
Definition at line 161 of file kmp_str.cpp.
References __kmp_str_buf_reserve(), args, KMP_DEBUG_ASSERT, KMP_STR_BUF_INVARIANT, KMP_VSNPRINTF, kmp_str_buf::size, size, kmp_str_buf::str, and kmp_str_buf::used.
Referenced by __kmp_msg_format(), __kmp_str_buf_print(), and __kmp_vprintf().
Definition at line 404 of file kmp_str.cpp.
References result.
Referenced by __kmp_str_fname_match().
void __kmp_str_fname_free | ( | kmp_str_fname_t * | fname | ) |
Definition at line 277 of file kmp_str.cpp.
References __kmp_str_free(), kmp_str_fname::base, kmp_str_fname::dir, and kmp_str_fname::path.
Referenced by __kmp_str_fname_match(), and __kmp_str_loc_free().
void __kmp_str_fname_init | ( | kmp_str_fname_t * | fname, |
char const * | path | ||
) |
Definition at line 246 of file kmp_str.cpp.
References __kmp_str_format(), __kmp_str_replace(), kmp_str_fname::base, char, kmp_str_fname::dir, KMP_OS_WINDOWS, kmp_str_fname::path, path, and TOLOWER.
Referenced by __kmp_str_fname_match(), and __kmp_str_loc_init().
int __kmp_str_fname_match | ( | kmp_str_fname_t const * | fname, |
char const * | pattern | ||
) |
Definition at line 283 of file kmp_str.cpp.
References __kmp_str_eqf(), __kmp_str_fname_free(), __kmp_str_fname_init(), kmp_str_fname::base, and kmp_str_fname::dir.
Definition at line 448 of file kmp_str.cpp.
References args, KMP_FATAL, KMP_INTERNAL_MALLOC, KMP_INTERNAL_REALLOC, KMP_VSNPRINTF, and size.
Referenced by ___kmp_env_blk_parse_string(), __GOMP_taskloop(), __kmp_dispatch_deo(), __kmp_dispatch_finish(), __kmp_dispatch_init(), __kmp_dispatch_init_algorithm(), __kmp_dispatch_next(), __kmp_dispatch_next_algorithm(), __kmp_dist_for_static_init(), __kmp_dist_get_bounds(), __kmp_for_static_init(), __kmp_is_address_mapped(), __kmp_msg_error_mesg(), __kmp_reg_status_name(), __kmp_register_library_startup(), __kmp_stg_parse_str(), __kmp_str_fname_init(), __kmp_str_loc_init(), __kmp_team_static_init(), __kmp_unregister_library(), __kmpc_error(), ompt_try_start_tool(), and sys_error().
Definition at line 494 of file kmp_str.cpp.
References KMP_DEBUG_ASSERT, and KMP_INTERNAL_FREE.
Referenced by __GOMP_taskloop(), __kmp_affinity_bind_thread(), __kmp_create_worker(), __kmp_dispatch_deo(), __kmp_dispatch_finish(), __kmp_dispatch_init(), __kmp_dispatch_init_algorithm(), __kmp_dispatch_next(), __kmp_dispatch_next_algorithm(), __kmp_dist_for_static_init(), __kmp_dist_get_bounds(), __kmp_env_blk_free(), __kmp_env_initialize(), __kmp_for_static_init(), __kmp_msg(), __kmp_stg_parse_str(), __kmp_str_fname_free(), __kmp_str_loc_free(), __kmp_team_static_init(), __kmpc_error(), and ompt_try_start_tool().
void __kmp_str_loc_free | ( | kmp_str_loc_t * | loc | ) |
Definition at line 393 of file kmp_str.cpp.
References __kmp_str_fname_free(), __kmp_str_free(), and loc.
Referenced by __kmp_cleanup_user_locks(), and __kmpc_error().
kmp_str_loc_t __kmp_str_loc_init | ( | char const * | psource, |
bool | init_fname | ||
) |
Definition at line 347 of file kmp_str.cpp.
References __kmp_str_fname_init(), __kmp_str_format(), __kmp_str_split(), and loc.
Referenced by __kmp_cleanup_user_locks(), and __kmpc_error().
Definition at line 305 of file kmp_str.cpp.
References CCAST, and KMP_DEBUG_ASSERT.
Definition at line 505 of file kmp_str.cpp.
References data, FALSE, i, target(), and TOLOWER.
Referenced by __kmp_stg_parse_barrier_pattern(), __kmp_stg_parse_force_reduction(), __kmp_stg_parse_hw_subset(), __kmp_stg_parse_kmp_dynamic_mode(), __kmp_stg_parse_lock_kind(), __kmp_stg_parse_omp_display_env(), __kmp_stg_parse_storage_map(), __kmp_stg_parse_wait_policy(), __kmp_str_match_false(), and __kmp_str_match_true().
Definition at line 543 of file kmp_str.cpp.
References __kmp_str_match(), data, and result.
Referenced by __kmp_ignore_mppbeg(), __kmp_ignore_mppend(), __kmp_stg_parse_allocator(), and __kmp_stg_parse_bool().
Definition at line 552 of file kmp_str.cpp.
References __kmp_str_match(), data, and result.
Referenced by __kmp_do_serial_initialize(), __kmp_register_library_startup(), __kmp_stg_parse_allocator(), __kmp_stg_parse_bool(), and __kmpc_begin().
Definition at line 561 of file kmp_str.cpp.
Referenced by __kmp_str_fname_init().
Definition at line 571 of file kmp_str.cpp.
Referenced by ___kmp_env_blk_parse_string(), __kmp_pragma(), __kmp_register_library_startup(), and __kmp_str_loc_init().
Definition at line 637 of file kmp_str.cpp.
References result.
Referenced by __kmp_parse_nested_num_threads(), __kmp_parse_single_omp_schedule(), __kmp_stg_parse_allocator(), __kmp_stg_parse_barrier_branch_bit(), __kmp_stg_parse_proc_bind(), and __kmp_stg_parse_spin_backoff_params().
Definition at line 690 of file kmp_str.cpp.
References _case, i, KMP_DEBUG_ASSERT, KMP_I18N_STR, KMP_SIZE_T_MAX, and value.
Referenced by __kmp_stg_parse_size().
void __kmp_str_to_uint | ( | char const * | str, |
kmp_uint64 * | out, | ||
char const ** | error | ||
) |
Definition at line 791 of file kmp_str.cpp.
References i, KMP_DEBUG_ASSERT, KMP_I18N_STR, KMP_SIZE_T_MAX, and value.
Referenced by __kmp_stg_parse_int(), and __kmp_stg_parse_max_active_levels().
Definition at line 595 of file kmp_str.cpp.
References buf.
Referenced by ___kmp_env_blk_parse_string(), and ompt_try_start_tool().