Currently DenseElementsAttr only exposes the ability to get the full range of values for a given type T, but there are many situations where we just want the beginning/end iterator. This revision adds proper value_begin/value_end methods for all of the supported T types, and also cleans up a bit of the interface.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Im missing the motivation a little bit: is this to reduce number of characters typed or what is the benefit?
Comment Actions
It reduces the number of characters, and is also more performant. For example, if we don't need the full range, we can avoid computing the number of elements.