[Mlir-commits] [mlir] [mlir][linalg] Add missing check for `isaCopyOpInterface` (PR #149313)

Adam Siemieniuk llvmlistbot at llvm.org
Thu Jul 17 07:25:37 PDT 2025


================
@@ -58,8 +58,8 @@ bool linalg::detail::canOpOperandsBeDroppedImpl(
 // CopyOpInterface implementation
 //===----------------------------------------------------------------------===//
 
-bool linalg::isaCopyOpInterface(LinalgOp op) {
-  // Check all loops are parallel and linalgOp is single input and output.
+bool linalg::isaCopyOpInterface(GenericOp op) {
+  // Check all loops are parallel and genericOp is single input and output.
----------------
adam-smnk wrote:

Why constrain it to `generic` only?

It's convenient to have one general utility for verifying copy-like behavior.

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


More information about the Mlir-commits mailing list