[all-commits] [llvm/llvm-project] d8ce50: [MC] Store number of implicit operands in MCInstrD...
Jay Foad via All-commits
all-commits at lists.llvm.org
Tue Jan 24 13:23:43 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: d8ce50e3c25f667a10750d1129a1b8a060d43492
https://github.com/llvm/llvm-project/commit/d8ce50e3c25f667a10750d1129a1b8a060d43492
Author: Jay Foad <jay.foad at amd.com>
Date: 2023-01-24 (Tue, 24 Jan 2023)
Changed paths:
M llvm/include/llvm/MC/MCInstrDesc.h
M llvm/unittests/CodeGen/MachineInstrTest.cpp
M llvm/unittests/CodeGen/RegAllocScoreTest.cpp
M llvm/utils/TableGen/InstrInfoEmitter.cpp
Log Message:
-----------
[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
More information about the All-commits
mailing list