LLVM OpenMP* Runtime Library
kmp_error.h
1 /*
2  * kmp_error.h -- PTS functions for error checking at runtime.
3  */
4 
5 
6 //===----------------------------------------------------------------------===//
7 //
8 // The LLVM Compiler Infrastructure
9 //
10 // This file is dual licensed under the MIT and the University of Illinois Open
11 // Source Licenses. See LICENSE.txt for details.
12 //
13 //===----------------------------------------------------------------------===//
14 
15 
16 #ifndef KMP_ERROR_H
17 #define KMP_ERROR_H
18 
19 #include "kmp_i18n.h"
20 
21 /* ------------------------------------------------------------------------ */
22 #ifdef __cplusplus
23 extern "C" {
24 #endif
25 
26 void __kmp_error_construct(kmp_i18n_id_t id, enum cons_type ct,
27  ident_t const *ident);
28 void __kmp_error_construct2(kmp_i18n_id_t id, enum cons_type ct,
29  ident_t const *ident, struct cons_data const *cons);
30 
31 struct cons_header *__kmp_allocate_cons_stack(int gtid);
32 void __kmp_free_cons_stack(void *ptr);
33 
34 void __kmp_push_parallel(int gtid, ident_t const *ident);
35 void __kmp_push_workshare(int gtid, enum cons_type ct, ident_t const *ident);
36 #if KMP_USE_DYNAMIC_LOCK
37 void __kmp_push_sync(int gtid, enum cons_type ct, ident_t const *ident,
38  kmp_user_lock_p name, kmp_uint32);
39 #else
40 void __kmp_push_sync(int gtid, enum cons_type ct, ident_t const *ident,
41  kmp_user_lock_p name);
42 #endif
43 
44 void __kmp_check_workshare(int gtid, enum cons_type ct, ident_t const *ident);
45 #if KMP_USE_DYNAMIC_LOCK
46 void __kmp_check_sync(int gtid, enum cons_type ct, ident_t const *ident,
47  kmp_user_lock_p name, kmp_uint32);
48 #else
49 void __kmp_check_sync(int gtid, enum cons_type ct, ident_t const *ident,
50  kmp_user_lock_p name);
51 #endif
52 
53 void __kmp_pop_parallel(int gtid, ident_t const *ident);
54 enum cons_type __kmp_pop_workshare(int gtid, enum cons_type ct,
55  ident_t const *ident);
56 void __kmp_pop_sync(int gtid, enum cons_type ct, ident_t const *ident);
57 void __kmp_check_barrier(int gtid, enum cons_type ct, ident_t const *ident);
58 
59 #ifdef __cplusplus
60 } // extern "C"
61 #endif
62 
63 #endif // KMP_ERROR_H
Definition: kmp.h:208