[Mlir-commits] [mlir] [mlir][memref] Introduce `memref.distinct_objects` op (PR #156913)
Ivan Butygin
llvmlistbot at llvm.org
Wed Sep 10 08:27:29 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");
----------------
Hardcode84 wrote:
added a test
https://github.com/llvm/llvm-project/pull/156913
More information about the Mlir-commits
mailing list