Fix previous commit
[official-gcc.git] / gcc / hooks.h
blob7cfe91d12dfdc3d01307b5b7b81364912668195c
1 /* General-purpose hooks.
2 Copyright (C) 2002-2019 Free Software Foundation, Inc.
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.
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.
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
16 <http://www.gnu.org/licenses/>.
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! */
22 #ifndef GCC_HOOKS_H
23 #define GCC_HOOKS_H
26 extern bool hook_bool_void_false (void);
27 extern bool hook_bool_void_true (void);
28 extern bool hook_bool_bool_false (bool);
29 extern bool hook_bool_bool_gcc_optionsp_false (bool, struct gcc_options *);
30 extern bool hook_bool_const_int_const_int_true (const int, const int);
31 extern bool hook_bool_mode_false (machine_mode);
32 extern bool hook_bool_mode_true (machine_mode);
33 extern bool hook_bool_mode_mode_true (machine_mode, machine_mode);
34 extern bool hook_bool_mode_const_rtx_false (machine_mode, const_rtx);
35 extern bool hook_bool_mode_const_rtx_true (machine_mode, const_rtx);
36 extern bool hook_bool_mode_rtx_false (machine_mode, rtx);
37 extern bool hook_bool_mode_rtx_true (machine_mode, rtx);
38 extern bool hook_bool_const_rtx_insn_const_rtx_insn_true (const rtx_insn *,
39 const rtx_insn *);
40 extern bool hook_bool_mode_uhwi_false (machine_mode,
41 unsigned HOST_WIDE_INT);
42 extern bool hook_bool_puint64_puint64_true (poly_uint64, poly_uint64);
43 extern bool hook_bool_uint_uint_mode_false (unsigned int, unsigned int,
44 machine_mode);
45 extern bool hook_bool_uint_mode_true (unsigned int, machine_mode);
46 extern bool hook_bool_tree_false (tree);
47 extern bool hook_bool_const_tree_false (const_tree);
48 extern bool hook_bool_tree_true (tree);
49 extern bool hook_bool_const_tree_true (const_tree);
50 extern bool hook_bool_gsiptr_false (gimple_stmt_iterator *);
51 extern bool hook_bool_const_tree_hwi_hwi_const_tree_false (const_tree,
52 HOST_WIDE_INT,
53 HOST_WIDE_INT,
54 const_tree);
55 extern bool hook_bool_const_tree_hwi_hwi_const_tree_true (const_tree,
56 HOST_WIDE_INT,
57 HOST_WIDE_INT,
58 const_tree);
59 extern bool hook_bool_rtx_insn_true (rtx_insn *);
60 extern bool hook_bool_rtx_false (rtx);
61 extern bool hook_bool_rtx_insn_int_false (rtx_insn *, int);
62 extern bool hook_bool_uintp_uintp_false (unsigned int *, unsigned int *);
63 extern bool hook_bool_reg_class_t_false (reg_class_t regclass);
64 extern bool hook_bool_mode_mode_reg_class_t_true (machine_mode, machine_mode,
65 reg_class_t);
66 extern bool hook_bool_mode_reg_class_t_reg_class_t_false (machine_mode,
67 reg_class_t,
68 reg_class_t);
69 extern bool hook_bool_rtx_mode_int_int_intp_bool_false (rtx, machine_mode,
70 int, int, int *, bool);
71 extern bool hook_bool_tree_tree_false (tree, tree);
72 extern bool hook_bool_tree_tree_true (tree, tree);
73 extern bool hook_bool_tree_bool_false (tree, bool);
74 extern bool hook_bool_wint_wint_uint_bool_true (const widest_int &,
75 const widest_int &,
76 unsigned int, bool);
78 extern void hook_void_void (void);
79 extern void hook_void_constcharptr (const char *);
80 extern void hook_void_rtx_insn_int (rtx_insn *, int);
81 extern void hook_void_FILEptr_constcharptr (FILE *, const char *);
82 extern void hook_void_FILEptr_constcharptr_const_tree (FILE *, const char *,
83 const_tree);
84 extern bool hook_bool_FILEptr_rtx_false (FILE *, rtx);
85 extern void hook_void_rtx_tree (rtx, tree);
86 extern void hook_void_FILEptr_tree (FILE *, tree);
87 extern void hook_void_tree (tree);
88 extern void hook_void_tree_treeptr (tree, tree *);
89 extern void hook_void_int_int (int, int);
90 extern void hook_void_gcc_optionsp (struct gcc_options *);
91 extern bool hook_bool_uint_uintp_false (unsigned int, unsigned int *);
93 extern int hook_int_uint_mode_1 (unsigned int, machine_mode);
94 extern int hook_int_const_tree_0 (const_tree);
95 extern int hook_int_const_tree_const_tree_1 (const_tree, const_tree);
96 extern int hook_int_rtx_0 (rtx);
97 extern int hook_int_rtx_1 (rtx);
98 extern int hook_int_rtx_insn_0 (rtx_insn *);
99 extern int hook_int_rtx_insn_unreachable (rtx_insn *);
100 extern int hook_int_rtx_bool_0 (rtx, bool);
101 extern int hook_int_rtx_mode_as_bool_0 (rtx, machine_mode, addr_space_t,
102 bool);
104 extern HOST_WIDE_INT hook_hwi_void_0 (void);
106 extern tree hook_tree_const_tree_null (const_tree);
107 extern tree hook_tree_void_null (void);
109 extern tree hook_tree_tree_tree_null (tree, tree);
110 extern tree hook_tree_tree_tree_tree_null (tree, tree, tree);
111 extern tree hook_tree_tree_int_treep_bool_null (tree, int, tree *, bool);
112 extern tree hook_tree_treeptr_tree_tree_int_boolptr_null (tree *, tree, tree, int, bool *);
114 extern unsigned hook_uint_void_0 (void);
115 extern unsigned int hook_uint_mode_0 (machine_mode);
117 extern bool default_can_output_mi_thunk_no_vcall (const_tree, HOST_WIDE_INT,
118 HOST_WIDE_INT, const_tree);
120 extern rtx hook_rtx_rtx_identity (rtx);
121 extern rtx hook_rtx_rtx_null (rtx);
122 extern rtx hook_rtx_tree_int_null (tree, int);
124 extern char *hook_charptr_void_null (void);
125 extern const char *hook_constcharptr_void_null (void);
126 extern const char *hook_constcharptr_const_tree_null (const_tree);
127 extern const char *hook_constcharptr_const_rtx_insn_null (const rtx_insn *);
128 extern const char *hook_constcharptr_const_tree_const_tree_null (const_tree, const_tree);
129 extern const char *hook_constcharptr_int_const_tree_null (int, const_tree);
130 extern const char *hook_constcharptr_int_const_tree_const_tree_null (int, const_tree, const_tree);
132 extern opt_machine_mode hook_optmode_mode_uhwi_none (machine_mode,
133 unsigned HOST_WIDE_INT);
134 #endif