aarch64: Use has_alias_list in print_find_real_opcode
Refactors AArch64 real opcode lookup to use alias lists, simplifying code.
This patch refactors the print_find_real_opcode function in opcodes/aarch64-asm-2.c, replacing the use of the alias_info structure with has_alias_list. This change simplifies the code generation for opcode lookups and reorders some case statements due to processing alias lists in forward order. The removal of shared case bodies adds a small amount of code but improves clarity. The disassembler behavior remains unchanged.
In Details
Modifies opcodes/aarch64-asm-2.c to use a new mechanism (has_alias_list) for handling aliases within print_find_real_opcode, replacing the previous alias_info structure. This change simplifies the generation of the assembly code by processing alias lists in a forward order. Consequently, the order of case statements in the generated output may change, and shared case bodies are removed for clarity, resulting in a minor increase in code size but improved maintainability.
- has_alias_list
- A data structure or mechanism used in the AArch64 disassembler to manage lists of opcodes that have aliases.
- alias_info
- A data structure previously used in the AArch64 disassembler to store information about instruction aliases.