[Mlir-commits] [mlir] [mlir][bufferization] Add tensor-like and memref-like interfaces (PR #134220)
Mehdi Amini
llvmlistbot at llvm.org
Sat Apr 5 14:04:00 PDT 2025
joker-eph wrote:
> I'll leave it up to @matthias-springer , but I find it weird to attach interfaces in dialect initialization of another, irrelevant dialect.
> I would prefer doing this in the separate functions instead of the dialect initializer for consistency reasons. Y
This is not doable in any other way: we must have "promised interface" declarations in-tree and you can't do this on builtin-type using an interface defined in bufferization, from a layering point of view.
https://github.com/llvm/llvm-project/pull/134220#issuecomment-2775218667
https://github.com/llvm/llvm-project/pull/134220
More information about the Mlir-commits
mailing list