]>
Commit | Line | Data |
---|---|---|
0a35513e | 1 | /* Miscellaneous transactional memory support definitions. |
aeee4812 | 2 | Copyright (C) 2009-2023 Free Software Foundation, Inc. |
d4c61094 AH |
3 | Contributed by Richard Henderson <rth@redhat.com> |
4 | and Aldy Hernandez <aldyh@redhat.com>. | |
0a35513e AH |
5 | |
6 | This file is part of GCC. | |
7 | ||
8 | GCC is free software; you can redistribute it and/or modify it under | |
9 | the terms of the GNU General Public License as published by the Free | |
10 | Software Foundation; either version 3, or (at your option) any later | |
11 | version. | |
12 | ||
13 | GCC is distributed in the hope that it will be useful, but WITHOUT ANY | |
14 | WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
15 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | |
16 | for more details. | |
17 | ||
18 | You should have received a copy of the GNU General Public License | |
19 | along with GCC; see the file COPYING3. If not see | |
20 | <http://www.gnu.org/licenses/>. */ | |
21 | ||
d8a2d370 DN |
22 | #ifndef GCC_TRANS_MEM_H |
23 | #define GCC_TRANS_MEM_H | |
0a35513e AH |
24 | |
25 | /* These defines must match the enumerations in libitm.h. */ | |
26 | #define PR_INSTRUMENTEDCODE 0x0001 | |
27 | #define PR_UNINSTRUMENTEDCODE 0x0002 | |
398b1daa | 28 | #define PR_MULTIWAYCODE (PR_INSTRUMENTEDCODE | PR_UNINSTRUMENTEDCODE) |
0a35513e AH |
29 | #define PR_HASNOXMMUPDATE 0x0004 |
30 | #define PR_HASNOABORT 0x0008 | |
31 | #define PR_HASNOIRREVOCABLE 0x0020 | |
32 | #define PR_DOESGOIRREVOCABLE 0x0040 | |
33 | #define PR_HASNOSIMPLEREADS 0x0080 | |
34 | #define PR_AWBARRIERSOMITTED 0x0100 | |
35 | #define PR_RARBARRIERSOMITTED 0x0200 | |
36 | #define PR_UNDOLOGCODE 0x0400 | |
37 | #define PR_PREFERUNINSTRUMENTED 0x0800 | |
38 | #define PR_EXCEPTIONBLOCK 0x1000 | |
39 | #define PR_HASELSE 0x2000 | |
40 | #define PR_READONLY 0x4000 | |
1fe37220 AM |
41 | |
42 | extern void compute_transaction_bits (void); | |
355fe088 | 43 | extern bool is_tm_ending (gimple *); |
d8a2d370 DN |
44 | extern tree build_tm_abort_call (location_t, bool); |
45 | extern bool is_tm_safe (const_tree); | |
46 | extern bool is_tm_pure (const_tree); | |
47 | extern bool is_tm_may_cancel_outer (tree); | |
48 | extern bool is_tm_ending_fndecl (tree); | |
49 | extern void record_tm_replacement (tree, tree); | |
50 | extern void tm_malloc_replacement (tree); | |
51 | ||
52 | #endif // GCC_TRANS_MEM_H |