aboutsummaryrefslogtreecommitdiff
path: root/gcc/sel-sched-ir.h
diff options
context:
space:
mode:
authorDavid Malcolm <dmalcolm@redhat.com>2014-08-26 17:45:50 +0000
committerDavid Malcolm <dmalcolm@gcc.gnu.org>2014-08-26 17:45:50 +0000
commit3d30f4e815a41fdf2d4a9bf37223281f5f8a06dc (patch)
treeed379aa8cc0bbd5a36d24df5a7937cb60287e83c /gcc/sel-sched-ir.h
parent6144a8363cf4ced1145ae059466fbf6c8562c6d5 (diff)
downloadgcc-3d30f4e815a41fdf2d4a9bf37223281f5f8a06dc.zip
gcc-3d30f4e815a41fdf2d4a9bf37223281f5f8a06dc.tar.gz
gcc-3d30f4e815a41fdf2d4a9bf37223281f5f8a06dc.tar.bz2
Remove VINSN_INSN_RTX scaffolding
gcc/ * 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. / * rtx-classes-status.txt (TODO): Remove SET_VINSN_INSN_RTX. From-SVN: r214529
Diffstat (limited to 'gcc/sel-sched-ir.h')
-rw-r--r--gcc/sel-sched-ir.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/gcc/sel-sched-ir.h b/gcc/sel-sched-ir.h
index 118e001..9f1fb6b 100644
--- a/gcc/sel-sched-ir.h
+++ b/gcc/sel-sched-ir.h
@@ -655,7 +655,7 @@ struct idata_def
struct vinsn_def
{
/* Associated insn. */
- rtx insn_rtx;
+ rtx_insn *insn_rtx;
/* Its description. */
struct idata_def id;
@@ -677,8 +677,7 @@ struct vinsn_def
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))