This op used to belong to the sparse dialect, but there are use cases for dense bufferization as well. (E.g., when a tensor alloc is returned from a function and should be deallocated at the call site.) This change moves the op to the bufferization dialect, which now has an alloc_tensor and a dealloc_tensor op.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
mlir/lib/Dialect/SparseTensor/Transforms/SparseTensorPasses.cpp | ||
---|---|---|
142 | I think all ops of the bufferization dialect are legal. Except for the ones for which we have special rules (AllocTensorOp, DeallocTensorOp), those have another chance to become illegal. |
just curious, we add the full dialect but also some individual ops; does that work as expected?