]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/hooks.h
C++: more location wrapper nodes (PR c++/43064, PR c++/43486)
[thirdparty/gcc.git] / gcc / hooks.h
CommitLineData
e27e52e0 1/* General-purpose hooks.
8e8f6434 2 Copyright (C) 2002-2018 Free Software Foundation, Inc.
e27e52e0 3
8c4c00c1 4 This program is free software; you can redistribute it and/or modify it
5 under the terms of the GNU General Public License as published by the
6 Free Software Foundation; either version 3, or (at your option) any
7 later version.
e27e52e0 8
8c4c00c1 9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
e27e52e0 13
8c4c00c1 14 You should have received a copy of the GNU General Public License
15 along with this program; see the file COPYING3. If not see
48e1416a 16 <http://www.gnu.org/licenses/>.
e27e52e0 17
8c4c00c1 18 In other words, you are welcome to use, share and improve this program.
19 You are forbidden to forbid anyone else to use, share and improve
20 what you give them. Help stamp out software-hoarding! */
e27e52e0 21
dd436eaf 22#ifndef GCC_HOOKS_H
23#define GCC_HOOKS_H
24
9e7454d0 25
4e00ee67 26extern bool hook_bool_void_false (void);
219626ad 27extern bool hook_bool_void_true (void);
4e00ee67 28extern bool hook_bool_bool_false (bool);
b213bf24 29extern bool hook_bool_bool_gcc_optionsp_false (bool, struct gcc_options *);
cd90919d 30extern bool hook_bool_const_int_const_int_true (const int, const int);
3754d046 31extern bool hook_bool_mode_false (machine_mode);
32extern bool hook_bool_mode_true (machine_mode);
5f6dcf1a 33extern bool hook_bool_mode_mode_true (machine_mode, machine_mode);
3754d046 34extern bool hook_bool_mode_const_rtx_false (machine_mode, const_rtx);
35extern bool hook_bool_mode_const_rtx_true (machine_mode, const_rtx);
36extern bool hook_bool_mode_rtx_false (machine_mode, rtx);
37extern bool hook_bool_mode_rtx_true (machine_mode, rtx);
484e0746 38extern bool hook_bool_const_rtx_insn_const_rtx_insn_true (const rtx_insn *,
39 const rtx_insn *);
3754d046 40extern bool hook_bool_mode_uhwi_false (machine_mode,
13d3ceb9 41 unsigned HOST_WIDE_INT);
e524465a 42extern bool hook_bool_puint64_puint64_true (poly_uint64, poly_uint64);
5da94e60 43extern bool hook_bool_uint_mode_false (unsigned int, machine_mode);
b395382f 44extern bool hook_bool_uint_mode_true (unsigned int, machine_mode);
4e00ee67 45extern bool hook_bool_tree_false (tree);
f8fd23c0 46extern bool hook_bool_const_tree_false (const_tree);
4e00ee67 47extern bool hook_bool_tree_true (tree);
fb80456a 48extern bool hook_bool_const_tree_true (const_tree);
29cad3b6 49extern bool hook_bool_gsiptr_false (gimple_stmt_iterator *);
a9f1838b 50extern bool hook_bool_const_tree_hwi_hwi_const_tree_false (const_tree,
51 HOST_WIDE_INT,
52 HOST_WIDE_INT,
53 const_tree);
54extern bool hook_bool_const_tree_hwi_hwi_const_tree_true (const_tree,
55 HOST_WIDE_INT,
56 HOST_WIDE_INT,
57 const_tree);
18282db0 58extern bool hook_bool_rtx_insn_true (rtx_insn *);
4e00ee67 59extern bool hook_bool_rtx_false (rtx);
18282db0 60extern bool hook_bool_rtx_insn_int_false (rtx_insn *, int);
124ac4e4 61extern bool hook_bool_uintp_uintp_false (unsigned int *, unsigned int *);
c3bd02b3 62extern bool hook_bool_reg_class_t_false (reg_class_t regclass);
b56a9dbc 63extern bool hook_bool_mode_mode_reg_class_t_true (machine_mode, machine_mode,
64 reg_class_t);
c836e75b 65extern bool hook_bool_mode_reg_class_t_reg_class_t_false (machine_mode,
66 reg_class_t,
67 reg_class_t);
5ae4887d 68extern bool hook_bool_rtx_mode_int_int_intp_bool_false (rtx, machine_mode,
69 int, int, int *, bool);
1e8e9920 70extern bool hook_bool_tree_tree_false (tree, tree);
afaef242 71extern bool hook_bool_tree_tree_true (tree, tree);
1e8e9920 72extern bool hook_bool_tree_bool_false (tree, bool);
a04a7bec 73extern bool hook_bool_wint_wint_uint_bool_true (const widest_int &,
74 const widest_int &,
75 unsigned int, bool);
4e00ee67 76
4e00ee67 77extern void hook_void_void (void);
9423c9b7 78extern void hook_void_constcharptr (const char *);
18282db0 79extern void hook_void_rtx_insn_int (rtx_insn *, int);
4e00ee67 80extern void hook_void_FILEptr_constcharptr (FILE *, const char *);
7260826d 81extern void hook_void_FILEptr_constcharptr_const_tree (FILE *, const char *,
82 const_tree);
3608e5ba 83extern bool hook_bool_FILEptr_rtx_false (FILE *, rtx);
53597a55 84extern void hook_void_rtx_tree (rtx, tree);
13ad7b2d 85extern void hook_void_FILEptr_tree (FILE *, tree);
4e00ee67 86extern void hook_void_tree (tree);
87extern void hook_void_tree_treeptr (tree, tree *);
02e53c17 88extern void hook_void_int_int (int, int);
cc07c468 89extern void hook_void_gcc_optionsp (struct gcc_options *);
6c2db539 90extern bool hook_bool_uint_uintp_false (unsigned int, unsigned int *);
4e00ee67 91
3754d046 92extern int hook_int_uint_mode_1 (unsigned int, machine_mode);
a9f1838b 93extern int hook_int_const_tree_0 (const_tree);
94extern int hook_int_const_tree_const_tree_1 (const_tree, const_tree);
4e00ee67 95extern int hook_int_rtx_0 (rtx);
f2d92d7a 96extern int hook_int_rtx_1 (rtx);
d85a7677 97extern int hook_int_rtx_insn_0 (rtx_insn *);
d3ffa7b4 98extern int hook_int_rtx_insn_unreachable (rtx_insn *);
f529eb25 99extern int hook_int_rtx_bool_0 (rtx, bool);
3754d046 100extern int hook_int_rtx_mode_as_bool_0 (rtx, machine_mode, addr_space_t,
d9c5e5f4 101 bool);
4e00ee67 102
8374586c 103extern HOST_WIDE_INT hook_hwi_void_0 (void);
104
2b3c93a3 105extern tree hook_tree_const_tree_null (const_tree);
8a23256f 106extern tree hook_tree_void_null (void);
2b3c93a3 107
1e8e9920 108extern tree hook_tree_tree_tree_null (tree, tree);
fd6481cf 109extern tree hook_tree_tree_tree_tree_null (tree, tree, tree);
97d67146 110extern tree hook_tree_tree_int_treep_bool_null (tree, int, tree *, bool);
1e8e9920 111
e88d34f6 112extern unsigned hook_uint_void_0 (void);
3754d046 113extern unsigned int hook_uint_mode_0 (machine_mode);
4e00ee67 114
a9f1838b 115extern bool default_can_output_mi_thunk_no_vcall (const_tree, HOST_WIDE_INT,
116 HOST_WIDE_INT, const_tree);
dd436eaf 117
4e00ee67 118extern rtx hook_rtx_rtx_identity (rtx);
119extern rtx hook_rtx_rtx_null (rtx);
120extern rtx hook_rtx_tree_int_null (tree, int);
1e8e9920 121
38e21583 122extern char *hook_charptr_void_null (void);
6adc88f8 123extern const char *hook_constcharptr_void_null (void);
a9f1838b 124extern const char *hook_constcharptr_const_tree_null (const_tree);
18282db0 125extern const char *hook_constcharptr_const_rtx_insn_null (const rtx_insn *);
a9f1838b 126extern const char *hook_constcharptr_const_tree_const_tree_null (const_tree, const_tree);
127extern const char *hook_constcharptr_int_const_tree_null (int, const_tree);
128extern const char *hook_constcharptr_int_const_tree_const_tree_null (int, const_tree, const_tree);
30d26b1c 129
130extern opt_machine_mode hook_optmode_mode_uhwi_none (machine_mode,
131 unsigned HOST_WIDE_INT);
dd436eaf 132#endif