[all-commits] [llvm/llvm-project] 807a82: [TableGen] Implement getNamedOperandIdx with anoth...
Jay Foad via All-commits
all-commits at lists.llvm.org
Wed Jul 30 06:03:48 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 807a82d40789a5e50174f979accca77c8b6841b5
https://github.com/llvm/llvm-project/commit/807a82d40789a5e50174f979accca77c8b6841b5
Author: Jay Foad <jay.foad at amd.com>
Date: 2025-07-30 (Wed, 30 Jul 2025)
Changed paths:
M llvm/test/TableGen/get-named-operand-idx.td
M llvm/utils/TableGen/InstrInfoEmitter.cpp
Log Message:
-----------
[TableGen] Implement getNamedOperandIdx with another table lookup. NFC. (#151116)
Use direct table lookup instead of a switch over all opcodes.
In my Release+Asserts build this reduced the code size for
AMDGPU::getNamedOperandIdx from 11422 to 80 bytes, and the total size of
all its tables (including the jump table for the switch) from 243564 to
155020 bytes.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list