]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/hooks.h
mn10300: Fixes to PARALLEL handling within mn10300_adjust_sched_cost
[thirdparty/gcc.git] / gcc / hooks.h
CommitLineData
e4ec2cac 1/* General-purpose hooks.
23a5b65a 2 Copyright (C) 2002-2014 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#include "machmode.h"
807e902e 26#include "wide-int.h"
f676971a 27
c6e8c921 28extern bool hook_bool_void_false (void);
af287697 29extern bool hook_bool_void_true (void);
c6e8c921 30extern bool hook_bool_bool_false (bool);
d5fabb58 31extern bool hook_bool_bool_gcc_optionsp_false (bool, struct gcc_options *);
7b5cbb57 32extern bool hook_bool_const_int_const_int_true (const int, const int);
f676971a 33extern bool hook_bool_mode_false (enum machine_mode);
42db504c 34extern bool hook_bool_mode_true (enum machine_mode);
3101faab
KG
35extern bool hook_bool_mode_const_rtx_false (enum machine_mode, const_rtx);
36extern bool hook_bool_mode_const_rtx_true (enum machine_mode, const_rtx);
fbbf66e7 37extern bool hook_bool_mode_rtx_false (enum machine_mode, rtx);
1a627b35 38extern bool hook_bool_mode_rtx_true (enum machine_mode, rtx);
4b4de898 39extern bool hook_bool_const_rtx_const_rtx_true (const_rtx, const_rtx);
0f6d54f7
RS
40extern bool hook_bool_mode_uhwi_false (enum machine_mode,
41 unsigned HOST_WIDE_INT);
c6e8c921 42extern bool hook_bool_tree_false (tree);
ac7d7749 43extern bool hook_bool_const_tree_false (const_tree);
c6e8c921 44extern bool hook_bool_tree_true (tree);
586de218 45extern bool hook_bool_const_tree_true (const_tree);
ea679d55 46extern bool hook_bool_gsiptr_false (gimple_stmt_iterator *);
3101faab
KG
47extern bool hook_bool_const_tree_hwi_hwi_const_tree_false (const_tree,
48 HOST_WIDE_INT,
49 HOST_WIDE_INT,
50 const_tree);
51extern bool hook_bool_const_tree_hwi_hwi_const_tree_true (const_tree,
52 HOST_WIDE_INT,
53 HOST_WIDE_INT,
54 const_tree);
78e4f1ad 55extern bool hook_bool_rtx_true (rtx);
c6e8c921 56extern bool hook_bool_rtx_false (rtx);
7942e47e 57extern bool hook_bool_rtx_int_false (rtx, int);
e129d93a 58extern bool hook_bool_uintp_uintp_false (unsigned int *, unsigned int *);
68f932c4
RS
59extern bool hook_bool_rtx_int_int_int_intp_bool_false (rtx, int, int, int,
60 int *, bool);
953ff289 61extern bool hook_bool_tree_tree_false (tree, tree);
faf63e39 62extern bool hook_bool_tree_tree_true (tree, tree);
953ff289 63extern bool hook_bool_tree_bool_false (tree, bool);
807e902e
KZ
64extern bool hook_bool_wint_wint_uint_bool_true (const widest_int &,
65 const widest_int &,
1d0216c8 66 unsigned int, bool);
c6e8c921 67
c6e8c921 68extern void hook_void_void (void);
8e3e233b 69extern void hook_void_constcharptr (const char *);
7942e47e 70extern void hook_void_rtx_int (rtx, int);
c6e8c921 71extern void hook_void_FILEptr_constcharptr (FILE *, const char *);
e1267133 72extern bool hook_bool_FILEptr_rtx_false (FILE *, rtx);
c6e8c921
GK
73extern void hook_void_tree (tree);
74extern void hook_void_tree_treeptr (tree, tree *);
fac0f722 75extern void hook_void_int_int (int, int);
7e4aae92 76extern void hook_void_gcc_optionsp (struct gcc_options *);
c6e8c921 77
df7b0cc4 78extern int hook_int_uint_mode_1 (unsigned int, enum machine_mode);
3101faab
KG
79extern int hook_int_const_tree_0 (const_tree);
80extern int hook_int_const_tree_const_tree_1 (const_tree, const_tree);
c6e8c921 81extern int hook_int_rtx_0 (rtx);
d327457f
JR
82extern int hook_int_rtx_1 (rtx);
83extern int hook_int_rtx_unreachable (rtx);
f40751dd 84extern int hook_int_rtx_bool_0 (rtx, bool);
b413068c
OE
85extern int hook_int_rtx_mode_as_bool_0 (rtx, enum machine_mode, addr_space_t,
86 bool);
c6e8c921 87
40449a90
SL
88extern tree hook_tree_const_tree_null (const_tree);
89
953ff289 90extern tree hook_tree_tree_tree_null (tree, tree);
a68ab351 91extern tree hook_tree_tree_tree_tree_null (tree, tree, tree);
953ff289 92extern tree hook_tree_tree_tree_tree_3rd_identity (tree, tree, tree);
f311c3b4 93extern tree hook_tree_tree_int_treep_bool_null (tree, int, tree *, bool);
953ff289 94
7a9bf9a4 95extern unsigned hook_uint_void_0 (void);
fceec4d3 96extern unsigned int hook_uint_mode_0 (enum machine_mode);
c6e8c921 97
3101faab
KG
98extern bool default_can_output_mi_thunk_no_vcall (const_tree, HOST_WIDE_INT,
99 HOST_WIDE_INT, const_tree);
e5f3b786 100
c6e8c921
GK
101extern rtx hook_rtx_rtx_identity (rtx);
102extern rtx hook_rtx_rtx_null (rtx);
103extern rtx hook_rtx_tree_int_null (tree, int);
953ff289 104
1efcb8c6 105extern const char *hook_constcharptr_void_null (void);
3101faab
KG
106extern const char *hook_constcharptr_const_tree_null (const_tree);
107extern const char *hook_constcharptr_const_rtx_null (const_rtx);
108extern const char *hook_constcharptr_const_tree_const_tree_null (const_tree, const_tree);
109extern const char *hook_constcharptr_int_const_tree_null (int, const_tree);
110extern const char *hook_constcharptr_int_const_tree_const_tree_null (int, const_tree, const_tree);
e5f3b786 111#endif