[PATCH] D117970: [AArch64] Make getInstSizeInBytes() use instruction size from InstrInfo.td

Son Tuan Vu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Jan 22 14:56:58 PST 2022


tyb0807 created this revision.
Herald added subscribers: hiraditya, kristof.beyls.
tyb0807 requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Currently, instruction size for some pseudo-instructions are hard-coded
and used by AArch64InstrInfo::getInstSizeInBytes(), while this
information already exists in AArch64InstrInfo.td file (and can be
accessed via MCInstrDesc). Hence, instruction size from MCInstrDesc
should be used instead.

This patch addresses this inconsistency.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D117970

Files:
  llvm/lib/Target/AArch64/AArch64InstrInfo.cpp
  llvm/lib/Target/AArch64/AArch64InstrInfo.td
  llvm/unittests/Target/AArch64/InstSizes.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D117970.402263.patch
Type: text/x-patch
Size: 5219 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220122/d7dde57a/attachment.bin>


More information about the llvm-commits mailing list