[Mlir-commits] [mlir] [MLIR] Add fusability query to TilingInterface (PR #166502)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Wed Nov 5 22:52:41 PST 2025
================
@@ -360,6 +360,43 @@ def TilingInterface : OpInterface<"TilingInterface"> {
/*defaultImplementation=*/[{
return failure();
}]
+ >,
+ //===------------------------------------------------------------------===//
+ // Interface methods for querying fusability.
+ //===------------------------------------------------------------------===//
+ InterfaceMethod<
+ /*desc=*/[{
+ Indicates whether it is possible to fuse this operation with the given
+ result slice. This method is not allowed to generate any IR.
+ }],
+ /*retTy=*/"bool",
+ /*methodName=*/"isOpFusableWithConsumerSlice",
+ /*args=*/(ins
+ "unsigned":$resultNumber,
+ "::mlir::ArrayRef<::mlir::OpFoldResult>":$offsets,
----------------
MaheshRavishankar wrote:
I think the consumer slice API has been modified to handle multiple results at the same time. I think this needs to do the same.
https://github.com/llvm/llvm-project/pull/166502
More information about the Mlir-commits
mailing list