[all-commits] [llvm/llvm-project] 0249ea: [TableGen][CodeEmitterGen] Fix SubOpAliases MIOper...

Ilya Leoshkevich via All-commits all-commits at lists.llvm.org
Thu Jul 13 08:29:38 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0249ea611f55ed7ddce978289578bd01b80cfbcf
      https://github.com/llvm/llvm-project/commit/0249ea611f55ed7ddce978289578bd01b80cfbcf
  Author: Ilya Leoshkevich <iii at linux.ibm.com>
  Date:   2023-07-13 (Thu, 13 Jul 2023)

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

  Log Message:
  -----------
  [TableGen][CodeEmitterGen] Fix SubOpAliases MIOperandNo mixup

SubOpAliases maps a sub-operand name to the respective operand's index
and the sub-operand number within this operand. The operand index is
used for the Operands array.

Currently MIOperandNo is used as the operand index, which is not
correct. For example, if there are 2 operands with 3 sub-operands each:

  (ins (bdladdr12onlylen4 $B1, $D1, $L1):$BDL1,
       (bdladdr12onlylen4 $B2, $D2, $L2):$BDL2)

then B2's operand index will be 3, but the correct value is 1.

Reviewed By: jyknight

Differential Revision: https://reviews.llvm.org/D155158




More information about the All-commits mailing list