[Mlir-commits] [mlir] [mlir][memref] Introduce	`memref.distinct_objects` op (PR #156913)
    Mehdi Amini 
    llvmlistbot at llvm.org
       
    Tue Sep  9 09:58:26 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");
----------------
joker-eph wrote:
Nit: Should be implementable with the `TypesMatchWith` construct in ODS?
https://github.com/llvm/llvm-project/pull/156913
    
    
More information about the Mlir-commits
mailing list