add new interfaces to SparseTensorEncodingAttr to construct the pointer/index types based on pointer/index bitwidth.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
mlir/include/mlir/Dialect/SparseTensor/IR/SparseTensorAttrDefs.td | ||
---|---|---|
162 | You are right, I checked other td file to confirm. |
mlir/lib/Dialect/SparseTensor/IR/SparseTensorDialect.cpp | ||
---|---|---|
46 | Any reason why this floated out rather than inlined at the use site? If you instead floated out auto ctx = getContext(); you might be able to fit everything on one line, if that's the concern | |
47 | After some offline discussion, I rescind this suggestion. Let's handle that in a separate CL instead. | |
52 | ditto |
Still LGTM, if you fix Wren's doc suggestion.
mlir/lib/Dialect/SparseTensor/IR/SparseTensorDialect.cpp | ||
---|---|---|
47 | Discussed internally, keep for now i32/i64 in this refactoring, and investigate ui32/ui64 independently. |
mlir/lib/Dialect/SparseTensor/Transforms/SparseTensorCodegen.cpp | ||
---|---|---|
275–276 | Should this go to next line? |
mlir/lib/Dialect/SparseTensor/IR/SparseTensorDialect.cpp | ||
---|---|---|
46 | Yes, because IndexType and IntegerType are incompatible to be used by ?: operator |
Should this use "///" so that the comment is picked up by doxygen? (I don't know what the style guide is re extraClassDeclaration)