Commit b3458f61 by David Malcolm Committed by David Malcolm

config/arc: Use rtx_insn

gcc/
	* config/arc/arc-protos.h (arc_final_prescan_insn): Strengthen
	first param from rtx to rtx_insn *.
	(arc_verify_short): Likewise.
	(arc_short_long): Likewise.
	(arc_need_delay): Likewise.

	* config/arc/arc.c (struct arc_ccfsm): Likewise for field
	"target_insn".
	(arc_ccfsm_advance): Likewise for param "insn" and locals
	"start_insn", "this_insn".
	(arc_ccfsm_record_condition): Likewise for local "seq_insn".
	(arc_ccfsm_post_advance): Likewise for param "insn".
	(arc_next_active_insn): Likewise for return type and param "insn".
	Convert NULL_RTX to NULL as appropriate.  Add a checked cast.
	(arc_verify_short): Strengthen param "insn" from rtx to rtx_insn *.
	(output_short_suffix): Likewise for local "insn".
	(arc_final_prescan_insn): Likewise for param "insn".  Remove
	now-redundant checked cast.
	(arc_reorg): Strengthen locals "insn", "top_label", "lp", "prev",
	"lp_simple", "next", "mov", "scan", "link_insn" from rtx to
	rtx_insn *.  Add a checked cast.  Introduce local "lc_set_insn"
	for use where lc_set became an insn.
	(arc_adjust_insn_length): Strengthen locals "prev", "succ" from
	rtx to rtx_insn *.
	(arc_get_insn_variants): Likewise for local "prev".
	(arc_ifcvt): Likewise for locals "insn", "seq", "prev", "pprev",
	"next".
	(arc_predicate_delay_insns): Likewise for local "insn".
	(arc_pad_return): Likewise for local "prev".  For now, add a
	checked cast when extracting the insn from "final_sequence".
	(arc_short_long): Likewise for param "insn".
	(arc_need_delay): Likewise for param "insn" and local "next".
	(arc_label_align): Likewise for locals "prev", "next".

From-SVN: r214436
parent cad003ba
2014-08-25 David Malcolm <dmalcolm@redhat.com> 2014-08-25 David Malcolm <dmalcolm@redhat.com>
* config/arc/arc-protos.h (arc_final_prescan_insn): Strengthen
first param from rtx to rtx_insn *.
(arc_verify_short): Likewise.
(arc_short_long): Likewise.
(arc_need_delay): Likewise.
* config/arc/arc.c (struct arc_ccfsm): Likewise for field
"target_insn".
(arc_ccfsm_advance): Likewise for param "insn" and locals
"start_insn", "this_insn".
(arc_ccfsm_record_condition): Likewise for local "seq_insn".
(arc_ccfsm_post_advance): Likewise for param "insn".
(arc_next_active_insn): Likewise for return type and param "insn".
Convert NULL_RTX to NULL as appropriate. Add a checked cast.
(arc_verify_short): Strengthen param "insn" from rtx to rtx_insn *.
(output_short_suffix): Likewise for local "insn".
(arc_final_prescan_insn): Likewise for param "insn". Remove
now-redundant checked cast.
(arc_reorg): Strengthen locals "insn", "top_label", "lp", "prev",
"lp_simple", "next", "mov", "scan", "link_insn" from rtx to
rtx_insn *. Add a checked cast. Introduce local "lc_set_insn"
for use where lc_set became an insn.
(arc_adjust_insn_length): Strengthen locals "prev", "succ" from
rtx to rtx_insn *.
(arc_get_insn_variants): Likewise for local "prev".
(arc_ifcvt): Likewise for locals "insn", "seq", "prev", "pprev",
"next".
(arc_predicate_delay_insns): Likewise for local "insn".
(arc_pad_return): Likewise for local "prev". For now, add a
checked cast when extracting the insn from "final_sequence".
(arc_short_long): Likewise for param "insn".
(arc_need_delay): Likewise for param "insn" and local "next".
(arc_label_align): Likewise for locals "prev", "next".
2014-08-25 David Malcolm <dmalcolm@redhat.com>
* config/alpha/alpha.c (alpha_emit_set_const): Strengthen local * config/alpha/alpha.c (alpha_emit_set_const): Strengthen local
"insn" from rtx to rtx_insn *. "insn" from rtx to rtx_insn *.
(alpha_gp_save_rtx): Likewise for local "seq". (alpha_gp_save_rtx): Likewise for local "seq".
......
...@@ -31,7 +31,7 @@ extern bool compact_sda_memory_operand (rtx op,enum machine_mode mode); ...@@ -31,7 +31,7 @@ extern bool compact_sda_memory_operand (rtx op,enum machine_mode mode);
extern bool arc_double_limm_p (rtx); extern bool arc_double_limm_p (rtx);
extern void arc_print_operand (FILE *, rtx, int); extern void arc_print_operand (FILE *, rtx, int);
extern void arc_print_operand_address (FILE *, rtx); extern void arc_print_operand_address (FILE *, rtx);
extern void arc_final_prescan_insn (rtx, rtx *, int); extern void arc_final_prescan_insn (rtx_insn *, rtx *, int);
extern void arc_set_default_type_attributes(tree type); extern void arc_set_default_type_attributes(tree type);
extern const char *arc_output_libcall (const char *); extern const char *arc_output_libcall (const char *);
extern bool prepare_extend_operands (rtx *operands, enum rtx_code code, extern bool prepare_extend_operands (rtx *operands, enum rtx_code code,
...@@ -100,14 +100,14 @@ extern void split_addsi (rtx *); ...@@ -100,14 +100,14 @@ extern void split_addsi (rtx *);
extern void split_subsi (rtx *); extern void split_subsi (rtx *);
extern void arc_pad_return (void); extern void arc_pad_return (void);
extern rtx arc_split_move (rtx *); extern rtx arc_split_move (rtx *);
extern int arc_verify_short (rtx insn, int unalign, int); extern int arc_verify_short (rtx_insn *insn, int unalign, int);
extern const char *arc_short_long (rtx insn, const char *, const char *); extern const char *arc_short_long (rtx_insn *insn, const char *, const char *);
extern rtx arc_regno_use_in (unsigned int, rtx); extern rtx arc_regno_use_in (unsigned int, rtx);
extern int arc_attr_type (rtx); extern int arc_attr_type (rtx);
extern bool arc_scheduling_not_expected (void); extern bool arc_scheduling_not_expected (void);
extern bool arc_sets_cc_p (rtx insn); extern bool arc_sets_cc_p (rtx insn);
extern int arc_label_align (rtx label); extern int arc_label_align (rtx label);
extern bool arc_need_delay (rtx insn); extern bool arc_need_delay (rtx_insn *insn);
extern bool arc_text_label (rtx); extern bool arc_text_label (rtx);
extern int arc_decl_pretend_args (tree decl); extern int arc_decl_pretend_args (tree decl);
extern bool arc_short_comparison_p (rtx, int); extern bool arc_short_comparison_p (rtx, int);
......
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