]> git.ipfire.org Git - thirdparty/gcc.git/commit
Introduce rtx_insn subclass of rtx_def
authordmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 18 Aug 2014 20:02:17 +0000 (20:02 +0000)
committerdmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 18 Aug 2014 20:02:17 +0000 (20:02 +0000)
commita0416db58c0eb1acc5525084e7a3bfc6780b51e6
tree405b41edecb80a913b53d51834002c78bfc5aa09
parent7f4326bd2ded676097021d6b634a70a790a3b9ae
Introduce rtx_insn subclass of rtx_def

gcc/
2014-08-18  David Malcolm  <dmalcolm@redhat.com>

* coretypes.h (class rtx_insn): Add forward declaration.

* rtl.h: Include is-a.h.
(struct rtx_def): Add dummy "desc" and "tag" GTY options as a
workaround to ensure gengtype knows inheritance is occurring,
whilst continuing to use the pre-existing special-casing for
rtx_def.
(class rtx_insn): New subclass of rtx_def, adding the
invariant that we're dealing with something we can sanely use
INSN_UID, NEXT_INSN, PREV_INSN on.
(is_a_helper <rtx_insn *>::test): New.
(is_a_helper <const rtx_insn *>::test): New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@214118 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/coretypes.h
gcc/rtl.h