[X86][mem-fold][NFC] Refine code
authorShengchen Kan <shengchen.kan@intel.com>
Wed, 5 Apr 2023 09:42:12 +0000 (17:42 +0800)
committerShengchen Kan <shengchen.kan@intel.com>
Wed, 5 Apr 2023 09:54:58 +0000 (17:54 +0800)
commit94498950e69a78049d3b129f78f0db41114af52e
tree94bb57c18d791671d743969157e337ae257ea5d8
parentca8f6070ab8ad7047c9b2f07f5049777f0728ffa
[X86][mem-fold][NFC] Refine code

1. Use `unsigned` for `KeyOp` and `DstOp` b/c `Opcode` is of type `unsigned`.
2. Align the comparator used in X86FoldTablesEmitter.cpp with the one in
   CodeGenTarget::ComputeInstrsByEnum.
llvm/lib/Target/X86/X86InstrFoldTables.h
llvm/utils/TableGen/X86FoldTablesEmitter.cpp