]> git.ipfire.org Git - thirdparty/gcc.git/commit
genemit: Add a generator struct
authorRichard Sandiford <richard.sandiford@arm.com>
Wed, 21 May 2025 09:01:29 +0000 (10:01 +0100)
committerRichard Sandiford <richard.sandiford@arm.com>
Wed, 21 May 2025 09:01:29 +0000 (10:01 +0100)
commit88b849ffb9fc4b6de3786784b4c4b074758cc2a1
treef8028b6a5e404d0abd8f9629c9b0e403022e9b0c
parent02c3910f75ddae52dd59775bf9a6c4452bbdd0ac
genemit: Add a generator struct

gen_exp now has quite a few arguments that need to be passed
to each recursive call.  This patch turns it and related routines
into member functions of a new generator class, so that the shared
information can be stored in member variables.

This also helps to make later patches less noisy.

gcc/
* genemit.cc (generator): New structure.
(gen_rtx_scratch, gen_exp, gen_emit_seq): Turn into member
functions of generator.
(gen_insn, gen_expand, gen_split, output_add_clobbers): Update
users accordingly.
gcc/genemit.cc