Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
mlir/lib/Dialect/SparseTensor/Transforms/SparseTensorCodegen.cpp | ||
---|---|---|
452 | how about ordered/unordered? the code may not differ right now, but perhaps in the future? seems good to get a unique method per unique situation? |
mlir/lib/Dialect/SparseTensor/Transforms/SparseTensorCodegen.cpp | ||
---|---|---|
450–452 | Now would be a good time to factor this part out into a standalone function of type DLT -> StringRef for returning the mangling itself (e.g., so we can use the same mangling elsewhere, as needed). To minimize string copying, you should write it like how toMLIRString is done (with a switch and returning the whole string at once, rather than gluing it together from parts). | |
452 | +1, if only for the sake of getting it out of the way at the same time. |
Modify toMLIRString to add toString and use it here.
mlir/lib/Dialect/SparseTensor/Transforms/SparseTensorCodegen.cpp | ||
---|---|---|
450–452 | Add toString and use it here. |
mlir/include/mlir/Dialect/SparseTensor/IR/Enums.h | ||
---|---|---|
198 | This now has runtime overhead. Since we only use it for debugging at one place, let's fix the only other place ./IR/SparseTensorDialect.cpp: change and remove this one (and call your onetoMLIRString again |
mlir/include/mlir/Dialect/SparseTensor/IR/Enums.h | ||
---|---|---|
194 | be careful with removing this! even though all cases are covered, some tools want an "llvm_unreachable" here, and Wren was going to write one that does not need to pull in dependences into this pure include but when you remove it, perhaps some builds will break.... |
be careful with removing this! even though all cases are covered, some tools want an "llvm_unreachable" here, and Wren was going to write one that does not need to pull in dependences into this pure include
but when you remove it, perhaps some builds will break....