]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/hooks.h
PR fortran/95090 - ICE: identifier overflow
[thirdparty/gcc.git] / gcc / hooks.h
CommitLineData
e4ec2cac 1/* General-purpose hooks.
8d9254fc 2 Copyright (C) 2002-2020 Free Software Foundation, Inc.
e4ec2cac 3
9dcd6f09
NC
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.
e4ec2cac 8
9dcd6f09
NC
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.
e4ec2cac 13
9dcd6f09
NC
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
b8698a0f 16 <http://www.gnu.org/licenses/>.
e4ec2cac 17
9dcd6f09
NC
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! */
e4ec2cac 21
e5f3b786
NB
22#ifndef GCC_HOOKS_H
23#define GCC_HOOKS_H
24
f676971a 25
c6e8c921 26extern bool hook_bool_void_false (void);
af287697 27extern bool hook_bool_void_true (void);
c6e8c921 28extern bool hook_bool_bool_false (bool);
d5fabb58 29extern bool hook_bool_bool_gcc_optionsp_false (bool, struct gcc_options *);
7b5cbb57 30extern bool hook_bool_const_int_const_int_true (const int, const int);
ef4bddc2
RS
31extern bool hook_bool_mode_false (machine_mode);
32extern bool hook_bool_mode_true (machine_mode);
99e1629f 33extern bool hook_bool_mode_mode_true (machine_mode, machine_mode);
ef4bddc2
RS
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);
c1ce59ab
DM
38extern bool hook_bool_const_rtx_insn_const_rtx_insn_true (const rtx_insn *,
39 const rtx_insn *);
ef4bddc2 40extern bool hook_bool_mode_uhwi_false (machine_mode,
0f6d54f7 41 unsigned HOST_WIDE_INT);
37b2b8f9 42extern bool hook_bool_puint64_puint64_true (poly_uint64, poly_uint64);
6ee2cc70 43extern bool hook_bool_uint_uint_mode_false (unsigned int, unsigned int,
473574ee 44 machine_mode);
f939c3e6 45extern bool hook_bool_uint_mode_true (unsigned int, machine_mode);
c6e8c921 46extern bool hook_bool_tree_false (tree);
ac7d7749 47extern bool hook_bool_const_tree_false (const_tree);
482b2b43 48extern bool hook_bool_const_tree_const_tree_true (const_tree, const_tree);
c6e8c921 49extern bool hook_bool_tree_true (tree);
586de218 50extern bool hook_bool_const_tree_true (const_tree);
ea679d55 51extern bool hook_bool_gsiptr_false (gimple_stmt_iterator *);
3101faab
KG
52extern bool hook_bool_const_tree_hwi_hwi_const_tree_false (const_tree,
53 HOST_WIDE_INT,
54 HOST_WIDE_INT,
55 const_tree);
56extern bool hook_bool_const_tree_hwi_hwi_const_tree_true (const_tree,
57 HOST_WIDE_INT,
58 HOST_WIDE_INT,
59 const_tree);
ac44248e 60extern bool hook_bool_rtx_insn_true (rtx_insn *);
c6e8c921 61extern bool hook_bool_rtx_false (rtx);
ac44248e 62extern bool hook_bool_rtx_insn_int_false (rtx_insn *, int);
e129d93a 63extern bool hook_bool_uintp_uintp_false (unsigned int *, unsigned int *);
e93f30a6 64extern bool hook_bool_reg_class_t_false (reg_class_t regclass);
0d803030
RS
65extern bool hook_bool_mode_mode_reg_class_t_true (machine_mode, machine_mode,
66 reg_class_t);
f15643d4
RS
67extern bool hook_bool_mode_reg_class_t_reg_class_t_false (machine_mode,
68 reg_class_t,
69 reg_class_t);
e548c9df
AM
70extern bool hook_bool_rtx_mode_int_int_intp_bool_false (rtx, machine_mode,
71 int, int, int *, bool);
953ff289 72extern bool hook_bool_tree_tree_false (tree, tree);
faf63e39 73extern bool hook_bool_tree_tree_true (tree, tree);
953ff289 74extern bool hook_bool_tree_bool_false (tree, bool);
807e902e
KZ
75extern bool hook_bool_wint_wint_uint_bool_true (const widest_int &,
76 const widest_int &,
1d0216c8 77 unsigned int, bool);
c6e8c921 78
c6e8c921 79extern void hook_void_void (void);
8e3e233b 80extern void hook_void_constcharptr (const char *);
ac44248e 81extern void hook_void_rtx_insn_int (rtx_insn *, int);
c6e8c921 82extern void hook_void_FILEptr_constcharptr (FILE *, const char *);
0d4b5b86
BS
83extern void hook_void_FILEptr_constcharptr_const_tree (FILE *, const char *,
84 const_tree);
e1267133 85extern bool hook_bool_FILEptr_rtx_false (FILE *, rtx);
2f21e1ba 86extern void hook_void_rtx_tree (rtx, tree);
dddb7af4 87extern void hook_void_FILEptr_tree (FILE *, tree);
c6e8c921
GK
88extern void hook_void_tree (tree);
89extern void hook_void_tree_treeptr (tree, tree *);
fac0f722 90extern void hook_void_int_int (int, int);
7e4aae92 91extern void hook_void_gcc_optionsp (struct gcc_options *);
bf072854 92extern bool hook_bool_uint_uintp_false (unsigned int, unsigned int *);
c6e8c921 93
ef4bddc2 94extern int hook_int_uint_mode_1 (unsigned int, machine_mode);
3101faab
KG
95extern int hook_int_const_tree_0 (const_tree);
96extern int hook_int_const_tree_const_tree_1 (const_tree, const_tree);
c6e8c921 97extern int hook_int_rtx_0 (rtx);
d327457f 98extern int hook_int_rtx_1 (rtx);
924c9e3e 99extern int hook_int_rtx_insn_0 (rtx_insn *);
84034c69 100extern int hook_int_rtx_insn_unreachable (rtx_insn *);
f40751dd 101extern int hook_int_rtx_bool_0 (rtx, bool);
ef4bddc2 102extern int hook_int_rtx_mode_as_bool_0 (rtx, machine_mode, addr_space_t,
b413068c 103 bool);
c6e8c921 104
2a31c321
RS
105extern HOST_WIDE_INT hook_hwi_void_0 (void);
106
40449a90 107extern tree hook_tree_const_tree_null (const_tree);
1202f33e 108extern tree hook_tree_void_null (void);
40449a90 109
92e63bd2 110extern tree hook_tree_tree_bool_null (tree, bool);
953ff289 111extern tree hook_tree_tree_tree_null (tree, tree);
a68ab351 112extern tree hook_tree_tree_tree_tree_null (tree, tree, tree);
f311c3b4 113extern tree hook_tree_tree_int_treep_bool_null (tree, int, tree *, bool);
7a4418a5 114extern tree hook_tree_treeptr_tree_tree_int_boolptr_null (tree *, tree, tree, int, bool *);
953ff289 115
7a9bf9a4 116extern unsigned hook_uint_void_0 (void);
ef4bddc2 117extern unsigned int hook_uint_mode_0 (machine_mode);
c6e8c921 118
3101faab
KG
119extern bool default_can_output_mi_thunk_no_vcall (const_tree, HOST_WIDE_INT,
120 HOST_WIDE_INT, const_tree);
e5f3b786 121
c6e8c921
GK
122extern rtx hook_rtx_rtx_identity (rtx);
123extern rtx hook_rtx_rtx_null (rtx);
124extern rtx hook_rtx_tree_int_null (tree, int);
953ff289 125
c713ddc0 126extern char *hook_charptr_void_null (void);
1efcb8c6 127extern const char *hook_constcharptr_void_null (void);
3101faab 128extern const char *hook_constcharptr_const_tree_null (const_tree);
ac44248e 129extern const char *hook_constcharptr_const_rtx_insn_null (const rtx_insn *);
3101faab
KG
130extern const char *hook_constcharptr_const_tree_const_tree_null (const_tree, const_tree);
131extern const char *hook_constcharptr_int_const_tree_null (int, const_tree);
132extern const char *hook_constcharptr_int_const_tree_const_tree_null (int, const_tree, const_tree);
695da534
RS
133
134extern opt_machine_mode hook_optmode_mode_uhwi_none (machine_mode,
135 unsigned HOST_WIDE_INT);
e5f3b786 136#endif