aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-pass.h
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2005-04-21 15:18:23 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2005-04-21 13:18:23 +0000
commitb48610900e267a7335dd1315e32733d8ef4092dc (patch)
tree9b1c4ea35be4dd923659057c72272052e51d3eef /gcc/tree-pass.h
parentd0396b7941243ea231a4f812de072c89ca2cd345 (diff)
downloadgcc-b48610900e267a7335dd1315e32733d8ef4092dc.zip
gcc-b48610900e267a7335dd1315e32733d8ef4092dc.tar.gz
gcc-b48610900e267a7335dd1315e32733d8ef4092dc.tar.bz2
cgraphunit.c: Include tree-pass.h (cgraph_decide_recursive_inlining...
* cgraphunit.c: Include tree-pass.h (cgraph_decide_recursive_inlining, cgraph_decide_inlining_of_small_function, cgraph_set_inline_failed, cgraph_decide_inlining): Dump goes to dump_file. (cgraph_optimize): Call ipa passes instead of inliner. (cgraph_gate_inlining, pass_ipa_inline): New. * tree-optimize.c (all_ipa_passes): New static variable. (register_one_dump_file): Dead with IPA passes. (register_dump_files): Likewise. (init_tree_optimization_passes): Initialize IPA passes. (execute_todo): Do cgraph dump when asked to, do not dump function body for IPA pass. * tree-pass.h (TODO_dump_cgraph): New macro. (ipa_passes): Declare. * Makefile.in (cgraphunit.o): Add dependency on cgraphunit.h From-SVN: r98501
Diffstat (limited to 'gcc/tree-pass.h')
-rw-r--r--gcc/tree-pass.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/tree-pass.h b/gcc/tree-pass.h
index ac1ab92..c9fdd85 100644
--- a/gcc/tree-pass.h
+++ b/gcc/tree-pass.h
@@ -106,6 +106,7 @@ struct dump_file_info
#define TODO_verify_stmts (1 << 4)
#define TODO_cleanup_cfg (1 << 5)
#define TODO_verify_loops (1 << 6)
+#define TODO_dump_cgraph (1 << 7)
/* To-do flags for calls to update_ssa. */
@@ -153,6 +154,8 @@ struct dump_file_info
#define TODO_verify_all \
(TODO_verify_ssa | TODO_verify_flow | TODO_verify_stmts)
+extern void ipa_passes (void);
+
extern struct tree_opt_pass pass_mudflap_1;
extern struct tree_opt_pass pass_mudflap_2;
extern struct tree_opt_pass pass_remove_useless_stmts;
@@ -214,4 +217,6 @@ extern struct tree_opt_pass pass_vrp;
extern struct tree_opt_pass pass_create_structure_vars;
extern struct tree_opt_pass pass_uncprop;
+extern struct tree_opt_pass pass_ipa_inline;
+
#endif /* GCC_TREE_PASS_H */