[Mlir-commits] [mlir] [mlir][memref] Introduce `memref.distinct_objects` op (PR #156913)

Ivan Butygin llvmlistbot at llvm.org
Tue Sep 23 06:12:59 PDT 2025


================
@@ -542,6 +542,25 @@ OpFoldResult AssumeAlignmentOp::fold(FoldAdaptor adaptor) {
   return getMemref();
 }
 
+//===----------------------------------------------------------------------===//
+// DistinctObjectsOp
+//===----------------------------------------------------------------------===//
+
+LogicalResult DistinctObjectsOp::verify() {
+  if (getOperandTypes() != getResultTypes())
+    return emitOpError("operand types and result types must match");
+  return success();
+}
+
+LogicalResult DistinctObjectsOp::inferReturnTypes(
----------------
Hardcode84 wrote:

I don't know how to express it using existing constraints, seem my prev comment on `verify`.

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


More information about the Mlir-commits mailing list