diff options
author | Jay Foad <jay.foad@amd.com> | 2023-01-11 13:45:46 +0000 |
---|---|---|
committer | Jay Foad <jay.foad@amd.com> | 2023-01-24 21:23:27 +0000 |
commit | d8ce50e3c25f667a10750d1129a1b8a060d43492 (patch) | |
tree | 49f70b4302fa07c54690b7c37e21000cf27df69f /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | |
parent | 62bc222875131051f6ca32a2e8dbb8093acc0e4f (diff) | |
download | llvm-d8ce50e3c25f667a10750d1129a1b8a060d43492.zip llvm-d8ce50e3c25f667a10750d1129a1b8a060d43492.tar.gz llvm-d8ce50e3c25f667a10750d1129a1b8a060d43492.tar.bz2 |
[MC] Store number of implicit operands in MCInstrDesc. NFC.
Combine the implicit uses and defs lists into a single list of uses
followed by defs. Instead of 0-terminating the list, store the number
of uses and defs. This avoids having to scan the whole list to find the
length and removes one pointer from MCInstrDesc (although it does not
get any smaller due to alignment issues).
Remove the old accessor methods getImplicitUses, getNumImplicitUses,
getImplicitDefs and getNumImplicitDefs as all clients are using the new
implicit_uses and implicit_defs.
Differential Revision: https://reviews.llvm.org/D142216
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions