[all-commits] [llvm/llvm-project] 57c090: [mlir][linalg][transform][python] Improve mix-in f...

Ingo Müller via All-commits all-commits at lists.llvm.org
Mon Aug 21 06:36:08 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 57c090b2ea03937e7c6a08a594532788d01bb813
      https://github.com/llvm/llvm-project/commit/57c090b2ea03937e7c6a08a594532788d01bb813
  Author: Ingo Müller <ingomueller at google.com>
  Date:   2023-08-21 (Mon, 21 Aug 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][linalg][transform][python] Improve mix-in for PadOp.

In particular:

* Fix and extend the support for constructing possibly nested ArrayAttrs
  from lists of Python ints. This can probably be generalized further
  and used in many more places.
* Add arguments for `pad_to_multiple_of` and `copy_back_op`.
* Format with black and reorder (keyword-only) arguments to match
  tablegen and (`*_gen.py`) order.
* Extend tests for new features.

Reviewed By: springerm

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




More information about the All-commits mailing list