[PATCH] D121402: [X86][NFC] Move table from getRelaxedOpcodeArith into its own class

Amir Ayupov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 10 12:38:35 PST 2022


Amir created this revision.
Amir added a reviewer: skan.
Herald added subscribers: pengfei, hiraditya, mgorny.
Herald added a project: All.
Amir published this revision for review.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Move out the table and prepare the code to reuse it for the reverse mapping.
Follows the example of memory folding/unfolding tables in X86InstrFoldTables.cpp

Preparation step to unify `llvm::X86::getRelaxedOpcodeArith` and 
`getShortArithOpcode` in BOLT X86MCPlusBuilder.cpp.

Addresses https://lists.llvm.org/pipermail/llvm-dev/2022-January/154526.html


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D121402

Files:
  llvm/lib/Target/X86/MCTargetDesc/CMakeLists.txt
  llvm/lib/Target/X86/MCTargetDesc/X86AsmBackend.cpp
  llvm/lib/Target/X86/MCTargetDesc/X86InstrRelaxTables.cpp
  llvm/lib/Target/X86/MCTargetDesc/X86InstrRelaxTables.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D121402.414455.patch
Type: text/x-patch
Size: 12271 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220310/88128c1c/attachment.bin>


More information about the llvm-commits mailing list