MemRef has been accepting a general Attribute as memory space for
a long time. This commits updates bufferization side to catch up,
which allows downstream users to plugin customized symbolic memory
space. This also eliminates quite a few getMemorySpaceAsInt
calls, which is deprecated.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
mlir/include/mlir/Dialect/Bufferization/IR/BufferizableOpInterface.h | ||
---|---|---|
236–237 | To avoid confusion, replace this with In case of llvm::None. | |
mlir/lib/Dialect/Bufferization/IR/BufferizableOpInterface.cpp | ||
117–121 | Can you try rewriting this as: allocTensorOp.setMemorySpaceAttr(copyBufferType->getMemorySpace()); |
mlir/lib/Dialect/Bufferization/IR/BufferizableOpInterface.cpp | ||
---|---|---|
117–121 | It would crash given that setMemorySapceAttr expects the argument to be not null. |
To avoid confusion, replace this with In case of llvm::None.