]> git.ipfire.org Git - thirdparty/gcc.git/commit
genemit: Add an internal queue
authorRichard Sandiford <richard.sandiford@arm.com>
Wed, 21 May 2025 09:01:28 +0000 (10:01 +0100)
committerRichard Sandiford <richard.sandiford@arm.com>
Wed, 21 May 2025 09:01:28 +0000 (10:01 +0100)
commit4fafb14e1f2ea068f2eb1a29ffb54d9984ab154d
tree41e3b26ad5db667c508684780c43a43f69f61076
parent9b57e38e0ef26192ebb0e9e326ab3a9df06ee275
genemit: Add an internal queue

An earlier version of this series wanted to collect information
about all the gen_* functions that are going to be generated.
The current version no longer does that, but the queue seemed
worth keeping anyway, since it gives a more consistent structure.

gcc/
* genemit.cc (queue): New static variable.
(maybe_queue_insn): New function, split out from...
(gen_insn): ...here.
(queue_expand): New function, split out from...
(gen_expand): ...here.
(gen_split): New function, split out from...
(queue_split): ...here.
(main): Queue definitions for later processing rather than
emitting them on the fly.
gcc/genemit.cc