[X86][MC][bolt] Share code between encoding optimization and assembler relaxation...
authorShengchen Kan <shengchen.kan@intel.com>
Sat, 20 May 2023 11:17:15 +0000 (19:17 +0800)
committerShengchen Kan <shengchen.kan@intel.com>
Sun, 21 May 2023 01:31:50 +0000 (09:31 +0800)
commit3f1e9468f68dfd3d68b1717154091071f6d566ee
tree47690bc041b8fdc4646b6a8ccb19512ea330f19b
parentb297fd7974b282b66605547c7adb2eadbf82214f
[X86][MC][bolt] Share code between encoding optimization and assembler relaxation, NFCI

PUSH[16|32|64]i[8|32] are not arithmetic instructions, so I renamed the
functions.

Reviewed By: Amir

Differential Revision: https://reviews.llvm.org/D151028
bolt/lib/Target/X86/X86MCPlusBuilder.cpp
llvm/lib/Target/X86/MCTargetDesc/CMakeLists.txt
llvm/lib/Target/X86/MCTargetDesc/X86AsmBackend.cpp
llvm/lib/Target/X86/MCTargetDesc/X86EncodingOptimization.cpp
llvm/lib/Target/X86/MCTargetDesc/X86EncodingOptimization.h
llvm/lib/Target/X86/MCTargetDesc/X86EncodingOptimizationForImmediate.def [new file with mode: 0644]
llvm/lib/Target/X86/MCTargetDesc/X86InstrRelaxTables.cpp [deleted file]
llvm/lib/Target/X86/MCTargetDesc/X86InstrRelaxTables.h [deleted file]