+2014-08-26 David Malcolm <dmalcolm@redhat.com>
+
+ * rtx-classes-status.txt (TODO): Remove SET_VINSN_INSN_RTX.
+
2014-08-26 David Malcolm <dmalcolm@redhat.com>
* rtx-classes-status.txt (TODO): Remove SET_BND_TO.
+2014-08-26 David Malcolm <dmalcolm@redhat.com>
+
+ * sel-sched-ir.h (struct vinsn_def): Strengthen field "insn_rtx"
+ from rtx to rtx_insn *.
+ (VINSN_INSN_RTX): Eliminate rvalue function and...
+ (SET_VINSN_INSN): ...lvalue function in favor of...
+ (VINSN_INSN_RTX): reinstate this old macro.
+
+ * sel-sched-ir.c (vinsn_init): Eliminate use of SET_VINSN_INSN_RTX
+ in favor of VINSN_INSN_RTX.
+ (VINSN_INSN_RTX): Delete this function.
+ (SET_VINSN_INSN_RTX): Likewise.
+
2014-08-26 David Malcolm <dmalcolm@redhat.com>
* sel-sched-ir.h (insn_t): Strengthen from rtx to rtx_insn *.
hash_rtx_callback_function hrcf;
int insn_class;
- SET_VINSN_INSN_RTX (vi) = insn;
+ VINSN_INSN_RTX (vi) = insn;
VINSN_COUNT (vi) = 0;
vi->cost = -1;
preheader_blocks);
}
-rtx_insn *VINSN_INSN_RTX (vinsn_t vi)
-{
- return safe_as_a <rtx_insn *> (vi->insn_rtx);
-}
-
-rtx& SET_VINSN_INSN_RTX (vinsn_t vi)
-{
- return vi->insn_rtx;
-}
-
#endif
struct vinsn_def
{
/* Associated insn. */
- rtx insn_rtx;
+ rtx_insn *insn_rtx;
/* Its description. */
struct idata_def id;
bool may_trap_p;
};
-extern rtx_insn *VINSN_INSN_RTX (vinsn_t);
-extern rtx& SET_VINSN_INSN_RTX (vinsn_t);
+#define VINSN_INSN_RTX(VI) ((VI)->insn_rtx)
#define VINSN_PATTERN(VI) (PATTERN (VINSN_INSN_RTX (VI)))
#define VINSN_ID(VI) (&((VI)->id))
* SET_BB_HEAD, SET_BB_END, SET_BB_HEADER
* SET_DEP_PRO, SET_DEP_CON
* SET_NEXT_INSN, SET_PREV_INSN
-* SET_VINSN_INSN_RTX