[PATCH] D142219: [MC] Store operand info immediately after the TargetInsts table. NFC.

Jay Foad via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 20 07:16:02 PST 2023


foad created this revision.
Herald added subscribers: StephenFan, qcolombet, MatzeB.
Herald added a project: All.
foad requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

This shrinks MCInstrDesc (and hence the whole TargetInsts table) because
we can store a 16-bit offset value to access the operands info, instead
of a pointer. This also reduces the number of relocs that need to be
applied when LLVM is compiled as position-independent code.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D142219

Files:
  llvm/include/llvm/MC/MCInstrDesc.h
  llvm/unittests/CodeGen/MachineInstrTest.cpp
  llvm/unittests/CodeGen/RegAllocScoreTest.cpp
  llvm/utils/TableGen/InstrInfoEmitter.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D142219.490838.patch
Type: text/x-patch
Size: 19124 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230120/0876024f/attachment.bin>


More information about the llvm-commits mailing list