This series tweaks various aspects of genemit.cc so that they are easier to change later. There should be no functional change.
Bootstrapped & regression-tested on aarch64-linux-gnu. Also tested using config-list.mk to get cross-target coverage. The series contains a couple of obvious target changes. Otherwise it's stuff that I could self-approve, but I'll leave a few days for comments. Richard Sandiford (9): nds32: Avoid accessing beyond the operands[] array xstormy16: Avoid accessing beyond the operands[] array genemit: Use references rather than pointers genemit: Add an internal queue genemit: Factor out code common to insns and expands genemit: Consistently use operand arrays in gen_* functions genemit: Add a generator struct genemit: Always track multiple uses of operands genemit: Remove purported handling of location_ts gcc/config/nds32/nds32-intrinsic.md | 11 +- gcc/config/stormy16/stormy16.md | 3 +- gcc/genemit.cc | 327 ++++++++++++++++------------ 3 files changed, 197 insertions(+), 144 deletions(-) -- 2.43.0