Now we have only one constant to indicate dynamic something, we can simplify ViewLikeInterface.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Thanks for the cleanup!
mlir/lib/Interfaces/ViewLikeInterface.cpp | ||
---|---|---|
108 | Not necessarily for this PR but we should aim for making ShapedType::kDynamic and so we would need a ShapedType::setDynamic(int64_t &) at some point. |
mlir/lib/Interfaces/ViewLikeInterface.cpp | ||
---|---|---|
108 | Should it be setDynamic(int64_t &) or int64_t getDynamic()? |
mlir/lib/Interfaces/ViewLikeInterface.cpp | ||
---|---|---|
108 | I'd think there is not much different between int64_t getDynamic() and ShapedType::kDynamic : it is just a different spelling but the magic constant gets leaked in the same way. setDynamic avoids leaking altogether. |
Not necessarily for this PR but we should aim for making ShapedType::kDynamic and so we would need a ShapedType::setDynamic(int64_t &) at some point.