xref: /openbsd-src/gnu/usr.bin/gcc/gcc/tree-inline.h (revision c87b03e512fc05ed6e0222f6fb0ae86264b1d05b)
1*c87b03e5Sespie /* Tree inlining hooks and declarations.
2*c87b03e5Sespie    Copyright 2001 Free Software Foundation, Inc.
3*c87b03e5Sespie    Contributed by Alexandre Oliva  <aoliva@redhat.com>
4*c87b03e5Sespie 
5*c87b03e5Sespie This file is part of GNU CC.
6*c87b03e5Sespie 
7*c87b03e5Sespie GNU CC is free software; you can redistribute it and/or modify
8*c87b03e5Sespie it under the terms of the GNU General Public License as published by
9*c87b03e5Sespie the Free Software Foundation; either version 2, or (at your option)
10*c87b03e5Sespie any later version.
11*c87b03e5Sespie 
12*c87b03e5Sespie GNU CC is distributed in the hope that it will be useful,
13*c87b03e5Sespie but WITHOUT ANY WARRANTY; without even the implied warranty of
14*c87b03e5Sespie MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15*c87b03e5Sespie GNU General Public License for more details.
16*c87b03e5Sespie 
17*c87b03e5Sespie You should have received a copy of the GNU General Public License
18*c87b03e5Sespie along with GNU CC; see the file COPYING.  If not, write to
19*c87b03e5Sespie the Free Software Foundation, 59 Temple Place - Suite 330,
20*c87b03e5Sespie Boston, MA 02111-1307, USA.  */
21*c87b03e5Sespie 
22*c87b03e5Sespie #ifndef GCC_TREE_INLINE_H
23*c87b03e5Sespie #define GCC_TREE_INLINE_H
24*c87b03e5Sespie 
25*c87b03e5Sespie /* Function prototypes.  */
26*c87b03e5Sespie 
27*c87b03e5Sespie void optimize_inline_calls PARAMS ((tree));
28*c87b03e5Sespie int tree_inlinable_function_p PARAMS ((tree));
29*c87b03e5Sespie tree walk_tree PARAMS ((tree*, walk_tree_fn, void*, void*));
30*c87b03e5Sespie tree walk_tree_without_duplicates PARAMS ((tree*, walk_tree_fn, void*));
31*c87b03e5Sespie tree copy_tree_r PARAMS ((tree*, int*, void*));
32*c87b03e5Sespie void clone_body PARAMS ((tree, tree, void*));
33*c87b03e5Sespie void remap_save_expr PARAMS ((tree*, void*, tree, int*));
34*c87b03e5Sespie 
35*c87b03e5Sespie /* 0 if we should not perform inlining.
36*c87b03e5Sespie    1 if we should expand functions calls inline at the tree level.
37*c87b03e5Sespie    2 if we should consider *all* functions to be inline
38*c87b03e5Sespie    candidates.  */
39*c87b03e5Sespie 
40*c87b03e5Sespie extern int flag_inline_trees;
41*c87b03e5Sespie 
42*c87b03e5Sespie #endif /* GCC_TREE_INLINE_H */
43