[Mlir-commits] [mlir] [mlir][StorageUniquer] Restore old signature for default implementaion of verifyInvariants. (PR #103023)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Tue Aug 13 01:50:33 PDT 2024


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-mlir

Author: Benjamin Chetioui (bchetioui)

<details>
<summary>Changes</summary>

PR #<!-- -->102326 changed the prototype of the default implementation of verify to include emitErrorFn.

This breaks automatic derivation in consumer attributes, such as https://github.com/tensorflow/runtime/blob/60277ba976739502e45ad26585e071568fa44af1/include/tfrt/core_runtime/opdefs/attributes.h#L53.

This PR simply restores the signature to what it was prior to PR #<!-- -->102326.

---
Full diff: https://github.com/llvm/llvm-project/pull/103023.diff


1 Files Affected:

- (modified) mlir/include/mlir/IR/StorageUniquerSupport.h (+1-2) 


``````````diff
diff --git a/mlir/include/mlir/IR/StorageUniquerSupport.h b/mlir/include/mlir/IR/StorageUniquerSupport.h
index d6ccbbd8579947..c493fd9c5042c7 100644
--- a/mlir/include/mlir/IR/StorageUniquerSupport.h
+++ b/mlir/include/mlir/IR/StorageUniquerSupport.h
@@ -227,8 +227,7 @@ class StorageUserBase : public BaseT, public Traits<ConcreteT>... {
   /// Default implementation that just returns success.
   template <typename... Args>
   static LogicalResult
-  verifyInvariants(function_ref<InFlightDiagnostic()> emitErrorFn,
-                   Args... args) {
+  verifyInvariants(Args... args) {
     return success();
   }
 

``````````

</details>


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


More information about the Mlir-commits mailing list