[all-commits] [llvm/llvm-project] c088fb: [mlir][PDLL] Allow numeric result indexing for unr...

ChiaHungDuan via All-commits all-commits at lists.llvm.org
Wed May 25 12:30:58 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c088fbe7decce4409f81defcbb96841b0e78d861
      https://github.com/llvm/llvm-project/commit/c088fbe7decce4409f81defcbb96841b0e78d861
  Author: Chia-hung Duan <chiahungduan at google.com>
  Date:   2022-05-25 (Wed, 25 May 2022)

  Changed paths:
    M mlir/docs/PDLL.md
    M mlir/lib/Tools/PDLL/CodeGen/MLIRGen.cpp
    M mlir/lib/Tools/PDLL/Parser/Parser.cpp
    M mlir/test/mlir-pdll/CodeGen/MLIR/expr.pdll
    M mlir/test/mlir-pdll/Parser/expr.pdll

  Log Message:
  -----------
  [mlir][PDLL] Allow numeric result indexing for unregistered op

If we don't specify the result index while matching operand with the
result of certain operation, it's supposed to match all the results of
the operation with the operand. For registered op, it's easy to do that
by either indexing with number or name. For unregistered op, this commit
enables the numeric result indexing for this use case.

Reviewed By: rriddle

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




More information about the All-commits mailing list