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 | 4cc4bb4 | 2014-10-07 16:25:50 +0000 | [diff] [blame] | 3 | * $Revision: 42951 $ |
| 4 | * $Date: 2014-01-21 14:41:41 -0600 (Tue, 21 Jan 2014) $ |
Jim Cownie | 5e8470a | 2013-09-27 10:38:44 +0000 | [diff] [blame] | 5 | */ |
| 6 | |
| 7 | |
| 8 | //===----------------------------------------------------------------------===// |
| 9 | // |
| 10 | // The LLVM Compiler Infrastructure |
| 11 | // |
| 12 | // This file is dual licensed under the MIT and the University of Illinois Open |
| 13 | // Source Licenses. See LICENSE.txt for details. |
| 14 | // |
| 15 | //===----------------------------------------------------------------------===// |
| 16 | |
| 17 | |
| 18 | #ifndef KMP_ERROR_H |
| 19 | #define KMP_ERROR_H |
| 20 | |
| 21 | #include "kmp_i18n.h" |
| 22 | |
| 23 | /* ------------------------------------------------------------------------ */ |
| 24 | #ifdef __cplusplus |
| 25 | extern "C" { |
| 26 | #endif |
| 27 | |
| 28 | void __kmp_error_construct( kmp_i18n_id_t id, enum cons_type ct, ident_t const * ident ); |
| 29 | void __kmp_error_construct2( kmp_i18n_id_t id, enum cons_type ct, 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 | void __kmp_push_sync( int gtid, enum cons_type ct, ident_t const * ident, kmp_user_lock_p name ); |
| 37 | |
| 38 | void __kmp_check_workshare( int gtid, enum cons_type ct, ident_t const * ident ); |
| 39 | void __kmp_check_sync( int gtid, enum cons_type ct, ident_t const * ident, kmp_user_lock_p name ); |
| 40 | |
| 41 | void __kmp_pop_parallel( int gtid, ident_t const * ident ); |
| 42 | enum cons_type __kmp_pop_workshare( int gtid, enum cons_type ct, ident_t const * ident ); |
| 43 | void __kmp_pop_sync( int gtid, enum cons_type ct, ident_t const * ident ); |
| 44 | void __kmp_check_barrier( int gtid, enum cons_type ct, ident_t const * ident ); |
| 45 | |
| 46 | #ifdef __cplusplus |
| 47 | } // extern "C" |
| 48 | #endif |
| 49 | |
| 50 | #endif // KMP_ERROR_H |
| 51 | |