[Mlir-commits] [mlir] [mlir][bufferization] Use TensorLike, BufferLike type interfaces (PR #136736)

Andrei Golubev llvmlistbot at llvm.org
Tue Apr 22 11:05:15 PDT 2025


andrey-golubev wrote:

This is the initial patch to adopt TensorLike / BufferLike. So far not done:
* function boundary bufferization with custom types
* SCF bufferization
* tensor / memref copying and allocation (completely unclear what to do here)

I'd like to collect some initial feedback, whether the general direction makes sense (still), and whether there's something else I am missing.

Overall, I feel like in order to support custom types the users would have to implement a custom pass as there's no other way to specify `BufferizationOptions` callbacks, etc.? Thus, the bare minimum for `one-shot-bufferize` is to just "not break"? Anyhow, perhaps I am missing something, so let's discuss.

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


More information about the Mlir-commits mailing list