[Mlir-commits] [mlir] [MLIR][LINALG] Add more specialize patterns (PR #91153)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Sun May 5 19:46:01 PDT 2024


================
@@ -70,6 +70,105 @@ bool linalg::isaCopyOpInterface(LinalgOp linalgOp) {
   return llvm::hasSingleElement(linalgOp.getBlock()->getOperations());
 }
 
+//===----------------------------------------------------------------------===//
+// FillOpInterface implementation
+//===----------------------------------------------------------------------===//
+bool linalg::isaFillOpInterface(GenericOp genericOp) {
----------------
MaheshRavishankar wrote:

It would be helpful instead of a `bool` this returns a `std::optional<Value>` that is the scalar value as well.

https://github.com/llvm/llvm-project/pull/91153


More information about the Mlir-commits mailing list