[all-commits] [llvm/llvm-project] bc06d8: [TableGen] Extract instruction grouping in AsmWrit...
Kazu Hirata via All-commits
all-commits at lists.llvm.org
Mon Sep 21 19:18:20 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: bc06d87e23554f439b4010c3d88082bf5b6dfb7b
https://github.com/llvm/llvm-project/commit/bc06d87e23554f439b4010c3d88082bf5b6dfb7b
Author: Kazu Hirata <kazu at google.com>
Date: 2026-09-21 (Mon, 21 Sep 2026)
Changed paths:
M llvm/utils/TableGen/AsmWriterEmitter.cpp
Log Message:
-----------
[TableGen] Extract instruction grouping in AsmWriterEmitter (NFC) (#222498)
This patch extracts instruction similarity grouping into
groupInstructions, a helper function that returns an array of
InstructionGroup structs in AsmWriterEmitter.
Currently, EmitInstructions performs both instruction grouping
(scanning for instructions differing in at most one operand) and code
emission in a single step while popping elements from the Instructions
vector.
This patch decouples grouping from code emission:
- groupInstructions clusters similar instructions into
InstructionGroups.
- emitInstructions emits the case labels and dispatches to
emitInstructionOperands for each group.
This patch produces byte-identical output for all targets while
preparing for a subsequent patch that will call asm writer helper
functions through a function pointer table instead of emitting a large
switch statement.
Assisted-by: Antigravity
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