[all-commits] [llvm/llvm-project] 211f1d: [X86][mem-fold] Refine the code in X86FoldTablesEm...

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


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

  Changed paths:
    M llvm/utils/TableGen/X86FoldTablesEmitter.cpp

  Log Message:
  -----------
  [X86][mem-fold] Refine the code in X86FoldTablesEmitter.cpp, NFCI

1. Avoid vulnerable assumption: the enum of reg/memory format are continous
2. Remove redundant inline keyword
3. Replace getValueFromBitsInit with byteFromBitsInit b/c both Form and
   Opcode can be represented in 1 byte




More information about the All-commits mailing list