[Mlir-commits] [mlir] [NFC][mlir][bufferization] Remove getMemRefType() helper (PR #199034)

Andrei Golubev llvmlistbot at llvm.org
Wed Jun 3 02:25:19 PDT 2026


================
@@ -660,23 +660,6 @@ OpTy replaceOpWithNewBufferizedOp(RewriterBase &rewriter, Operation *op,
   return newOp;
 }
 
-/// Return a MemRefType to which the TensorType can be bufferized.
-///
-/// If possible, op bufferization implementations should not use this function
-/// and instead infer precise memref types for tensor results by themselves.
-///
-/// Unless a layout map was specified, `options.unknownTypeConverterFn`
-/// determines what kind of layout map will be used. For best composability
-/// (without copies), the fully dynamic layout map is used by default.
-///
-/// Note: Canonicalization patterns could clean up layout maps and infer more
-/// precise layout maps after bufferization. However, many possible
-/// canonicalizations are currently not implemented.
-BaseMemRefType getMemRefType(TensorType tensorType,
----------------
andrey-golubev wrote:

updated the PR description, would it be sufficient?

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


More information about the Mlir-commits mailing list