[MC] Store operand info immediately after the TargetInsts table. NFC.
authorJay Foad <jay.foad@amd.com>
Thu, 12 Jan 2023 21:02:23 +0000 (21:02 +0000)
committerJay Foad <jay.foad@amd.com>
Mon, 27 Mar 2023 10:39:18 +0000 (11:39 +0100)
commit8dcdc37a5fca72db61c63304c52e0e2da925143a
tree0d85317b323be3c18e7fd1ad46c0e67417ba2d5c
parent1220c5d4ac00ebf64128678e4ffd2abd9f5d60ae
[MC] Store operand info immediately after the TargetInsts table. NFC.

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.

Differential Revision: https://reviews.llvm.org/D142219
llvm/include/llvm/MC/MCInstrDesc.h
llvm/unittests/CodeGen/MachineInstrTest.cpp
llvm/unittests/CodeGen/RegAllocScoreTest.cpp
llvm/utils/TableGen/InstrInfoEmitter.cpp