[PATCH] D142218: [MC] Store implicit ops immediately after the TargetInsts table. NFC.

Jay Foad via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 20 07:15:56 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 implicit operands,
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/D142218

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: D142218.490837.patch
Type: text/x-patch
Size: 14430 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230120/85cabcaf/attachment.bin>


More information about the llvm-commits mailing list