aboutsummaryrefslogtreecommitdiff
path: root/gcc/rtl.h
diff options
context:
space:
mode:
authorAndrew MacLeod <amacleod@cygnus.com>1999-08-25 17:50:53 +0000
committerAndrew Macleod <amacleod@gcc.gnu.org>1999-08-25 17:50:53 +0000
commit5a4f6418af320b21dca63e0a0139306ce23b728a (patch)
tree86584c27da4bb36103f3b8996d2188499bab6044 /gcc/rtl.h
parentb54480a7e6ff4cf13e5c6464a1efa5fa151e732a (diff)
downloadgcc-5a4f6418af320b21dca63e0a0139306ce23b728a.zip
gcc-5a4f6418af320b21dca63e0a0139306ce23b728a.tar.gz
gcc-5a4f6418af320b21dca63e0a0139306ce23b728a.tar.bz2
lists.c (unused_insn_list, [...]): New file for maintaining various types of lists.
Wed Aug 25 13:41:47 EDT 1999 Andrew MacLeod <amacleod@cygnus.com> * lists.c (unused_insn_list, unused_expr_list): New file for maintaining various types of lists. New statics for maintaining a cache of available INSN_LIST and EXPR_LIST nodes. (free_list): Static function for freeing a list of INSN/EXPR nodes. (alloc_INSN_LIST): Function to get a free INSN_LIST node. (alloc_EXPR_LIST): Function to get a free EXPR_LIST node. (init_EXPR_INSN_LIST_cache): Initialize the cache lists. (free_EXPR_LIST_list): Free an entire list of EXPR_LIST nodes. (free_INSN_LIST_list): Free an entire list of INSN_LIST nodes. (free_EXPR_LIST_node): Free an individual EXPR_LIST node. (free_INSN_LIST_node): Free an individual INSN_LIST node. * haifa-sched.c (unused_insn_list, unused_expr_list): Moved to flow.c (free_list, alloc_INSN_LIST, alloc_EXPR_LIST): Moved to flow.c (remove_dependence, free_pending_lists): Use new global routines. (flush_pending_lists, sched_analyze_insn): Use new global routines. (sched_analyze, compute_block_backward_dependences): Use new routines. (sched_analyze_1, sched_analyze_2): Use new routines. (schedule_insns): Use new global routines. * rtl.h (init_EXPR_INSN_LIST_cache, free_EXPR_LIST_list): Add function prototypes. (free_INSN_LIST_list, free_EXPR_LIST_node): Add prototypes. (free_INSN_LIST_node, alloc_INSN_LIST, alloc_EXPR_LIST): Add function prototypes. * toplev.c (rest_of_compilation): Initialize node cache. * Makefile.in (OBJS): Add lists.o to list of object files. (lists.o): Add dependancies. From-SVN: r28864
Diffstat (limited to 'gcc/rtl.h')
-rw-r--r--gcc/rtl.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/rtl.h b/gcc/rtl.h
index 40a3125..3c8a192 100644
--- a/gcc/rtl.h
+++ b/gcc/rtl.h
@@ -1022,6 +1022,13 @@ extern void remove_node_from_expr_list PROTO((rtx, rtx *));
/* flow.c */
extern rtx find_use_as_address PROTO((rtx, rtx, HOST_WIDE_INT));
+void init_EXPR_INSN_LIST_cache PROTO((void));
+void free_EXPR_LIST_list PROTO((rtx *));
+void free_INSN_LIST_list PROTO((rtx *));
+void free_EXPR_LIST_node PROTO((rtx));
+void free_INSN_LIST_node PROTO((rtx));
+rtx alloc_INSN_LIST PROTO((rtx, rtx));
+rtx alloc_EXPR_LIST PROTO((int, rtx, rtx));
/* regclass.c */