LLVM OpenMP 22.0.0git
kmp_i18n.h File Reference
#include "kmp_str.h"
#include "kmp_i18n_id.inc"

Go to the source code of this file.

Classes

struct  kmp_msg

Macros

#define KMP_I18N_STR(id)
#define KMP_MSG(...)
#define KMP_HNT(...)
#define KMP_SYSERRCODE(code)
#define KMP_SYSERRMESG(mesg)
#define KMP_ERR   KMP_SYSERRCODE
#define KMP_INFORM(...)
#define KMP_WARNING(...)
#define KMP_FATAL(...)
#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

Macro Definition Documentation

◆ KMP_CHECK_SYSFAIL

◆ KMP_CHECK_SYSFAIL_ERRNO

#define KMP_CHECK_SYSFAIL_ERRNO ( func,
status )
Value:
{ \
if (status != 0) { \
int error = errno; \
KMP_SYSFAIL(func, error); \
} \
}
static volatile kmp_i18n_cat_status_t status
Definition kmp_i18n.cpp:48

Definition at line 160 of file kmp_i18n.h.

Referenced by __kmp_clear_system_time(), __kmp_elapsed(), __kmp_launch_worker(), __kmp_read_system_info(), __kmp_read_system_time(), and __kmp_suspend_template().

◆ KMP_ERR

◆ KMP_FATAL

#define KMP_FATAL ( ...)
Value:
kmp_msg_t __kmp_msg_null
Definition kmp_i18n.cpp:36
void __kmp_fatal(kmp_msg_t message,...)
Definition kmp_i18n.cpp:875
#define KMP_MSG(...)
Definition kmp_i18n.h:121

Definition at line 146 of file kmp_i18n.h.

Referenced by ___kmp_allocate_align(), __kmp_acquire_drdpa_lock_with_checks(), __kmp_acquire_nested_drdpa_lock_with_checks(), __kmp_acquire_nested_queuing_lock_with_checks(), __kmp_acquire_nested_tas_lock_with_checks(), __kmp_acquire_nested_ticket_lock_with_checks(), __kmp_acquire_queuing_lock_with_checks(), __kmp_acquire_tas_lock_with_checks(), __kmp_acquire_ticket_lock_with_checks(), __kmp_assert_valid_gtid(), __kmp_aux_set_library(), __kmp_destroy_drdpa_lock_with_checks(), __kmp_destroy_nested_drdpa_lock_with_checks(), __kmp_destroy_nested_queuing_lock_with_checks(), __kmp_destroy_nested_tas_lock_with_checks(), __kmp_destroy_nested_ticket_lock_with_checks(), __kmp_destroy_queuing_lock_with_checks(), __kmp_destroy_tas_lock_with_checks(), __kmp_destroy_ticket_lock_with_checks(), __kmp_env_get(), __kmp_env_initialize(), __kmp_expand_file_name(), __kmp_get_global_thread_id(), __kmp_get_schedule(), __kmp_gtid_set_specific(), __kmp_lookup_user_lock(), __kmp_parse_nested_num_threads(), __kmp_release_drdpa_lock_with_checks(), __kmp_release_nested_drdpa_lock_with_checks(), __kmp_release_nested_queuing_lock_with_checks(), __kmp_release_nested_tas_lock_with_checks(), __kmp_release_nested_ticket_lock_with_checks(), __kmp_release_queuing_lock_with_checks(), __kmp_release_tas_lock_with_checks(), __kmp_release_ticket_lock_with_checks(), __kmp_runtime_initialize(), __kmp_stg_parse_force_reduction(), __kmp_stg_parse_proc_bind(), __kmp_str_buf_detach(), __kmp_str_buf_reserve(), __kmp_str_format(), __kmp_test_drdpa_lock_with_checks(), __kmp_test_nested_drdpa_lock_with_checks(), __kmp_test_nested_queuing_lock_with_checks(), __kmp_test_nested_tas_lock_with_checks(), __kmp_test_nested_ticket_lock_with_checks(), __kmp_test_queuing_lock_with_checks(), __kmp_test_tas_lock_with_checks(), __kmp_test_ticket_lock_with_checks(), __kmp_user_set_library(), __kmpc_error(), __kmpc_init_lock(), __kmpc_init_nest_lock(), __kmpc_threadprivate(), allocate(), distributedBarrier::allocate(), FTN_DESTROY_AFFINITY_MASK(), kmp_gomp_depends_info_t::get_kmp_depend(), KMP_API_NAME_GOMP_LOOP_DOACROSS_START(), KMP_API_NAME_GOMP_LOOP_ORDERED_START(), KMP_API_NAME_GOMP_LOOP_START(), KMP_API_NAME_GOMP_LOOP_ULL_DOACROSS_START(), KMP_API_NAME_GOMP_LOOP_ULL_ORDERED_START(), KMP_API_NAME_GOMP_LOOP_ULL_START(), KMP_API_NAME_GOMP_SECTIONS2_START(), kmp_threadprivate_insert(), and sys_error().

◆ KMP_HNT

◆ KMP_I18N_STR

◆ KMP_INFORM

◆ KMP_MSG

◆ KMP_SYSERRCODE

#define KMP_SYSERRCODE ( code)
Value:
kmp_msg_t __kmp_msg_error_code(int code)
Definition kmp_i18n.cpp:765

Definition at line 123 of file kmp_i18n.h.

◆ KMP_SYSERRMESG

#define KMP_SYSERRMESG ( mesg)
Value:
kmp_msg_t __kmp_msg_error_mesg(char const *mesg)
Definition kmp_i18n.cpp:777

Definition at line 124 of file kmp_i18n.h.

◆ KMP_SYSFAIL

#define KMP_SYSFAIL ( func,
error )
Value:
__kmp_fatal(KMP_MSG(FunctionError, func), KMP_SYSERRCODE(error), \
#define KMP_SYSERRCODE(code)
Definition kmp_i18n.h:123

Definition at line 147 of file kmp_i18n.h.

Referenced by __kmp_create_worker(), __kmp_runtime_destroy(), __kmp_suspend_template(), and __kmp_suspend_uninitialize_thread().

◆ KMP_WARNING

Typedef Documentation

◆ kmp_msg_severity_t

Definition at line 133 of file kmp_i18n.h.

◆ kmp_msg_t

typedef struct kmp_msg kmp_msg_t

Definition at line 108 of file kmp_i18n.h.

◆ kmp_msg_type_t

Definition at line 100 of file kmp_i18n.h.

Enumeration Type Documentation

◆ kmp_msg_severity

Enumerator
kmp_ms_inform 
kmp_ms_warning 
kmp_ms_fatal 

Definition at line 128 of file kmp_i18n.h.

◆ 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.

Function Documentation

◆ __kmp_fatal()

◆ __kmp_i18n_catclose()

void __kmp_i18n_catclose ( )

Referenced by __kmp_cleanup().

◆ __kmp_i18n_catgets()

char const * __kmp_i18n_catgets ( kmp_i18n_id_t id)

◆ __kmp_i18n_catopen()

◆ __kmp_msg()

void __kmp_msg ( kmp_msg_severity_t severity,
kmp_msg_t message,
... )

Definition at line 868 of file kmp_i18n.cpp.

References __kmp_msg(), and args.

◆ __kmp_msg_error_code()

kmp_msg_t __kmp_msg_error_code ( int code)

◆ __kmp_msg_error_mesg()

kmp_msg_t __kmp_msg_error_mesg ( char const * mesg)

◆ __kmp_msg_format()

Variable Documentation

◆ __kmp_msg_null