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
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Im missing the motivation a little bit: is this to reduce number of characters typed or what is the benefit?
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.
clang-tidy: warning: invalid case style for function 'value_begin' [readability-identifier-naming]
not useful