[M68k] Adopt the new VarLenCodeEmitterGen for arithmetic instructions
authorMin-Yih Hsu <minyihh@uci.edu>
Mon, 6 Dec 2021 03:36:10 +0000 (11:36 +0800)
committerMin-Yih Hsu <minyihh@uci.edu>
Fri, 11 Feb 2022 17:31:12 +0000 (09:31 -0800)
commit08f2b0dcf61fbe037d363c1e6ff20aaee4875dfe
tree0e1d4f9688491c21e15c2e07ada0342ecd4a688c
parent31f9519d48c26bd542253cc20dc333732c991332
[M68k] Adopt the new VarLenCodeEmitterGen for arithmetic instructions

This patch refactors all the existing M68k arithmetic instructions
to use the new VarLenCodeEmitterGen infrastructure.

This patch is tested by the existing MC test cases.

Note that one of the codegen tests needed to be updated because the
ordering of two equivalent instructions were switched.

Differential Revision: https://reviews.llvm.org/D115234
llvm/lib/Target/M68k/CMakeLists.txt
llvm/lib/Target/M68k/M68kInstrArithmetic.td
llvm/lib/Target/M68k/M68kInstrFormats.td
llvm/lib/Target/M68k/M68kInstrInfo.td
llvm/lib/Target/M68k/MCTargetDesc/M68kMCCodeEmitter.cpp
llvm/test/CodeGen/M68k/Control/cmp.ll
llvm/test/MC/Disassembler/M68k/arithmetic.txt