Fix relevant FileCheck tests.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
mlir/lib/Dialect/SparseTensor/Transforms/SparseTensorStorageLayout.h | ||
---|---|---|
76 ↗ | (On Diff #485544) | Why does it have to be unique to apply AOS? |
mlir/lib/Dialect/SparseTensor/Transforms/SparseTensorStorageLayout.h | ||
---|---|---|
76 ↗ | (On Diff #485544) | This ensures the the last dim is a unique singleton. |
mlir/include/mlir/Dialect/SparseTensor/IR/SparseTensor.h | ||
---|---|---|
48 | Empty line around each individual method (style in this file) | |
54 | this feels a bit too long for linline, also move to cpp | |
mlir/lib/Dialect/SparseTensor/IR/SparseTensorDialect.cpp | ||
276 | we probably need to assert s vs. rank, just to make sure this does not return the wrong value when passing in the wrong value for s | |
mlir/lib/Dialect/SparseTensor/Transforms/SparseTensorCodegen.cpp | ||
900 | now only 2 out of 3 getters use the SparseGetter abstraction? Is it still worth it. Shall we just move that back into the other rewriting rules too and make it more regular? |
Move getCooStart to cpp. Remove SparseGetter. Add an assertion to check the input dim.
mlir/lib/Dialect/SparseTensor/IR/SparseTensorDialect.cpp | ||
---|---|---|
276 | getDimLevelType has such an assert, but we add an assert here also. | |
mlir/lib/Dialect/SparseTensor/Transforms/SparseTensorCodegen.cpp | ||
900 | remove SparseGetter then. |
Rename getCooStart to getCOOStart to be consistent with other routines. Change the routine to not require unique last dim.
mlir/lib/Dialect/SparseTensor/Transforms/LoopEmitter.cpp | ||
---|---|---|
141 | I will do this in another CL, to add builders to ToPointersOp, ToValuesOp, and ToIndicesOp that infer the result types. | |
mlir/lib/Dialect/SparseTensor/Transforms/SparseTensorStorageLayout.h | ||
76 ↗ | (On Diff #485544) | Remove the requirement for unique. |
Add codegen utils for inferring the result types and generate ToValues/Indices/PointersOp.
mlir/lib/Dialect/SparseTensor/Transforms/LoopEmitter.cpp | ||
---|---|---|
141 | I realized adding builder methods to infer result type will create a dependence from SparseTensorDialect.cpp to CodeGenUtils.cpp/h, which is what we want to avoid. Add a codegenutil instead. |
mlir/lib/Dialect/SparseTensor/IR/SparseTensorDialect.cpp | ||
---|---|---|
279 | This comment is now outdated since you have the isUnique override parameter. You should really say something like, if unique is requested then .... | |
289 | by scanning only up to rank-1, you ensure there is always a compressed + one or more singleton this is getting subtle, so really needs proper doc (not just in API, but here in implementation) | |
mlir/lib/Dialect/SparseTensor/Transforms/CodegenUtils.h | ||
187 | I would not say that you add a layout when set but When withLayout is set, the returned layout has unknown strides and offsets. Otherwise, or something like that | |
mlir/test/Dialect/SparseTensor/sorted_coo.mlir | ||
74–75 | why not just complete the type? it does not vary right? Leaving an < unclosed feels a bit wrong |
mlir/lib/Dialect/SparseTensor/IR/SparseTensorDialect.cpp | ||
---|---|---|
289 | The document for the routine also mentions this, add doc here: We only consider COO region with at least two dimensions for the purpose | |
mlir/test/Dialect/SparseTensor/sorted_coo.mlir | ||
74–75 | Fix here an other places. |
Empty line around each individual method (style in this file)