[X86][NFC] Refactor X86InstrArithmetic.td by class
authorWang, Xin10 <xin10.wang@intel.com>
Wed, 22 Feb 2023 00:41:12 +0000 (08:41 +0800)
committerShengchen Kan <shengchen.kan@intel.com>
Wed, 22 Feb 2023 01:19:53 +0000 (09:19 +0800)
commit749318dbfb741d3778135e02260b2550db251e98
tree64e0dd707c5334893ef0fdc79ccb13666a82e257
parent61faf261506f93819e48f050f318f96452831f92
[X86][NFC] Refactor X86InstrArithmetic.td by class

1. Extract the common code of some instructions into a class to reduce duplication
2. Refine some comments to the make the description of the class clearer

By this way, the records defined here will be consistent and easier to
maintain, I think.

Reviewed By: skan

Differential Revision: https://reviews.llvm.org/D144154
llvm/lib/Target/X86/X86InstrArithmetic.td
llvm/lib/Target/X86/X86InstrInfo.td