binutils Newspaper
NOVEMBER 30, 2026
aarch64 — Proposed

aarch64: Simplify decode tree generation

Simplifies AArch64 decode tree generation by printing the tree on-the-fly.

This patch refactors the AArch64 decode tree generation in opcodes/aarch64-gen.c. It eliminates the need to store the computed tree for multiple users by printing the generated decision tree directly. This change streamlines the code and results in no modification to the generated output, simplifying maintenance.

In Details

Refactors opcodes/aarch64-gen.c to simplify the decode tree generation process. Instead of building an intermediate bittree data structure and then processing it, this change generates the decision tree code directly into the output file. This removes the need for intermediate storage and simplifies the overall code flow, as the tree is now constructed and output in a single pass.

Filed Under: aarch64disassemblercode generationrefactoring