LLVM OpenMP 20.0.0git
|
Go to the source code of this file.
Classes | |
struct | kmp_msg |
Macros | |
#define | KMP_I18N_STR(id) __kmp_i18n_catgets(kmp_i18n_str_##id) |
#define | KMP_MSG(...) __kmp_msg_format(kmp_i18n_msg_##__VA_ARGS__) |
#define | KMP_HNT(...) __kmp_msg_format(kmp_i18n_hnt_##__VA_ARGS__) |
#define | KMP_SYSERRCODE(code) __kmp_msg_error_code(code) |
#define | KMP_SYSERRMESG(mesg) __kmp_msg_error_mesg(mesg) |
#define | KMP_ERR KMP_SYSERRCODE |
#define | KMP_INFORM(...) __kmp_msg(kmp_ms_inform, KMP_MSG(__VA_ARGS__), __kmp_msg_null) |
#define | KMP_WARNING(...) __kmp_msg(kmp_ms_warning, KMP_MSG(__VA_ARGS__), __kmp_msg_null) |
#define | KMP_FATAL(...) __kmp_fatal(KMP_MSG(__VA_ARGS__), __kmp_msg_null) |
#define | KMP_SYSFAIL(func, error) |
#define | KMP_CHECK_SYSFAIL(func, error) |
#define | KMP_CHECK_SYSFAIL_ERRNO(func, status) |
Typedefs | |
typedef enum kmp_msg_type | kmp_msg_type_t |
typedef struct kmp_msg | kmp_msg_t |
typedef enum kmp_msg_severity | kmp_msg_severity_t |
Enumerations | |
enum | kmp_msg_type { kmp_mt_dummy = 0 , kmp_mt_mesg , kmp_mt_hint = 5 , kmp_mt_syserr = -1 } |
enum | kmp_msg_severity { kmp_ms_inform , kmp_ms_warning , kmp_ms_fatal } |
Functions | |
void | __kmp_i18n_catopen () |
void | __kmp_i18n_catclose () |
char const * | __kmp_i18n_catgets (kmp_i18n_id_t id) |
kmp_msg_t | __kmp_msg_format (unsigned id_arg,...) |
kmp_msg_t | __kmp_msg_error_code (int code) |
kmp_msg_t | __kmp_msg_error_mesg (char const *mesg) |
void | __kmp_msg (kmp_msg_severity_t severity, kmp_msg_t message,...) |
KMP_NORETURN void | __kmp_fatal (kmp_msg_t message,...) |
Variables | |
kmp_msg_t | __kmp_msg_null |
#define KMP_CHECK_SYSFAIL | ( | func, | |
error | |||
) |
Definition at line 152 of file kmp_i18n.h.
Definition at line 160 of file kmp_i18n.h.
#define KMP_ERR KMP_SYSERRCODE |
Definition at line 125 of file kmp_i18n.h.
#define KMP_FATAL | ( | ... | ) | __kmp_fatal(KMP_MSG(__VA_ARGS__), __kmp_msg_null) |
Definition at line 146 of file kmp_i18n.h.
#define KMP_HNT | ( | ... | ) | __kmp_msg_format(kmp_i18n_hnt_##__VA_ARGS__) |
Definition at line 122 of file kmp_i18n.h.
#define KMP_I18N_STR | ( | id | ) | __kmp_i18n_catgets(kmp_i18n_str_##id) |
Definition at line 46 of file kmp_i18n.h.
#define KMP_INFORM | ( | ... | ) | __kmp_msg(kmp_ms_inform, KMP_MSG(__VA_ARGS__), __kmp_msg_null) |
Definition at line 142 of file kmp_i18n.h.
#define KMP_MSG | ( | ... | ) | __kmp_msg_format(kmp_i18n_msg_##__VA_ARGS__) |
Definition at line 121 of file kmp_i18n.h.
#define KMP_SYSERRCODE | ( | code | ) | __kmp_msg_error_code(code) |
Definition at line 123 of file kmp_i18n.h.
#define KMP_SYSERRMESG | ( | mesg | ) | __kmp_msg_error_mesg(mesg) |
Definition at line 124 of file kmp_i18n.h.
#define KMP_SYSFAIL | ( | func, | |
error | |||
) |
Definition at line 147 of file kmp_i18n.h.
#define KMP_WARNING | ( | ... | ) | __kmp_msg(kmp_ms_warning, KMP_MSG(__VA_ARGS__), __kmp_msg_null) |
Definition at line 144 of file kmp_i18n.h.
typedef enum kmp_msg_severity kmp_msg_severity_t |
Definition at line 133 of file kmp_i18n.h.
Definition at line 108 of file kmp_i18n.h.
typedef enum kmp_msg_type kmp_msg_type_t |
Definition at line 100 of file kmp_i18n.h.
enum kmp_msg_severity |
Enumerator | |
---|---|
kmp_ms_inform | |
kmp_ms_warning | |
kmp_ms_fatal |
Definition at line 128 of file kmp_i18n.h.
enum kmp_msg_type |
Enumerator | |
---|---|
kmp_mt_dummy | |
kmp_mt_mesg | |
kmp_mt_hint | |
kmp_mt_syserr |
Definition at line 93 of file kmp_i18n.h.
KMP_NORETURN void __kmp_fatal | ( | kmp_msg_t | message, |
... | |||
) |
Definition at line 864 of file kmp_i18n.cpp.
References __kmp_abort_process(), __kmp_msg(), __kmp_thread_sleep(), args, and kmp_ms_fatal.
Referenced by __kmp_check_stack_overlap(), __kmp_create_worker(), __kmp_dispatch_init_algorithm(), __kmp_dispatch_next_algorithm(), __kmp_do_serial_initialize(), __kmp_env_blk_init(), __kmp_env_exists(), __kmp_env_get(), __kmp_env_set(), __kmp_env_unset(), __kmp_error_construct(), __kmp_error_construct2(), __kmp_free_handle(), __kmp_initialize_system_tick(), __kmp_is_thread_alive(), __kmp_push_num_teams_51(), __kmp_reap_worker(), __kmp_register_library_startup(), __kmp_register_root(), __kmp_terminate_thread(), __kmp_thread_sleep(), and kmp_safe_raii_file_t::open().
void __kmp_i18n_catclose | ( | ) |
Referenced by __kmp_cleanup().
char const * __kmp_i18n_catgets | ( | kmp_i18n_id_t | id | ) |
Referenced by __kmp_i18n_dump_catalog(), and __kmp_msg_format().
void __kmp_i18n_catopen | ( | ) |
Definition at line 62 of file kmp_i18n.cpp.
References __kmp_acquire_bootstrap_lock(), __kmp_i18n_do_catopen(), __kmp_release_bootstrap_lock(), KMP_I18N_CLOSED, lock, and status.
void __kmp_msg | ( | kmp_msg_severity_t | severity, |
kmp_msg_t | message, | ||
... | |||
) |
Definition at line 857 of file kmp_i18n.cpp.
References __kmp_msg(), and args.
Definition at line 765 of file kmp_i18n.cpp.
References kmp_mt_syserr, KMP_STRLEN, kmp_msg::len, kmp_msg::num, kmp_msg::str, sys_error(), and kmp_msg::type.
Definition at line 777 of file kmp_i18n.cpp.
References __kmp_str_format(), kmp_mt_syserr, KMP_STRLEN, kmp_msg::len, kmp_msg::num, kmp_msg::str, and kmp_msg::type.
kmp_msg_t __kmp_msg_format | ( | unsigned | id_arg, |
... | |||
) |
Definition at line 624 of file kmp_i18n.cpp.
References __kmp_i18n_catgets(), __kmp_str_buf_cat(), __kmp_str_buf_detach(), __kmp_str_buf_init, __kmp_str_buf_vprint(), args, kmp_msg::len, kmp_msg::num, kmp_msg::str, kmp_str_buf::str, kmp_msg::type, and kmp_str_buf::used.
Referenced by __kmp_env_initialize(), __kmp_error_construct(), __kmp_error_construct2(), __kmp_msg(), and __kmp_pragma().
|
extern |
Definition at line 36 of file kmp_i18n.cpp.
Referenced by __kmp_affinity_bind_thread(), __kmp_check_stack_overlap(), __kmp_create_worker(), __kmp_dispatch_init_algorithm(), __kmp_dispatch_next_algorithm(), __kmp_do_serial_initialize(), __kmp_env_blk_init(), __kmp_env_exists(), __kmp_env_get(), __kmp_env_set(), __kmp_env_unset(), __kmp_error_construct(), __kmp_error_construct2(), __kmp_free_handle(), __kmp_initialize_system_tick(), __kmp_is_thread_alive(), __kmp_parse_single_omp_schedule(), __kmp_push_num_teams(), __kmp_push_num_teams_51(), __kmp_push_thread_limit(), __kmp_reap_worker(), __kmp_register_library_startup(), __kmp_register_root(), __kmp_reserve_threads(), __kmp_set_schedule(), __kmp_stg_parse_barrier_branch_bit(), __kmp_stg_parse_barrier_pattern(), __kmp_stg_parse_blocktime(), __kmp_stg_parse_bool(), __kmp_terminate_thread(), __kmp_thread_sleep(), and kmp_safe_raii_file_t::open().