[all-commits] [llvm/llvm-project] 944989: [X86][mem-fold][NFC] Refine code

KanRobert via All-commits all-commits at lists.llvm.org
Wed Apr 5 02:55:22 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 94498950e69a78049d3b129f78f0db41114af52e
      https://github.com/llvm/llvm-project/commit/94498950e69a78049d3b129f78f0db41114af52e
  Author: Shengchen Kan <shengchen.kan at intel.com>
  Date:   2023-04-05 (Wed, 05 Apr 2023)

  Changed paths:
    M llvm/lib/Target/X86/X86InstrFoldTables.h
    M llvm/utils/TableGen/X86FoldTablesEmitter.cpp

  Log Message:
  -----------
  [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.




More information about the All-commits mailing list