This has been a TODO for a long time, and it brings about many advantages (namely nice accessors, and less fragile code). The existing overloads that accept ArrayRef are now treated as deprecated and will be removed in a followup (after a small grace period). Most of the upstream MLIR usages have been fixed by this commit, the rest will be handled in a followup.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Very nice usability improvement!
mlir/docs/Bufferization.md | ||
---|---|---|
146 | Nit: I know this is a large-scale refactoring, but could we fix this particular place in the documentation to be adaptor.source() instead of using getOperands + magic number? For the sake of documenting best practices. | |
mlir/include/mlir/Conversion/LLVMCommon/Pattern.h | ||
161 | Is it too early to put LLVM_ATTRIBUTE_DEPRECATED here? |
mlir/lib/Dialect/SparseTensor/Transforms/SparseTensorConversion.cpp | ||
---|---|---|
374–375 | heads up: I added an emitCInterface parameter to some of these calls at exactly the same line, so you probably need to resolve some conflicts on the rebase with main |
Thanks for the review Alex!
(Also thanks for the heads up Aart!)
mlir/include/mlir/Conversion/LLVMCommon/Pattern.h | ||
---|---|---|
161 | Yeah, I think so. I'm going to send out the PSA first and then mark deprecated sometime early next week. |
Nit: I know this is a large-scale refactoring, but could we fix this particular place in the documentation to be adaptor.source() instead of using getOperands + magic number? For the sake of documenting best practices.