[all-commits] [llvm/llvm-project] 76b5fc: [TableGen] Store flat source operand number in Ope...

Craig Topper via All-commits all-commits at lists.llvm.org
Wed Apr 16 09:40:14 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 76b5fcbf975547251faaeed8b567ea09d139a607
      https://github.com/llvm/llvm-project/commit/76b5fcbf975547251faaeed8b567ea09d139a607
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2025-04-16 (Wed, 16 Apr 2025)

  Changed paths:
    M llvm/utils/TableGen/PseudoLoweringEmitter.cpp

  Log Message:
  -----------
  [TableGen] Store flat source operand number in OperandMap in PseudoLoweringEmitter. NFC (#135886)

Previously we stored the index into the source CodeGenInstruction's
operand list. Any operand with sub operands stored the same index into
all of the OperandMap entries for that operand. The emitting loop would
look up the MIOperandNo for the source and add the sub index.

This patch moves the logic into the loop that updates the OperandMap.
Now the emitting loop only needs to print the value.

While there, I've added a check that MIOperandNo is the same for source
and destination.



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