[memprof] Upgrade a unit test to MemProf Version 3 (#117063)
[llvm-project.git] / openmp / runtime / src / kmp_error.h
blobfe6fd34299a277bdc2c59e1a6c89e2402ca94943
1 /*
2 * kmp_error.h -- PTS functions for error checking at runtime.
3 */
5 //===----------------------------------------------------------------------===//
6 //
7 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
8 // See https://llvm.org/LICENSE.txt for license information.
9 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
11 //===----------------------------------------------------------------------===//
13 #ifndef KMP_ERROR_H
14 #define KMP_ERROR_H
16 #include "kmp_i18n.h"
18 /* ------------------------------------------------------------------------ */
19 #ifdef __cplusplus
20 extern "C" {
21 #endif
23 void __kmp_error_construct(kmp_i18n_id_t id, enum cons_type ct,
24 ident_t const *ident);
25 void __kmp_error_construct2(kmp_i18n_id_t id, enum cons_type ct,
26 ident_t const *ident, struct cons_data const *cons);
28 struct cons_header *__kmp_allocate_cons_stack(int gtid);
29 void __kmp_free_cons_stack(void *ptr);
31 void __kmp_push_parallel(int gtid, ident_t const *ident);
32 void __kmp_push_workshare(int gtid, enum cons_type ct, ident_t const *ident);
33 #if KMP_USE_DYNAMIC_LOCK
34 void __kmp_push_sync(int gtid, enum cons_type ct, ident_t const *ident,
35 kmp_user_lock_p name, kmp_uint32);
36 #else
37 void __kmp_push_sync(int gtid, enum cons_type ct, ident_t const *ident,
38 kmp_user_lock_p name);
39 #endif
41 void __kmp_check_workshare(int gtid, enum cons_type ct, ident_t const *ident);
42 #if KMP_USE_DYNAMIC_LOCK
43 void __kmp_check_sync(int gtid, enum cons_type ct, ident_t const *ident,
44 kmp_user_lock_p name, kmp_uint32);
45 #else
46 void __kmp_check_sync(int gtid, enum cons_type ct, ident_t const *ident,
47 kmp_user_lock_p name);
48 #endif
50 void __kmp_pop_parallel(int gtid, ident_t const *ident);
51 enum cons_type __kmp_pop_workshare(int gtid, enum cons_type ct,
52 ident_t const *ident);
53 void __kmp_pop_sync(int gtid, enum cons_type ct, ident_t const *ident);
54 void __kmp_check_barrier(int gtid, enum cons_type ct, ident_t const *ident);
56 #ifdef __cplusplus
57 } // extern "C"
58 #endif
60 #endif // KMP_ERROR_H