[Mlir-commits] [mlir] [mlir][bufferization] Support custom types at function boundaries (PR #159766)
Matthias Springer
llvmlistbot at llvm.org
Wed Sep 24 01:06:22 PDT 2025
================
@@ -43,6 +43,18 @@ def Bufferization_TensorLikeTypeInterface
/*args=*/(ins
"::mlir::bufferization::BufferLikeType":$bufferType,
"::llvm::function_ref<::mlir::InFlightDiagnostic()>":$emitError)
+ >,
+ InterfaceMethod<[{
----------------
matthias-springer wrote:
> I'm not sure I understand this part, can you explain more?
Interface method implementation cannot be overridden by the user. In the interface implementation you have to make a choice whether to convert a tensor type to a memref with identity layout or fully dynamic layout map. We want users to be able to customize behavior, therefore, there must be some kind of hook in the `BufferizationOptions`.
https://github.com/llvm/llvm-project/pull/159766
More information about the Mlir-commits
mailing list