cgraph.c (cgraph_edge_max_uid): New variable.
authorMartin Jambor <mjambor@suse.cz>
Mon, 7 Jul 2008 19:06:28 +0000 (21:06 +0200)
committerMartin Jambor <jamborm@gcc.gnu.org>
Mon, 7 Jul 2008 19:06:28 +0000 (21:06 +0200)
commit9088c1cc654a768bf3481519372ac3b0853feb4d
tree61b998ffc2d6713cc2e2c2ee4e3b71ae3e4fafdc
parentc71618c614e98cc61b87bc3a9f8aabd04b008ec2
cgraph.c (cgraph_edge_max_uid): New variable.

2008-07-07  Martin Jambor  <mjambor@suse.cz>

* cgraph.c (cgraph_edge_max_uid): New variable.
(struct cgraph_edge_hook_list): New type.
(struct cgraph_node_hook_list): New type.
(struct cgraph_2edge_hook_list): New type.
(struct cgraph_2node_hook_list): New type.
(first_cgraph_edge_removal_hook): New variable.
(first_cgraph_node_removal_hook): New variable.
(first_cgraph_edge_duplicated_hook): New variable.
(first_cgraph_node_duplicated_hook): New variable.
(cgraph_add_edge_removal_hook): New function.
(cgraph_remove_edge_removal_hook): New function.
(cgraph_call_edge_removal_hooks):  New function.
(cgraph_add_node_removal_hook):  New function.
(cgraph_remove_node_removal_hook):  New function.
(cgraph_call_node_removal_hooks):  New function.
(cgraph_add_edge_duplication_hook):  New function.
(cgraph_remove_edge_duplication_hook):  New function.
(cgraph_call_edge_duplication_hooks):  New function.
(cgraph_add_node_duplication_hook):  New function.
(cgraph_remove_node_duplication_hook):  New function.
(cgraph_call_node_duplication_hooks):  New function.
(cgraph_create_edge): Assign to edge uid.
(cgraph_remove_edge): Call edge removal hooks.
(cgraph_node_remove_callees): Call edge removal hooks.
(cgraph_node_remove_callers): Call edge removal hooks.
(cgraph_remove_node): Call node removal hooks.
(cgraph_clone_edge): Call edge duplication hooks.
(cgraph_clone_node): Call node duplication hooks.

* cgraph.h (cgraph_edge): New field uid.
(cgraph_edge_hook): New type.
(cgraph_node_hook): New type.
(cgraph_2edge_hook): New type.
(cgraph_2node_hook): New type.

From-SVN: r137591
gcc/ChangeLog
gcc/cgraph.c
gcc/cgraph.h