blob: 09817c88ae9b2edd0e73ca0cd5fa6bcddb997db7 [file] [log] [blame]
Jim Cownie5e8470a2013-09-27 10:38:44 +00001/*
2 * kmp_error.h -- PTS functions for error checking at runtime.
Jim Cownie4cc4bb42014-10-07 16:25:50 +00003 * $Revision: 42951 $
4 * $Date: 2014-01-21 14:41:41 -0600 (Tue, 21 Jan 2014) $
Jim Cownie5e8470a2013-09-27 10:38:44 +00005 */
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
28void __kmp_error_construct( kmp_i18n_id_t id, enum cons_type ct, ident_t const * ident );
29void __kmp_error_construct2( kmp_i18n_id_t id, enum cons_type ct, ident_t const * ident, struct cons_data const * cons );
30
31struct cons_header * __kmp_allocate_cons_stack( int gtid );
32void __kmp_free_cons_stack( void * ptr );
33
34void __kmp_push_parallel( int gtid, ident_t const * ident );
35void __kmp_push_workshare( int gtid, enum cons_type ct, ident_t const * ident );
36void __kmp_push_sync( int gtid, enum cons_type ct, ident_t const * ident, kmp_user_lock_p name );
37
38void __kmp_check_workshare( int gtid, enum cons_type ct, ident_t const * ident );
39void __kmp_check_sync( int gtid, enum cons_type ct, ident_t const * ident, kmp_user_lock_p name );
40
41void __kmp_pop_parallel( int gtid, ident_t const * ident );
42enum cons_type __kmp_pop_workshare( int gtid, enum cons_type ct, ident_t const * ident );
43void __kmp_pop_sync( int gtid, enum cons_type ct, ident_t const * ident );
44void __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