[Mlir-commits] [mlir] [mlir][memref] Introduce `memref.distinct_objects` op (PR #156913)
Ivan Butygin
llvmlistbot at llvm.org
Tue Sep 9 13:12:39 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:
We have a variadic number of inputs/results and we need their types to match pairwise. I didn't quite figured how to express it using existing constraints.
https://github.com/llvm/llvm-project/pull/156913
More information about the Mlir-commits
mailing list