aarch64: Write AARCH64_FIELD calls to aarch64-opc-2.c
This patch writes AARCH64_FIELD calls to aarch64-opc-2.c by parsing the operand field lists in aarch64-gen.c.
This patch parses the operand field lists in aarch64-gen.c, and rewrites the content to aarch64-opc-2.c using AARCH64_FIELD calls. This allows aarch64-tbl.h to use shorthand macros without exporting them elsewhere. This is part of a series to improve the clarity and maintainability of the aarch64 opcode definitions.
In Details
This patch modifies the aarch64 opcode definitions (opcodes/aarch64-gen.c and opcodes/aarch64-opc-2.c). It changes how operand fields are defined, using AARCH64_FIELD calls in aarch64-opc-2.c. These fields describe the layout of instructions for the aarch64 architecture.
For Context
This patch modifies the binutils assembler for the AArch64 architecture. It changes how the layout of instruction fields are defined, using more explicit function calls. This change makes the code easier to understand and maintain, and sets the stage for further improvements.