[Mlir-commits] [mlir] [mlir][memref] Introduce `memref.distinct_objects` op (PR #156913)
Matthias Springer
llvmlistbot at llvm.org
Tue Sep 23 05:37:03 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(
----------------
matthias-springer wrote:
Can this be done with `AllTypesMatch`?
https://github.com/llvm/llvm-project/pull/156913
More information about the Mlir-commits
mailing list