This improves namespacing, and follows the pattern used for "Kind" enums elsewhere in MLIR.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
mlir/include/mlir/Dialect/SparseTensor/Utils/Merger.h | ||
---|---|---|
91 | how do you feel about having kind defined inside the class |
mlir/include/mlir/Dialect/SparseTensor/Utils/Merger.h | ||
---|---|---|
91 | I think it reads better with the definition floated out, because the enum has so very many entries and thus inlining it would distract too much from the rest of the (very short) definition of TensorExp. (And I imagine those legibility concerns will only get worse whenever I get around to encoding the arity into the enum values.) |
mlir/include/mlir/Dialect/SparseTensor/Utils/Merger.h | ||
---|---|---|
91 | Makes sense. LGTM |
how do you feel about having kind defined inside the class
(I think I know the answer given how you did it, but just checking)