LLVM OpenMP 22.0.0git
kmp_error.cpp File Reference
#include "kmp.h"
#include "kmp_error.h"
#include "kmp_i18n.h"
#include "kmp_str.h"

Go to the source code of this file.

Macros

#define MIN_STACK   100
#define get_src(ident)
#define PUSH_MSG(ct, ident)
#define POP_MSG(p)

Functions

static void __kmp_check_null_func (void)
static void __kmp_expand_cons_stack (int gtid, struct cons_header *p)
static char__kmp_pragma (int ct, ident_t const *ident)
void __kmp_error_construct (kmp_i18n_id_t id, enum cons_type ct, ident_t const *ident)
void __kmp_error_construct2 (kmp_i18n_id_t id, enum cons_type ct, ident_t const *ident, struct cons_data const *cons)
struct cons_header__kmp_allocate_cons_stack (int gtid)
void __kmp_free_cons_stack (void *ptr)
void __kmp_push_parallel (int gtid, ident_t const *ident)
void __kmp_check_workshare (int gtid, enum cons_type ct, ident_t const *ident)
void __kmp_push_workshare (int gtid, enum cons_type ct, ident_t const *ident)
void __kmp_check_sync (int gtid, enum cons_type ct, ident_t const *ident, kmp_user_lock_p lck)
void __kmp_push_sync (int gtid, enum cons_type ct, ident_t const *ident, kmp_user_lock_p lck)
void __kmp_pop_parallel (int gtid, ident_t const *ident)
enum cons_type __kmp_pop_workshare (int gtid, enum cons_type ct, ident_t const *ident)
void __kmp_pop_sync (int gtid, enum cons_type ct, ident_t const *ident)
void __kmp_check_barrier (int gtid, enum cons_type ct, ident_t const *ident)

Variables

static char const * cons_text_c []
static int const cons_text_c_num = sizeof(cons_text_c) / sizeof(char const *)

Macro Definition Documentation

◆ get_src

#define get_src ( ident)
Value:
((ident) == NULL ? NULL : (ident)->psource)
The ident structure that describes a source location.
Definition kmp.h:227

Definition at line 41 of file kmp_error.cpp.

◆ MIN_STACK

#define MIN_STACK   100

Definition at line 20 of file kmp_error.cpp.

Referenced by __kmp_allocate_cons_stack().

◆ POP_MSG

#define POP_MSG ( p)
Value:
"\tpopping off stack: %s (%s)\n", cons_text_c[(p)->stack_data[tos].type], \
get_src((p)->stack_data[tos].ident)
void const char const char int ITT_FORMAT __itt_group_sync p
void const char const char int ITT_FORMAT __itt_group_sync x void const char ITT_FORMAT __itt_group_sync s void ITT_FORMAT __itt_group_sync p void ITT_FORMAT p void ITT_FORMAT p no args __itt_suppress_mode_t unsigned int void size_t ITT_FORMAT d void ITT_FORMAT p void ITT_FORMAT p __itt_model_site __itt_model_site_instance ITT_FORMAT p __itt_model_task __itt_model_task_instance ITT_FORMAT p void ITT_FORMAT p void ITT_FORMAT p void size_t ITT_FORMAT d void ITT_FORMAT p const wchar_t ITT_FORMAT s const char ITT_FORMAT s const char ITT_FORMAT s const char ITT_FORMAT s no args void ITT_FORMAT p size_t ITT_FORMAT d no args const wchar_t const wchar_t ITT_FORMAT s __itt_heap_function void size_t int ITT_FORMAT d __itt_heap_function void ITT_FORMAT p __itt_heap_function void void size_t int ITT_FORMAT d no args no args unsigned int ITT_FORMAT u const __itt_domain __itt_id ITT_FORMAT lu const __itt_domain __itt_id __itt_id __itt_string_handle ITT_FORMAT p const __itt_domain __itt_id ITT_FORMAT p const __itt_domain __itt_id __itt_timestamp __itt_timestamp ITT_FORMAT lu const __itt_domain __itt_id __itt_id __itt_string_handle ITT_FORMAT p const __itt_domain ITT_FORMAT p const __itt_domain __itt_string_handle unsigned long long ITT_FORMAT lu const __itt_domain __itt_string_handle unsigned long long ITT_FORMAT lu const __itt_domain __itt_id __itt_string_handle __itt_metadata_type type
#define get_src(ident)
Definition kmp_error.cpp:41
static char const * cons_text_c[]
Definition kmp_error.cpp:22

Definition at line 45 of file kmp_error.cpp.

Referenced by __kmp_pop_parallel(), __kmp_pop_sync(), and __kmp_pop_workshare().

◆ PUSH_MSG

#define PUSH_MSG ( ct,
ident )
Value:
"\tpushing on stack: %s (%s)\n", cons_text_c[(ct)], get_src((ident))

Definition at line 43 of file kmp_error.cpp.

Referenced by __kmp_push_parallel(), __kmp_push_sync(), and __kmp_push_workshare().

Function Documentation

◆ __kmp_allocate_cons_stack()

struct cons_header * __kmp_allocate_cons_stack ( int gtid)

Definition at line 133 of file kmp_error.cpp.

References __kmp_allocate, __kmp_check_null_func(), ct_none, KE_TRACE, MIN_STACK, and p.

Referenced by __kmp_launch_thread(), and __kmp_register_root().

◆ __kmp_check_barrier()

void __kmp_check_barrier ( int gtid,
enum cons_type ct,
ident_t const * ident )

◆ __kmp_check_null_func()

void __kmp_check_null_func ( void )
static

◆ __kmp_check_sync()

◆ __kmp_check_workshare()

void __kmp_check_workshare ( int gtid,
enum cons_type ct,
ident_t const * ident )

◆ __kmp_error_construct()

◆ __kmp_error_construct2()

◆ __kmp_expand_cons_stack()

void __kmp_expand_cons_stack ( int gtid,
struct cons_header * p )
static

◆ __kmp_free_cons_stack()

void __kmp_free_cons_stack ( void * ptr)

Definition at line 153 of file kmp_error.cpp.

References __kmp_free, and p.

Referenced by __kmp_reap_thread().

◆ __kmp_pop_parallel()

◆ __kmp_pop_sync()

◆ __kmp_pop_workshare()

◆ __kmp_pragma()

◆ __kmp_push_parallel()

void __kmp_push_parallel ( int gtid,
ident_t const * ident )

◆ __kmp_push_sync()

◆ __kmp_push_workshare()

void __kmp_push_workshare ( int gtid,
enum cons_type ct,
ident_t const * ident )

Variable Documentation

◆ cons_text_c

char const* cons_text_c[]
static
Initial value:
= {
"(none)",
"\"parallel\"",
"work-sharing",
"\"ordered\" work-sharing",
"\"sections\"",
"work-sharing",
"\"critical\"",
"\"ordered\"",
"\"ordered\"",
"\"master\"",
"\"reduce\"",
"\"barrier\"",
"\"masked\""}

Definition at line 22 of file kmp_error.cpp.

Referenced by __kmp_pragma().

◆ cons_text_c_num

int const cons_text_c_num = sizeof(cons_text_c) / sizeof(char const *)
static

Definition at line 49 of file kmp_error.cpp.

Referenced by __kmp_pragma().