Registering the SparsificationAndBufferization into a proper TD pass
has the advantage that it can be invoked and tested in isolation. This
change also moves some bufferization specific set up from the pipeline
file into the pass file, keeping the logic more locally.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
mlir/lib/Dialect/SparseTensor/Transforms/SparsificationAndBufferizationPass.cpp | ||
---|---|---|
22–24 | Are these new header file intended (required by the generated file)? |
mlir/include/mlir/Dialect/SparseTensor/Transforms/Passes.td | ||
---|---|---|
376 | super nit, maybe bufferization-and-sparsification? (that should be the order if I remembered correctly} |
mlir/include/mlir/Dialect/SparseTensor/Transforms/Passes.td | ||
---|---|---|
376 | ah, true, but the class is SparsificationAndBufferization shall we do a general rename later (not to change the current diffs too much) |
mlir/include/mlir/Dialect/SparseTensor/Transforms/Passes.td | ||
---|---|---|
376 | Sure, not a blocker ;-) |
mlir/lib/Dialect/SparseTensor/Transforms/SparsificationAndBufferizationPass.cpp | ||
---|---|---|
22–24 | yeah due to registration that is now defined by TB code in the inc file |
super nit, maybe bufferization-and-sparsification? (that should be the order if I remembered correctly}