[all-commits] [llvm/llvm-project] 8fd207: [mlir][transform][structured][python] Allow str ar...

Ingo Müller via All-commits all-commits at lists.llvm.org
Fri Jul 21 02:37:08 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8fd207fd0dcc398c2fcfd953d7e3ebe7cb53f188
      https://github.com/llvm/llvm-project/commit/8fd207fd0dcc398c2fcfd953d7e3ebe7cb53f188
  Author: Ingo Müller <ingomueller at google.com>
  Date:   2023-07-21 (Fri, 21 Jul 2023)

  Changed paths:
    M mlir/python/mlir/dialects/_structured_transform_ops_ext.py
    M mlir/test/python/dialects/transform_structured_ext.py

  Log Message:
  -----------
  [mlir][transform][structured][python] Allow str arg in match_op_names.

Allow the `names` argument in `MatchOp.match_op_names` to be of type
`str` in addition to `Sequence[str]`. In this case, the argument is
treated as a list with one name, i.e., it is possible to write
`MatchOp.match_op_names(..., "test.dummy")` instead of
`MatchOp.match_op_names(..., ["test.dummy"])`.

Reviewed By: ftynse

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




More information about the All-commits mailing list