mirror of
https://github.com/intel/llvm.git
synced 2026-01-26 12:26:52 +08:00
[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
This commit is contained in:
@@ -462,7 +462,7 @@ class MatchOp:
|
||||
|
||||
|
||||
class MultiTileSizesOp:
|
||||
"""Specialization for MultitileSizesOp class."""
|
||||
"""Specialization for MultiTileSizesOp class."""
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
@@ -475,8 +475,6 @@ class MultiTileSizesOp:
|
||||
loc=None,
|
||||
ip=None,
|
||||
):
|
||||
if divisor is None:
|
||||
divisor = 1
|
||||
super().__init__(
|
||||
result_type,
|
||||
result_type,
|
||||
|
||||
Reference in New Issue
Block a user