[Mlir-commits] [mlir] [mlir][bufferization] Return BufferLikeType in BufferizableOpInterface (PR #144867)
Andrei Golubev
llvmlistbot at llvm.org
Thu Jun 19 03:42:08 PDT 2025
================
@@ -245,7 +245,8 @@ AllocTensorOp::getBufferType(Value value, const BufferizationOptions &options,
return getOperation()->emitError("could not infer memory space");
}
- return getMemRefTypeWithStaticIdentityLayout(getType(), memorySpace);
+ return cast<BufferLikeType>(
----------------
andrey-golubev wrote:
note: unfortunately, i didn't seem to manage to avoid this even with an addition of an implicit ctor: `BufferLikeType(BaseMemRefType)`. I think this is due to also a FailureOr<> wrapper. I wonder yet again whether it makes sense to push a patch to extend FailureOr<> implicit conversion semantics (out of scope of this PR though).
https://github.com/llvm/llvm-project/pull/144867
More information about the Mlir-commits
mailing list