search for: zerosmallvector

Displaying 9 results from an estimated 9 matches for "zerosmallvector".

2020 Nov 16
2
RFC: [SmallVector] Adding SVec<T> and Vec<T> convenience wrappers.
...t; - could you expound on the benefits of SmallVector<T, 0> > over std::vector<T>? I guess the SmallVectorImpl generic algorithm > opportunities? Though that's rarely needed compared to ArrayRef.) > If SmallVector<T> would suffice then maybe Vec<T> could be > ZeroSmallVector<T>? Not sure. > ZeroSmallVector<T> does not really address your "more vector names to pick from" concerns, and it is longer than `SmallVector<T, 0>`: shouldn't we aim for the "default case" to be the easiest to reach / most intuitive to pick? `llvm::Vec...
2020 Nov 16
0
RFC: [SmallVector] Adding SVec<T> and Vec<T> convenience wrappers.
...xpound on the benefits of SmallVector<T, 0> >> over std::vector<T>? I guess the SmallVectorImpl generic algorithm >> opportunities? Though that's rarely needed compared to ArrayRef.) >> If SmallVector<T> would suffice then maybe Vec<T> could be >> ZeroSmallVector<T>? Not sure. > > > ZeroSmallVector<T> does not really address your "more vector names to pick from" concerns, Somewhat - if SmallVector<T> can be used instead of SVec<T> then we have one fewer name and less convention to base the Vec<T> on (since i...
2020 Nov 16
2
RFC: [SmallVector] Adding SVec<T> and Vec<T> convenience wrappers.
...ts of SmallVector<T, 0> > >> over std::vector<T>? I guess the SmallVectorImpl generic algorithm > >> opportunities? Though that's rarely needed compared to ArrayRef.) > >> If SmallVector<T> would suffice then maybe Vec<T> could be > >> ZeroSmallVector<T>? Not sure. > > > > > > ZeroSmallVector<T> does not really address your "more vector names to > pick from" concerns, > > Somewhat - if SmallVector<T> can be used instead of SVec<T> then we > have one fewer name and less convention to...
2020 Nov 17
2
RFC: [SmallVector] Adding SVec<T> and Vec<T> convenience wrappers.
...gt;> >> over std::vector<T>? I guess the SmallVectorImpl generic algorithm > >> >> opportunities? Though that's rarely needed compared to ArrayRef.) > >> >> If SmallVector<T> would suffice then maybe Vec<T> could be > >> >> ZeroSmallVector<T>? Not sure. > >> > > >> > > >> > ZeroSmallVector<T> does not really address your "more vector names to > pick from" concerns, > >> > >> Somewhat - if SmallVector<T> can be used instead of SVec<T> then we &g...
2020 Nov 17
0
RFC: [SmallVector] Adding SVec<T> and Vec<T> convenience wrappers.
...r<T, 0> >> >> over std::vector<T>? I guess the SmallVectorImpl generic algorithm >> >> opportunities? Though that's rarely needed compared to ArrayRef.) >> >> If SmallVector<T> would suffice then maybe Vec<T> could be >> >> ZeroSmallVector<T>? Not sure. >> > >> > >> > ZeroSmallVector<T> does not really address your "more vector names to pick from" concerns, >> >> Somewhat - if SmallVector<T> can be used instead of SVec<T> then we >> have one fewer name and...
2020 Nov 16
0
RFC: [SmallVector] Adding SVec<T> and Vec<T> convenience wrappers.
...eaves the Vec<T> - could you expound on the benefits of SmallVector<T, 0> over std::vector<T>? I guess the SmallVectorImpl generic algorithm opportunities? Though that's rarely needed compared to ArrayRef.) If SmallVector<T> would suffice then maybe Vec<T> could be ZeroSmallVector<T>? Not sure. On Fri, Nov 13, 2020 at 2:06 PM Sean Silva via llvm-dev <llvm-dev at lists.llvm.org> wrote: > > We've pretty happy now with a patch that adds two wrappers around SmallVector that make it 1) more convenient to use and 2) will tend to mitigate misuse of SmallVecto...
2020 Nov 17
1
RFC: [SmallVector] Adding SVec<T> and Vec<T> convenience wrappers.
...d::vector<T>? I guess the SmallVectorImpl generic algorithm >>> >> >> opportunities? Though that's rarely needed compared to ArrayRef.) >>> >> >> If SmallVector<T> would suffice then maybe Vec<T> could be >>> >> >> ZeroSmallVector<T>? Not sure. >>> >> > >>> >> > >>> >> > ZeroSmallVector<T> does not really address your "more vector names >>> to pick from" concerns, >>> >> >>> >> Somewhat - if SmallVector<T>...
2020 Nov 13
6
RFC: [SmallVector] Adding SVec<T> and Vec<T> convenience wrappers.
We've pretty happy now with a patch that adds two wrappers around SmallVector that make it 1) more convenient to use and 2) will tend to mitigate misuse of SmallVector. We think it's ready for wider discussion: https://reviews.llvm.org/D90884 SVec<T> is a convenience alias for SmallVector<T, N> with N chosen automatically to keep its size under 64 Bytes (that heuristic is easy
2020 Nov 17
0
RFC: [SmallVector] Adding SVec<T> and Vec<T> convenience wrappers.
...> over std::vector<T>? I guess the SmallVectorImpl generic algorithm >> >> >> opportunities? Though that's rarely needed compared to ArrayRef.) >> >> >> If SmallVector<T> would suffice then maybe Vec<T> could be >> >> >> ZeroSmallVector<T>? Not sure. >> >> > >> >> > >> >> > ZeroSmallVector<T> does not really address your "more vector names >> to pick from" concerns, >> >> >> >> Somewhat - if SmallVector<T> can be used instead of...