From: Trevor Saunders <[email protected]>
Hi,
a bunch more of the same converting rtx to rtx_insn * or subclasses.
patches individually bootstrapped and regtested on ppc64-linux-gnu, as
well as bootstrapped on x86_64-linux-gnu, and aarch64-linux-gnu. Will
commit in a day or so if no issues come up.
Trev
Trevor Saunders (25):
Pass an rtx_insn * to _fatal_insn_not_found
Use rtx_code_label * for locals set by gen_label_rtx
Use label_ref_label instead of XEXP on a LABEL_REF
Use rtx_jump_insn * for locals set by emit_jump_insn_before/after
Use rtx_insn * for locals that already hold an insn
Pass an rtx_insn * to find_reg_equal_equiv_note
Use rtx_insn * for returns that are already an insn
Pass a const rtx_insn * to the EH throw helpers
Use rtx_insn * for locals set from insn returns
Make argument types rtx_insn * when they always are one
Pass an rtx_insn * to label_to_alignment
Split pattern locals from the insns they emit
Pass an rtx_insn * to add_function_usage_to
Use rtx_insn * for locals that only hold an insn
Hold emitted insns in rtx_insn * locals
Use rtx_insn * and rtx_code_label * where the value already has that
type
Pass an rtx_insn * to redirect_with_delay_slots_safe_p
Split locals that are overwritten with a different rtx
Use rtx_insn * where it always is one
Pass an rtx_insn * to update_reg_unused_notes
Pass an rtx_insn * to redundant_insn
Return end_sequence directly
Use add_reg_note instead of a hand-built note
Pass an rtx_insn * to add_reg_note
Pass a const rtx_insn * to the reg-note finders
gcc/builtins.cc | 4 +-
gcc/builtins.h | 4 +-
gcc/calls.cc | 2 +-
gcc/compare-elim.cc | 6 +-
gcc/config/aarch64/aarch64.cc | 38 ++--
gcc/config/aarch64/aarch64.md | 2 +-
gcc/config/alpha/alpha-protos.h | 4 +-
gcc/config/alpha/alpha.cc | 130 +++++++------
gcc/config/alpha/alpha.md | 8 +-
gcc/config/arc/arc-protos.h | 2 +-
gcc/config/arc/arc.cc | 174 +++++++++--------
gcc/config/arm/aarch-common-protos.h | 22 +--
gcc/config/arm/aarch-common.cc | 60 +++---
gcc/config/arm/arm-protos.h | 4 +-
gcc/config/arm/arm.cc | 179 ++++++++----------
gcc/config/arm/arm.md | 14 +-
gcc/config/arm/minipool.cc | 6 +-
gcc/config/avr/avr.cc | 8 +-
gcc/config/avr/avr.md | 2 +-
gcc/config/bfin/bfin-protos.h | 4 +-
gcc/config/bfin/bfin.cc | 23 +--
gcc/config/c6x/c6x.cc | 53 +++---
gcc/config/cris/cris-protos.h | 4 +-
gcc/config/cris/cris.cc | 74 +++-----
gcc/config/cris/cris.md | 3 +-
gcc/config/csky/csky.cc | 23 +--
gcc/config/csky/csky.md | 2 +-
gcc/config/epiphany/epiphany.md | 8 +-
gcc/config/fr30/fr30-protos.h | 2 +-
gcc/config/fr30/fr30.cc | 7 +-
gcc/config/frv/frv-protos.h | 16 +-
gcc/config/frv/frv.cc | 49 ++---
gcc/config/ft32/ft32.cc | 2 +-
gcc/config/gcn/gcn-valu.md | 4 +-
gcc/config/gcn/gcn.cc | 27 +--
gcc/config/gcn/gcn.md | 2 +-
gcc/config/h8300/h8300.cc | 16 +-
gcc/config/i386/i386-expand.cc | 8 +-
gcc/config/i386/i386-features.cc | 2 +-
gcc/config/i386/i386-features.h | 2 +-
gcc/config/i386/i386.cc | 6 +-
gcc/config/ia64/ia64.cc | 21 +-
gcc/config/lm32/lm32.cc | 12 +-
gcc/config/loongarch/loongarch-protos.h | 2 +-
gcc/config/loongarch/loongarch.cc | 17 +-
gcc/config/loongarch/loongarch.md | 12 +-
gcc/config/m32r/m32r-protos.h | 4 +-
gcc/config/m32r/m32r.cc | 16 +-
gcc/config/m68k/m68k.md | 12 +-
gcc/config/mcore/mcore.cc | 4 +-
gcc/config/microblaze/microblaze.cc | 8 +-
gcc/config/mips/mips-protos.h | 10 +-
gcc/config/mips/mips.cc | 24 ++-
gcc/config/mmix/mmix.cc | 8 +-
gcc/config/mn10300/mn10300-protos.h | 2 +-
gcc/config/mn10300/mn10300.cc | 4 +-
gcc/config/moxie/moxie.cc | 2 +-
gcc/config/msp430/msp430.cc | 17 +-
gcc/config/nds32/nds32-md-auxiliary.cc | 13 +-
gcc/config/nds32/nds32-memory-manipulation.cc | 21 +-
gcc/config/nds32/nds32-pipelines-auxiliary.cc | 8 +-
gcc/config/nds32/nds32-protos.h | 2 +-
gcc/config/nds32/nds32-relax-opt.cc | 6 +-
gcc/config/nds32/nds32.cc | 84 ++++----
gcc/config/nds32/nds32.md | 4 +-
gcc/config/nvptx/nvptx.cc | 2 +-
gcc/config/or1k/or1k.cc | 78 ++++----
gcc/config/or1k/or1k.md | 9 +-
gcc/config/pa/pa.cc | 2 +-
gcc/config/pa/pa.md | 6 +-
gcc/config/pru/pru.cc | 10 +-
gcc/config/pru/pru.md | 33 ++--
gcc/config/riscv/riscv-protos.h | 2 +-
gcc/config/riscv/riscv-string.cc | 41 ++--
gcc/config/riscv/riscv-v.cc | 8 +-
gcc/config/riscv/riscv.cc | 37 ++--
gcc/config/riscv/riscv.md | 14 +-
gcc/config/riscv/thead.cc | 6 +-
gcc/config/rl78/rl78.cc | 15 +-
gcc/config/rs6000/rs6000-builtin.cc | 2 +-
gcc/config/rs6000/rs6000-call.cc | 2 +-
gcc/config/rs6000/rs6000-logue.cc | 35 ++--
gcc/config/rs6000/rs6000-p8swap.cc | 52 ++---
gcc/config/rs6000/rs6000-protos.h | 2 +-
gcc/config/rs6000/rs6000-string.cc | 70 +++----
gcc/config/rs6000/rs6000.cc | 65 +++----
gcc/config/rs6000/rs6000.md | 16 +-
gcc/config/rx/rx-protos.h | 2 +-
gcc/config/rx/rx.cc | 16 +-
gcc/config/s390/s390.cc | 89 ++++-----
gcc/config/s390/s390.md | 6 +-
gcc/config/sh/sh-protos.h | 12 +-
gcc/config/sh/sh.cc | 92 ++++-----
gcc/config/sh/sh.md | 55 +++---
gcc/config/sh/sh_treg_combine.cc | 42 ++--
gcc/config/sparc/sparc.cc | 10 +-
gcc/config/stormy16/stormy16-protos.h | 2 +-
gcc/config/stormy16/stormy16.cc | 24 +--
gcc/config/v850/v850.cc | 5 +-
gcc/config/vax/builtins.md | 8 +-
gcc/config/vax/vax-protos.h | 2 +-
gcc/config/vax/vax.cc | 8 +-
gcc/config/visium/visium.cc | 32 ++--
gcc/config/xtensa/xtensa.cc | 7 +-
gcc/cse.cc | 5 +-
gcc/df-problems.cc | 2 +-
gcc/df.h | 2 +-
gcc/dse.cc | 2 +-
gcc/dwarf2out.cc | 6 +-
gcc/emit-rtl.cc | 2 +-
gcc/except.cc | 52 ++---
gcc/except.h | 2 +-
gcc/explow.cc | 8 +-
gcc/explow.h | 6 +-
gcc/final.cc | 9 +-
gcc/haifa-sched.cc | 2 +-
gcc/ifcvt.cc | 2 +-
gcc/lower-subreg.cc | 12 +-
gcc/optabs.cc | 4 +-
gcc/output.h | 2 +-
gcc/postreload-gcse.cc | 2 +-
gcc/reload.cc | 4 +-
gcc/reload.h | 2 +-
gcc/reload1.cc | 8 +-
gcc/reorg.cc | 108 ++++++-----
gcc/resource.cc | 9 +-
gcc/rtl-error.cc | 2 +-
gcc/rtl-tests.cc | 4 +-
gcc/rtl.h | 29 +--
gcc/rtlanal.cc | 22 ++-
gcc/sched-deps.cc | 2 +-
gcc/sched-int.h | 2 +-
gcc/sel-sched-ir.cc | 6 +-
gcc/sel-sched-ir.h | 2 +-
gcc/sel-sched.cc | 6 +-
gcc/tree-outof-ssa.cc | 4 +-
gcc/var-tracking.cc | 8 +-
137 files changed, 1311 insertions(+), 1265 deletions(-)
--
2.53.0