[all-commits] [llvm/llvm-project] 1dccdf: [mlir][linalg][transform][python] Add type arg to ...
Ingo Müller via All-commits
all-commits at lists.llvm.org
Wed Jul 19 02:15:56 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 1dccdf7f49a0cdad7121913c900ce9cb8b6e9fdc
https://github.com/llvm/llvm-project/commit/1dccdf7f49a0cdad7121913c900ce9cb8b6e9fdc
Author: Ingo Müller <ingomueller at google.com>
Date: 2023-07-19 (Wed, 19 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][linalg][transform][python] Add type arg to MatchOp extension.
The extension class to MatchOp has a class method called match_op_names.
The previous version of that function did not allow to specify the
result type. This, however, may be useful/necessary if the op consuming
the resulting handle requires a particular type (such as the
bufferization.EmptyTensorToAllocTensorOp). This patch adds an overload
to match_op_names that allows to specify the result type.
Reviewed By: ftynse
Differential Revision: https://reviews.llvm.org/D155567
More information about the All-commits
mailing list