[Mlir-commits] [mlir] [MLIR] Add bufferization state to `getBufferType` and `resolveConflicts` interface methods (PR #141466)

Matthias Springer llvmlistbot at llvm.org
Tue May 27 00:15:01 PDT 2025


================
@@ -615,7 +616,8 @@ FailureOr<Value> getBuffer(RewriterBase &rewriter, Value value,
 ///
 /// This function is a wrapper around BufferizableOpInterface::getBufferType.
 FailureOr<BaseMemRefType> getBufferType(Value value,
-                                        const BufferizationOptions &options);
+                                        const BufferizationOptions &options,
+                                        BufferizationState &state);
----------------
matthias-springer wrote:

Can this be a const reference? Here and in all the other places that this PR touches?

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


More information about the Mlir-commits mailing list