WEDNESDAY, NOVEMBER 4, 2026
aarch64 — Proposed
aarch64: Split up read_table() in aarch64-gen.c
Refactors opcode table validation by extracting it into a new function.
This patch refactors the read_table() function in aarch64-gen.c by splitting out the validation logic into a new validate_table() function. It also ensures that validation is not skipped for aliases. The results of initialize_decoder_tree() are moved and inlined into the correct if block as they are only used when emitting aarch64-dis-2.c.
In Details
This patch modifies aarch64-gen.c to improve the organization of opcode table parsing and validation. By separating validation into validate_table(), the code becomes more modular and readable. It also corrects the handling of aliases during validation, ensuring all opcodes are checked.