[Mlir-commits] [mlir] [mlir][bufferization] Introduce reconcileBufferTypeMismatchFn hook (PR #202667)

Andrei Golubev llvmlistbot at llvm.org
Thu Jun 11 07:54:18 PDT 2026


================
@@ -364,6 +372,13 @@ struct BufferizationOptions {
   DefaultMemorySpaceFn defaultMemorySpaceFn =
       [](TensorLikeType t) -> std::optional<Attribute> { return Attribute(); };
 
+  /// Hook to reconcile two buffer types that were independently inferred for
+  /// the same bufferized value (e.g. init_arg vs. yielded value in `scf.for`,
----------------
andrey-golubev wrote:

redid the wording, please take a look.

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


More information about the Mlir-commits mailing list