GCC Middle and Back End API Reference
hooks.h
Go to the documentation of this file.
1/* General-purpose hooks.
2 Copyright (C) 2002-2026 Free Software Foundation, Inc.
3
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.
8
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.
13
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/>.
17
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! */
21
22#ifndef GCC_HOOKS_H
23#define GCC_HOOKS_H
24
25
26extern bool hook_bool_void_false (void);
27extern bool hook_bool_void_true (void);
28extern bool hook_bool_bool_false (bool);
29extern bool hook_bool_bool_gcc_optionsp_false (bool, struct gcc_options *);
30extern bool hook_bool_dwcfi_dwcfioprndtyperef_false (dwarf_call_frame_info,
33extern bool hook_bool_const_int_const_int_true (const int, const int);
34extern bool hook_bool_mode_false (machine_mode);
35extern bool hook_bool_mode_true (machine_mode);
36extern bool hook_bool_mode_mode_true (machine_mode, machine_mode);
37extern bool hook_bool_mode_const_rtx_false (machine_mode, const_rtx);
38extern bool hook_bool_mode_const_rtx_true (machine_mode, const_rtx);
39extern bool hook_bool_mode_int_unsigned_false (machine_mode, int, unsigned);
40extern bool hook_bool_mode_rtx_false (machine_mode, rtx);
41extern bool hook_bool_mode_rtx_true (machine_mode, rtx);
43 const rtx_insn *);
44extern bool hook_bool_mode_uhwi_false (machine_mode,
45 unsigned HOST_WIDE_INT);
47extern bool hook_bool_uint_uint_mode_false (unsigned int, unsigned int,
48 machine_mode);
49extern bool hook_bool_uint_mode_true (unsigned int, machine_mode);
50extern bool hook_bool_tree_false (tree);
53extern bool hook_bool_tree_true (tree);
57 HOST_WIDE_INT,
58 HOST_WIDE_INT,
61 HOST_WIDE_INT,
62 HOST_WIDE_INT,
64extern bool hook_bool_rtx_insn_true (rtx_insn *);
66extern bool hook_bool_rtx_false (rtx);
67extern bool hook_bool_rtx_insn_int_false (rtx_insn *, int);
68extern bool hook_bool_uintp_uintp_false (unsigned int *, unsigned int *);
70extern bool hook_bool_mode_mode_reg_class_t_true (machine_mode, machine_mode,
72extern bool hook_bool_mode_reg_class_t_reg_class_t_false (machine_mode,
75extern bool hook_bool_rtx_mode_int_int_intp_bool_false (rtx, machine_mode,
76 int, int, int *, bool);
79extern bool hook_bool_tree_bool_false (tree, bool);
81 const widest_int &,
82 unsigned int, bool);
83
84extern void hook_void_void (void);
85extern void hook_void_constcharptr (const char *);
86extern void hook_void_rtx_insn_int (rtx_insn *, int);
87extern void hook_void_FILEptr_constcharptr (FILE *, const char *);
88extern void hook_void_FILEptr_constcharptr_const_tree (FILE *, const char *,
90extern bool hook_bool_FILEptr_rtx_false (FILE *, rtx);
91extern void hook_void_FILEptr_tree (FILE *, tree);
92extern void hook_void_tree (tree);
93extern void hook_void_tree_treeptr (tree, tree *);
94extern void hook_void_int_int (int, int);
95extern void hook_void_gcc_optionsp (struct gcc_options *);
96extern bool hook_bool_uint_true (unsigned int);
97extern bool hook_bool_uint_uintp_false (unsigned int, unsigned int *);
98
99extern int hook_int_uint_mode_1 (unsigned int, machine_mode);
102extern int hook_int_rtx_0 (rtx);
103extern int hook_int_rtx_1 (rtx);
104extern int hook_int_rtx_insn_0 (rtx_insn *);
106extern int hook_int_rtx_bool_0 (rtx, bool);
107extern int hook_int_rtx_mode_as_bool_0 (rtx, machine_mode, addr_space_t,
108 bool);
109
110extern HOST_WIDE_INT hook_hwi_void_0 (void);
111
113extern tree hook_tree_void_null (void);
114
115extern tree hook_tree_tree_bool_null (tree, bool);
118extern tree hook_tree_tree_int_treep_bool_null (tree, int, tree *, bool);
120
121extern unsigned hook_uint_void_0 (void);
122extern unsigned int hook_uint_mode_0 (machine_mode);
123
124extern bool default_can_output_mi_thunk_no_vcall (const_tree, HOST_WIDE_INT,
125 HOST_WIDE_INT, const_tree);
126
128extern rtx hook_rtx_rtx_null (rtx);
129extern rtx hook_rtx_tree_int_null (tree, int);
130
131extern char *hook_charptr_void_null (void);
132extern const char *hook_constcharptr_void_null (void);
134extern const char *hook_constcharptr_const_rtx_insn_null (const rtx_insn *);
136extern const char *hook_constcharptr_int_const_tree_null (int, const_tree);
138
140 unsigned HOST_WIDE_INT);
141
142extern bool hook_stringslice_locationtptr_true (string_slice, location_t *);
144
145#endif
Definition vec.h:2502
struct rtx_def * rtx
Definition coretypes.h:57
unsigned char addr_space_t
Definition coretypes.h:191
struct dw_cfi_node * dw_cfi_ref
Definition coretypes.h:149
const struct rtx_def * const_rtx
Definition coretypes.h:58
int reg_class_t
Definition coretypes.h:380
const union tree_node * const_tree
Definition coretypes.h:98
union tree_node * tree
Definition coretypes.h:97
dw_cfi_oprnd_type
Definition dwarf2out.h:40
rtx hook_rtx_rtx_null(rtx)
Definition hooks.cc:414
unsigned int hook_uint_void_0(void)
Definition hooks.cc:283
tree hook_tree_treeptr_tree_tree_int_boolptr_null(tree *, tree, tree, int, bool *)
Definition hooks.cc:479
void hook_void_int_int(int, int)
Definition hooks.cc:315
bool hook_bool_mode_uhwi_false(machine_mode, unsigned HOST_WIDE_INT)
Definition hooks.cc:152
rtx hook_rtx_rtx_identity(rtx x)
Definition hooks.cc:407
const char * hook_constcharptr_const_tree_const_tree_null(const_tree, const_tree)
Definition hooks.cc:492
rtx hook_rtx_tree_int_null(tree, int)
Definition hooks.cc:421
bool hook_bool_bool_gcc_optionsp_false(bool, struct gcc_options *)
Definition hooks.cc:60
int hook_int_rtx_mode_as_bool_0(rtx, machine_mode, addr_space_t, bool)
Definition hooks.cc:277
int hook_int_rtx_insn_unreachable(rtx_insn *)
Definition hooks.cc:265
bool hook_bool_const_tree_hwi_hwi_const_tree_false(const_tree, HOST_WIDE_INT, HOST_WIDE_INT, const_tree)
Definition hooks.cc:207
int hook_int_const_tree_0(const_tree)
Definition hooks.cc:234
bool hook_bool_mode_const_rtx_true(machine_mode, const_rtx)
Definition hooks.cc:115
bool hook_bool_rtx_insn_false(rtx_insn *)
Definition hooks.cc:374
int hook_int_rtx_insn_0(rtx_insn *)
Definition hooks.cc:259
HOST_WIDE_INT hook_hwi_void_0(void)
Definition hooks.cc:289
const char * hook_constcharptr_const_rtx_insn_null(const rtx_insn *)
Definition hooks.cc:486
bool hook_bool_mode_mode_reg_class_t_true(machine_mode, machine_mode, reg_class_t)
Definition hooks.cc:572
const char * hook_constcharptr_int_const_tree_null(int, const_tree)
Definition hooks.cc:498
bool hook_bool_const_int_const_int_true(const int, const int)
Definition hooks.cc:80
bool hook_bool_const_tree_true(const_tree)
Definition hooks.cc:344
bool hook_bool_const_tree_hwi_hwi_const_tree_true(const_tree, HOST_WIDE_INT, HOST_WIDE_INT, const_tree)
Definition hooks.cc:214
bool hook_bool_mode_int_unsigned_false(machine_mode, int, unsigned)
Definition hooks.cc:122
bool hook_bool_mode_rtx_true(machine_mode, rtx)
Definition hooks.cc:136
tree hook_tree_tree_int_treep_bool_null(tree, int, tree *, bool)
Definition hooks.cc:455
bool hook_bool_uint_true(unsigned int)
Definition hooks.cc:548
bool default_can_output_mi_thunk_no_vcall(const_tree, HOST_WIDE_INT, HOST_WIDE_INT c, const_tree)
Definition hooks.cc:221
void hook_void_tree_treeptr(tree, tree *)
Definition hooks.cc:310
bool hook_bool_mode_false(machine_mode)
Definition hooks.cc:87
int hook_int_rtx_bool_0(rtx, bool)
Definition hooks.cc:271
void hook_void_FILEptr_constcharptr(FILE *, const char *)
Definition hooks.cc:179
bool hook_bool_mode_true(machine_mode)
Definition hooks.cc:94
bool hook_bool_tree_tree_true(tree, tree)
Definition hooks.cc:356
char * hook_charptr_void_null(void)
Definition hooks.cc:442
bool hook_bool_FILEptr_dwcfiptr_false(FILE *, dw_cfi_ref)
Definition hooks.cc:74
bool hook_bool_puint64_puint64_true(poly_uint64, poly_uint64)
Definition hooks.cc:159
bool hook_bool_uint_uintp_false(unsigned int, unsigned int *)
Definition hooks.cc:557
const char * hook_constcharptr_void_null(void)
Definition hooks.cc:435
const char * hook_constcharptr_const_tree_null(const_tree)
Definition hooks.cc:449
bool hook_bool_bool_false(bool)
Definition hooks.cc:53
tree hook_tree_tree_bool_null(tree, bool)
Definition hooks.cc:461
tree hook_tree_void_null(void)
Definition hooks.cc:518
bool hook_bool_uint_uint_mode_false(unsigned int, unsigned int, machine_mode)
Definition hooks.cc:165
bool hook_bool_mode_rtx_false(machine_mode, rtx)
Definition hooks.cc:129
bool hook_stringslice_locationtptr_true(string_slice, location_t *)
Definition hooks.cc:598
tree hook_tree_const_tree_null(const_tree)
Definition hooks.cc:511
bool hook_bool_mode_mode_true(machine_mode, machine_mode)
Definition hooks.cc:101
bool hook_stringslice_consttree_stringslice_consttree_unreachable(string_slice, const_tree, string_slice, const_tree)
Definition hooks.cc:604
bool hook_bool_void_false(void)
Definition hooks.cc:39
bool hook_bool_rtx_mode_int_int_intp_bool_false(rtx, machine_mode, int, int, int *, bool)
Definition hooks.cc:392
bool hook_bool_gsiptr_false(gimple_stmt_iterator *)
Definition hooks.cc:200
int hook_int_uint_mode_1(unsigned int, machine_mode)
Definition hooks.cc:228
opt_machine_mode hook_optmode_mode_uhwi_none(machine_mode, unsigned HOST_WIDE_INT)
Definition hooks.cc:590
void hook_void_void(void)
Definition hooks.cc:33
int hook_int_const_tree_const_tree_1(const_tree, const_tree)
Definition hooks.cc:241
int hook_int_rtx_0(rtx)
Definition hooks.cc:247
void hook_void_rtx_insn_int(rtx_insn *, int)
Definition hooks.cc:534
bool hook_bool_tree_tree_false(tree, tree)
Definition hooks.cc:350
const char * hook_constcharptr_int_const_tree_const_tree_null(int, const_tree, const_tree)
Definition hooks.cc:504
void hook_void_constcharptr(const char *)
Definition hooks.cc:305
bool hook_bool_tree_false(tree)
Definition hooks.cc:320
void hook_void_gcc_optionsp(struct gcc_options *)
Definition hooks.cc:541
bool hook_bool_const_tree_false(const_tree)
Definition hooks.cc:326
bool hook_bool_const_tree_const_tree_true(const_tree, const_tree)
Definition hooks.cc:332
bool hook_bool_rtx_insn_true(rtx_insn *)
Definition hooks.cc:368
tree hook_tree_tree_tree_tree_null(tree, tree, tree)
Definition hooks.cc:473
bool hook_bool_wint_wint_uint_bool_true(const widest_int &, const widest_int &, unsigned int, bool)
Definition hooks.cc:399
bool hook_bool_dwcfi_dwcfioprndtyperef_false(dwarf_call_frame_info, dw_cfi_oprnd_type &)
Definition hooks.cc:67
void hook_void_FILEptr_tree(FILE *, tree)
Definition hooks.cc:300
void hook_void_tree(tree)
Definition hooks.cc:295
bool hook_bool_const_rtx_insn_const_rtx_insn_true(const rtx_insn *, const rtx_insn *)
Definition hooks.cc:143
bool hook_bool_uint_mode_true(unsigned int, machine_mode)
Definition hooks.cc:172
bool hook_bool_rtx_false(rtx)
Definition hooks.cc:380
int hook_int_rtx_1(rtx)
Definition hooks.cc:253
bool hook_bool_void_true(void)
Definition hooks.cc:46
bool hook_bool_tree_true(tree)
Definition hooks.cc:338
bool hook_bool_uintp_uintp_false(unsigned int *, unsigned int *)
Definition hooks.cc:386
bool hook_bool_FILEptr_rtx_false(FILE *, rtx)
Definition hooks.cc:192
unsigned int hook_uint_mode_0(machine_mode)
Definition hooks.cc:428
tree hook_tree_tree_tree_null(tree, tree)
Definition hooks.cc:467
bool hook_bool_mode_const_rtx_false(machine_mode, const_rtx)
Definition hooks.cc:108
bool hook_bool_reg_class_t_false(reg_class_t regclass)
Definition hooks.cc:564
bool hook_bool_rtx_insn_int_false(rtx_insn *, int)
Definition hooks.cc:526
bool hook_bool_tree_bool_false(tree, bool)
Definition hooks.cc:362
void hook_void_FILEptr_constcharptr_const_tree(FILE *, const char *, const_tree)
Definition hooks.cc:186
bool hook_bool_mode_reg_class_t_reg_class_t_false(machine_mode, reg_class_t, reg_class_t)
Definition hooks.cc:580
opt_mode< machine_mode > opt_machine_mode
Definition machmode.h:23
poly_int< NUM_POLY_INT_COEFFS, unsigned HOST_WIDE_INT > poly_uint64
Definition poly-int-types.h:25
void regclass(rtx, int)
Definition gimple-iterator.h:26
Definition rtl.h:551
generic_wide_int< widest_int_storage< WIDEST_INT_MAX_PRECISION > > widest_int
Definition wide-int.h:345