kmp_error.h 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. /*
  2. * kmp_error.h -- PTS functions for error checking at runtime.
  3. */
  4. //===----------------------------------------------------------------------===//
  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-exception
  9. //
  10. //===----------------------------------------------------------------------===//
  11. #ifndef KMP_ERROR_H
  12. #define KMP_ERROR_H
  13. #include "kmp_i18n.h"
  14. /* ------------------------------------------------------------------------ */
  15. #ifdef __cplusplus
  16. extern "C" {
  17. #endif
  18. void __kmp_error_construct(kmp_i18n_id_t id, enum cons_type ct,
  19. ident_t const *ident);
  20. void __kmp_error_construct2(kmp_i18n_id_t id, enum cons_type ct,
  21. ident_t const *ident, struct cons_data const *cons);
  22. struct cons_header *__kmp_allocate_cons_stack(int gtid);
  23. void __kmp_free_cons_stack(void *ptr);
  24. void __kmp_push_parallel(int gtid, ident_t const *ident);
  25. void __kmp_push_workshare(int gtid, enum cons_type ct, ident_t const *ident);
  26. #if KMP_USE_DYNAMIC_LOCK
  27. void __kmp_push_sync(int gtid, enum cons_type ct, ident_t const *ident,
  28. kmp_user_lock_p name, kmp_uint32);
  29. #else
  30. void __kmp_push_sync(int gtid, enum cons_type ct, ident_t const *ident,
  31. kmp_user_lock_p name);
  32. #endif
  33. void __kmp_check_workshare(int gtid, enum cons_type ct, ident_t const *ident);
  34. #if KMP_USE_DYNAMIC_LOCK
  35. void __kmp_check_sync(int gtid, enum cons_type ct, ident_t const *ident,
  36. kmp_user_lock_p name, kmp_uint32);
  37. #else
  38. void __kmp_check_sync(int gtid, enum cons_type ct, ident_t const *ident,
  39. kmp_user_lock_p name);
  40. #endif
  41. void __kmp_pop_parallel(int gtid, ident_t const *ident);
  42. enum cons_type __kmp_pop_workshare(int gtid, enum cons_type ct,
  43. ident_t const *ident);
  44. void __kmp_pop_sync(int gtid, enum cons_type ct, ident_t const *ident);
  45. void __kmp_check_barrier(int gtid, enum cons_type ct, ident_t const *ident);
  46. #ifdef __cplusplus
  47. } // extern "C"
  48. #endif
  49. #endif // KMP_ERROR_H