Path: blob/main/contrib/llvm-project/openmp/runtime/src/kmp_error.h
35258 views
/*1* kmp_error.h -- PTS functions for error checking at runtime.2*/34//===----------------------------------------------------------------------===//5//6// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.7// See https://llvm.org/LICENSE.txt for license information.8// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception9//10//===----------------------------------------------------------------------===//1112#ifndef KMP_ERROR_H13#define KMP_ERROR_H1415#include "kmp_i18n.h"1617/* ------------------------------------------------------------------------ */18#ifdef __cplusplus19extern "C" {20#endif2122void __kmp_error_construct(kmp_i18n_id_t id, enum cons_type ct,23ident_t const *ident);24void __kmp_error_construct2(kmp_i18n_id_t id, enum cons_type ct,25ident_t const *ident, struct cons_data const *cons);2627struct cons_header *__kmp_allocate_cons_stack(int gtid);28void __kmp_free_cons_stack(void *ptr);2930void __kmp_push_parallel(int gtid, ident_t const *ident);31void __kmp_push_workshare(int gtid, enum cons_type ct, ident_t const *ident);32#if KMP_USE_DYNAMIC_LOCK33void __kmp_push_sync(int gtid, enum cons_type ct, ident_t const *ident,34kmp_user_lock_p name, kmp_uint32);35#else36void __kmp_push_sync(int gtid, enum cons_type ct, ident_t const *ident,37kmp_user_lock_p name);38#endif3940void __kmp_check_workshare(int gtid, enum cons_type ct, ident_t const *ident);41#if KMP_USE_DYNAMIC_LOCK42void __kmp_check_sync(int gtid, enum cons_type ct, ident_t const *ident,43kmp_user_lock_p name, kmp_uint32);44#else45void __kmp_check_sync(int gtid, enum cons_type ct, ident_t const *ident,46kmp_user_lock_p name);47#endif4849void __kmp_pop_parallel(int gtid, ident_t const *ident);50enum cons_type __kmp_pop_workshare(int gtid, enum cons_type ct,51ident_t const *ident);52void __kmp_pop_sync(int gtid, enum cons_type ct, ident_t const *ident);53void __kmp_check_barrier(int gtid, enum cons_type ct, ident_t const *ident);5455#ifdef __cplusplus56} // extern "C"57#endif5859#endif // KMP_ERROR_H606162