Commit c16162ad by Kazu Hirata Committed by Kazu Hirata

modulo-sched.c (create_partial_schedule, [...]): Make them static.

	* modulo-sched.c (create_partial_schedule,
	free_partial_schedule, reset_partial_schedule,
	ps_add_node_check_conflicts, rotate_partial_schedule): Make
	them static.

From-SVN: r90291
parent 14c8e213
2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
* modulo-sched.c (create_partial_schedule,
free_partial_schedule, reset_partial_schedule,
ps_add_node_check_conflicts, rotate_partial_schedule): Make
them static.
2004-11-08 Richard Henderson <rth@redhat.com> 2004-11-08 Richard Henderson <rth@redhat.com>
* expmed.c (extract_force_align_mem_bit_field): Correct handling at * expmed.c (extract_force_align_mem_bit_field): Correct handling at
......
...@@ -147,15 +147,15 @@ struct partial_schedule ...@@ -147,15 +147,15 @@ struct partial_schedule
}; };
partial_schedule_ptr create_partial_schedule (int ii, ddg_ptr, int history); static partial_schedule_ptr create_partial_schedule (int ii, ddg_ptr, int history);
void free_partial_schedule (partial_schedule_ptr); static void free_partial_schedule (partial_schedule_ptr);
void reset_partial_schedule (partial_schedule_ptr, int new_ii); static void reset_partial_schedule (partial_schedule_ptr, int new_ii);
void print_partial_schedule (partial_schedule_ptr, FILE *); void print_partial_schedule (partial_schedule_ptr, FILE *);
ps_insn_ptr ps_add_node_check_conflicts (partial_schedule_ptr, static ps_insn_ptr ps_add_node_check_conflicts (partial_schedule_ptr,
ddg_node_ptr node, int cycle, ddg_node_ptr node, int cycle,
sbitmap must_precede, sbitmap must_precede,
sbitmap must_follow); sbitmap must_follow);
void rotate_partial_schedule (partial_schedule_ptr, int); static void rotate_partial_schedule (partial_schedule_ptr, int);
void set_row_column_for_ps (partial_schedule_ptr); void set_row_column_for_ps (partial_schedule_ptr);
...@@ -1783,7 +1783,7 @@ order_nodes_in_scc (ddg_ptr g, sbitmap nodes_ordered, sbitmap scc, ...@@ -1783,7 +1783,7 @@ order_nodes_in_scc (ddg_ptr g, sbitmap nodes_ordered, sbitmap scc,
modulo scheduling. */ modulo scheduling. */
/* Create a partial schedule and allocate a memory to hold II rows. */ /* Create a partial schedule and allocate a memory to hold II rows. */
partial_schedule_ptr static partial_schedule_ptr
create_partial_schedule (int ii, ddg_ptr g, int history) create_partial_schedule (int ii, ddg_ptr g, int history)
{ {
partial_schedule_ptr ps = (partial_schedule_ptr) partial_schedule_ptr ps = (partial_schedule_ptr)
...@@ -1819,7 +1819,7 @@ free_ps_insns (partial_schedule_ptr ps) ...@@ -1819,7 +1819,7 @@ free_ps_insns (partial_schedule_ptr ps)
} }
/* Free all the memory allocated to the partial schedule. */ /* Free all the memory allocated to the partial schedule. */
void static void
free_partial_schedule (partial_schedule_ptr ps) free_partial_schedule (partial_schedule_ptr ps)
{ {
if (!ps) if (!ps)
...@@ -1831,7 +1831,7 @@ free_partial_schedule (partial_schedule_ptr ps) ...@@ -1831,7 +1831,7 @@ free_partial_schedule (partial_schedule_ptr ps)
/* Clear the rows array with its PS_INSNs, and create a new one with /* Clear the rows array with its PS_INSNs, and create a new one with
NEW_II rows. */ NEW_II rows. */
void static void
reset_partial_schedule (partial_schedule_ptr ps, int new_ii) reset_partial_schedule (partial_schedule_ptr ps, int new_ii)
{ {
if (!ps) if (!ps)
...@@ -2131,7 +2131,7 @@ ps_has_conflicts (partial_schedule_ptr ps, int from, int to) ...@@ -2131,7 +2131,7 @@ ps_has_conflicts (partial_schedule_ptr ps, int from, int to)
is returned. Bit N is set in MUST_PRECEDE/MUST_FOLLOW if the node with is returned. Bit N is set in MUST_PRECEDE/MUST_FOLLOW if the node with
cuid N must be come before/after (respectively) the node pointed to by cuid N must be come before/after (respectively) the node pointed to by
PS_I when scheduled in the same cycle. */ PS_I when scheduled in the same cycle. */
ps_insn_ptr static ps_insn_ptr
ps_add_node_check_conflicts (partial_schedule_ptr ps, ddg_node_ptr n, ps_add_node_check_conflicts (partial_schedule_ptr ps, ddg_node_ptr n,
int c, sbitmap must_precede, int c, sbitmap must_precede,
sbitmap must_follow) sbitmap must_follow)
...@@ -2176,7 +2176,7 @@ ps_add_node_check_conflicts (partial_schedule_ptr ps, ddg_node_ptr n, ...@@ -2176,7 +2176,7 @@ ps_add_node_check_conflicts (partial_schedule_ptr ps, ddg_node_ptr n,
/* Rotate the rows of PS such that insns scheduled at time /* Rotate the rows of PS such that insns scheduled at time
START_CYCLE will appear in row 0. Updates max/min_cycles. */ START_CYCLE will appear in row 0. Updates max/min_cycles. */
void static void
rotate_partial_schedule (partial_schedule_ptr ps, int start_cycle) rotate_partial_schedule (partial_schedule_ptr ps, int start_cycle)
{ {
int i, row, backward_rotates; int i, row, backward_rotates;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment