Jim Cownie | 5e8470a | 2013-09-27 10:38:44 +0000 | [diff] [blame] | 1 | /* |
| 2 | * kmp_error.h -- PTS functions for error checking at runtime. |
Jim Cownie | 5e8470a | 2013-09-27 10:38:44 +0000 | [diff] [blame] | 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, ident_t const * ident ); |
| 27 | void __kmp_error_construct2( kmp_i18n_id_t id, enum cons_type ct, ident_t const * ident, struct cons_data const * cons ); |
| 28 | |
| 29 | struct cons_header * __kmp_allocate_cons_stack( int gtid ); |
| 30 | void __kmp_free_cons_stack( void * ptr ); |
| 31 | |
| 32 | void __kmp_push_parallel( int gtid, ident_t const * ident ); |
| 33 | void __kmp_push_workshare( int gtid, enum cons_type ct, ident_t const * ident ); |
Andrey Churbanov | 5c56fb5 | 2015-02-20 18:05:17 +0000 | [diff] [blame] | 34 | #if KMP_USE_DYNAMIC_LOCK |
| 35 | void __kmp_push_sync( int gtid, enum cons_type ct, ident_t const * ident, kmp_user_lock_p name, kmp_uint32 ); |
| 36 | #else |
Jim Cownie | 5e8470a | 2013-09-27 10:38:44 +0000 | [diff] [blame] | 37 | void __kmp_push_sync( int gtid, enum cons_type ct, ident_t const * ident, kmp_user_lock_p name ); |
Andrey Churbanov | 5c56fb5 | 2015-02-20 18:05:17 +0000 | [diff] [blame] | 38 | #endif |
Jim Cownie | 5e8470a | 2013-09-27 10:38:44 +0000 | [diff] [blame] | 39 | |
| 40 | void __kmp_check_workshare( int gtid, enum cons_type ct, ident_t const * ident ); |
Andrey Churbanov | 5c56fb5 | 2015-02-20 18:05:17 +0000 | [diff] [blame] | 41 | #if KMP_USE_DYNAMIC_LOCK |
| 42 | void __kmp_check_sync( int gtid, enum cons_type ct, ident_t const * ident, kmp_user_lock_p name, kmp_uint32 ); |
| 43 | #else |
Jim Cownie | 5e8470a | 2013-09-27 10:38:44 +0000 | [diff] [blame] | 44 | void __kmp_check_sync( int gtid, enum cons_type ct, ident_t const * ident, kmp_user_lock_p name ); |
Andrey Churbanov | 5c56fb5 | 2015-02-20 18:05:17 +0000 | [diff] [blame] | 45 | #endif |
Jim Cownie | 5e8470a | 2013-09-27 10:38:44 +0000 | [diff] [blame] | 46 | |
| 47 | void __kmp_pop_parallel( int gtid, ident_t const * ident ); |
| 48 | enum cons_type __kmp_pop_workshare( int gtid, enum cons_type ct, ident_t const * ident ); |
| 49 | void __kmp_pop_sync( int gtid, enum cons_type ct, ident_t const * ident ); |
| 50 | void __kmp_check_barrier( int gtid, enum cons_type ct, ident_t const * ident ); |
| 51 | |
| 52 | #ifdef __cplusplus |
| 53 | } // extern "C" |
| 54 | #endif |
| 55 | |
| 56 | #endif // KMP_ERROR_H |
| 57 | |