[all-commits] [llvm/llvm-project] 332783: [mlir][linalg][transform][python] Make divisor arg...

Ingo Müller via All-commits all-commits at lists.llvm.org
Mon Sep 4 04:33:10 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 33278321e6ca5973ff96f14e67e1898046623f81
      https://github.com/llvm/llvm-project/commit/33278321e6ca5973ff96f14e67e1898046623f81
  Author: Ingo Müller <ingomueller at google.com>
  Date:   2023-09-04 (Mon, 04 Sep 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] Make divisor arg to Multitile optional

The mix-in of the `MultiTileSizesOp` set the default value of its
`divisor` argument. This repeats information from the tablegen
defintion, is not necessary (since the generic code deals with `None`
and default values), and has the risk of running out of sync without
people noticing. This patch removes the setting of the value and forward
`None` to the generic constructor instead.

Reviewed By: ftynse

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




More information about the All-commits mailing list