[PATCH] D118009: [ARM] Make getInstSizeInBytes() use instruction size from InstrInfo.td
Son Tuan Vu via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Jan 23 14:42:08 PST 2022
tyb0807 created this revision.
Herald added subscribers: hiraditya, kristof.beyls, mgorny.
tyb0807 requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Currently, ARMBaseInstrInfo::getInstSizeInBytes() uses hard-coded
instruction size for some pseudo-instructions, while this
information should ideally be found in ARMInstrInfo.td,
ARMInstrThumb(2).td files (whic can be accessed via MCInstrDesc). Hence,
the .td files should be updated and no hard-coded instruction sizes
should be used by getInstSizeInBytes() anymore.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D118009
Files:
llvm/lib/Target/ARM/ARMBaseInstrInfo.cpp
llvm/lib/Target/ARM/ARMInstrInfo.td
llvm/lib/Target/ARM/ARMInstrThumb.td
llvm/lib/Target/ARM/ARMInstrThumb2.td
llvm/unittests/Target/ARM/CMakeLists.txt
llvm/unittests/Target/ARM/InstSizes.cpp
llvm/utils/gn/secondary/llvm/unittests/Target/ARM/BUILD.gn
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D118009.402376.patch
Type: text/x-patch
Size: 18598 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220123/97253bbb/attachment.bin>
More information about the llvm-commits
mailing list