[AArch64][SME][NFC] Add implicit operands for SME instructions in the disassembly.
authorCaroline Concatto <caroline.concatto@arm.com>
Fri, 13 May 2022 10:04:08 +0000 (11:04 +0100)
committerCaroline Concatto <caroline.concatto@arm.com>
Fri, 20 May 2022 09:29:21 +0000 (10:29 +0100)
commit8765ad42cd01717b739a8389584cc8eb9d09a093
tree01f7af883991eff1e83edead07a85ba69b2fba70
parenta61835b1e3f5e074f4c8174edadfc6bef975138f
[AArch64][SME][NFC] Add implicit operands for SME instructions in the disassembly.

This patch simplifies the switch statement in getInstruction to add
implicit operands (register ZA and Immediate  equal to zero)
in the SME operands when disassembly.

The register ZA and the zero immediate  can be added by checking the operand
in MCInstDesc.

Differential Revision: https://reviews.llvm.org/D125534
llvm/lib/Target/AArch64/AArch64InstrFormats.td
llvm/lib/Target/AArch64/Disassembler/AArch64Disassembler.cpp
llvm/lib/Target/AArch64/Disassembler/AArch64Disassembler.h
llvm/lib/Target/AArch64/MCTargetDesc/AArch64MCTargetDesc.h