Outline the code that generates the loop structure to iterate over a dense
tensor or a sparse constant to genDenseTensorOrSparseConstantIterLoop.
Move a few routines to CodegenUtils for sharing.
Paths
| Differential D136210
[mlir][sparse] Refactor the convert operator conversion to support codegen for the operator. ClosedPublic Authored by bixia on Oct 18 2022, 4:11 PM.
Details Summary Outline the code that generates the loop structure to iterate over a dense Move a few routines to CodegenUtils for sharing.
Diff Detail
Event Timeline
wrengr added inline comments. This revision is now accepted and ready to land.Oct 20 2022, 4:47 PM Closed by commit rGb056d0bb6911: [mlir][sparse] Refactor the convert operator conversion to support codegen for… (authored by bixia). · Explain WhyOct 21 2022, 8:53 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 469624 mlir/lib/Dialect/SparseTensor/Transforms/CodegenUtils.h
mlir/lib/Dialect/SparseTensor/Transforms/CodegenUtils.cpp
mlir/lib/Dialect/SparseTensor/Transforms/SparseTensorConversion.cpp
mlir/test/Dialect/SparseTensor/convert_dense2sparse.mlir
|
Should have a space after the period