aarch64: Add non-F_CONV aliases to the decode tree
Patch integrates non-F_CONV instruction aliases into the aarch64 disassembler's decode tree for efficiency.
This patch integrates non-F_CONV instruction aliases into the aarch64 disassembler’s binary decision tree. This change aims to improve efficiency by allowing more opcode lookups to be resolved directly within the tree, rather than relying on a separate alias conversion step. It also enables handling of overlapping opcodes marked F_HAS_ALIAS by removing dependencies on table order, which is necessary for future support of HINTE aliases.
In Details
This patch reorganizes the aarch64 disassembler's opcode lookup mechanism. Previously, some aliased instructions required a separate step (determine_disassembling_preference) after an initial lookup. This change integrates all non-F_CONV (Format Convert) aliases directly into the main opcode decision tree. This streamlines the lookup process, potentially improving performance and simplifying the handling of instructions with overlapping encodings and alias relationships, paving the way for more complex alias support.
- decode tree
- An internal data structure used by disassemblers to efficiently map instruction bit patterns to their corresponding symbolic names and properties.
- alias
- In this context, an instruction that is a variation or shorthand for another, often differing in a few bits that control its specific behavior or target.
- F_CONV
- Likely a flag indicating a format conversion instruction or an instruction that requires special handling related to data format conversion.
- F_HAS_ALIAS
- A flag indicating that an opcode has one or more aliases.
- HINTE
- Possibly a type of hint instruction in the ARM architecture.
- aarch64
- The 64-bit ARM architecture instruction set.