|
LLVM
3.7.0
|
MutableArrayRef - Represent a mutable reference to an array (0 or more elements consecutively in memory), i.e. More...
#include <ArrayRef.h>
Public Types | |
| typedef T * | iterator |
| typedef std::reverse_iterator < iterator > | reverse_iterator |
Public Types inherited from llvm::ArrayRef< T > | |
| typedef const T * | iterator |
| typedef const T * | const_iterator |
| typedef size_t | size_type |
| typedef std::reverse_iterator < iterator > | reverse_iterator |
Public Member Functions | |
| MutableArrayRef () | |
| Construct an empty MutableArrayRef. More... | |
| MutableArrayRef (NoneType) | |
| Construct an empty MutableArrayRef from None. More... | |
| MutableArrayRef (T &OneElt) | |
| Construct an MutableArrayRef from a single element. More... | |
| MutableArrayRef (T *data, size_t length) | |
| Construct an MutableArrayRef from a pointer and length. More... | |
| MutableArrayRef (T *begin, T *end) | |
| Construct an MutableArrayRef from a range. More... | |
| MutableArrayRef (SmallVectorImpl< T > &Vec) | |
| Construct an MutableArrayRef from a SmallVector. More... | |
| MutableArrayRef (std::vector< T > &Vec) | |
| Construct a MutableArrayRef from a std::vector. More... | |
| template<size_t N> | |
| LLVM_CONSTEXPR | MutableArrayRef (T(&Arr)[N]) |
| Construct an MutableArrayRef from a C array. More... | |
| T * | data () const |
| iterator | begin () const |
| iterator | end () const |
| reverse_iterator | rbegin () const |
| reverse_iterator | rend () const |
| T & | front () const |
| front - Get the first element. More... | |
| T & | back () const |
| back - Get the last element. More... | |
| MutableArrayRef< T > | slice (unsigned N) const |
| slice(n) - Chop off the first N elements of the array. More... | |
| MutableArrayRef< T > | slice (unsigned N, unsigned M) const |
| slice(n, m) - Chop off the first N elements of the array, and keep M elements in the array. More... | |
| MutableArrayRef< T > | drop_back (unsigned N) const |
Operator Overloads | |
| T & | operator[] (size_t Index) const |
Public Member Functions inherited from llvm::ArrayRef< T > | |
| ArrayRef () | |
| Construct an empty ArrayRef. More... | |
| ArrayRef (NoneType) | |
| Construct an empty ArrayRef from None. More... | |
| ArrayRef (const T &OneElt) | |
| Construct an ArrayRef from a single element. More... | |
| ArrayRef (const T *data, size_t length) | |
| Construct an ArrayRef from a pointer and length. More... | |
| ArrayRef (const T *begin, const T *end) | |
| Construct an ArrayRef from a range. More... | |
| template<typename U > | |
| ArrayRef (const SmallVectorTemplateCommon< T, U > &Vec) | |
| Construct an ArrayRef from a SmallVector. More... | |
| template<typename A > | |
| ArrayRef (const std::vector< T, A > &Vec) | |
| Construct an ArrayRef from a std::vector. More... | |
| template<size_t N> | |
| LLVM_CONSTEXPR | ArrayRef (const T(&Arr)[N]) |
| Construct an ArrayRef from a C array. More... | |
| ArrayRef (const std::initializer_list< T > &Vec) | |
| Construct an ArrayRef from a std::initializer_list. More... | |
| template<typename U > | |
| ArrayRef (const ArrayRef< U * > &A, typename std::enable_if< std::is_convertible< U *const *, T const * >::value >::type *=0) | |
| Construct an ArrayRef<const T*> from ArrayRef<T*>. More... | |
| template<typename U , typename DummyT > | |
| ArrayRef (const SmallVectorTemplateCommon< U *, DummyT > &Vec, typename std::enable_if< std::is_convertible< U *const *, T const * >::value >::type *=0) | |
| Construct an ArrayRef<const T*> from a SmallVector<T*>. More... | |
| template<typename U , typename A > | |
| ArrayRef (const std::vector< U *, A > &Vec, typename std::enable_if< std::is_convertible< U *const *, T const * >::value >::type *=0) | |
| Construct an ArrayRef<const T*> from std::vector<T*>. More... | |
| iterator | begin () const |
| iterator | end () const |
| reverse_iterator | rbegin () const |
| reverse_iterator | rend () const |
| bool | empty () const |
| empty - Check if the array is empty. More... | |
| const T * | data () const |
| size_t | size () const |
| size - Get the array size. More... | |
| const T & | front () const |
| front - Get the first element. More... | |
| const T & | back () const |
| back - Get the last element. More... | |
| template<typename Allocator > | |
| ArrayRef< T > | copy (Allocator &A) |
| bool | equals (ArrayRef RHS) const |
| equals - Check for element-wise equality. More... | |
| ArrayRef< T > | slice (unsigned N) const |
| slice(n) - Chop off the first N elements of the array. More... | |
| ArrayRef< T > | slice (unsigned N, unsigned M) const |
| slice(n, m) - Chop off the first N elements of the array, and keep M elements in the array. More... | |
| ArrayRef< T > | drop_back (unsigned N=1) const |
| const T & | operator[] (size_t Index) const |
| std::vector< T > | vec () const |
| operator std::vector< T > () const | |
MutableArrayRef - Represent a mutable reference to an array (0 or more elements consecutively in memory), i.e.
a start pointer and a length. It allows various APIs to take and modify consecutive elements easily and conveniently.
This class does not own the underlying data, it is expected to be used in situations where the data resides in some other buffer, whose lifetime extends past that of the MutableArrayRef. For this reason, it is not in general safe to store a MutableArrayRef.
This is intended to be trivially copyable, so it should be passed by value.
Definition at line 221 of file ArrayRef.h.
| typedef T* llvm::MutableArrayRef< T >::iterator |
Definition at line 223 of file ArrayRef.h.
| typedef std::reverse_iterator<iterator> llvm::MutableArrayRef< T >::reverse_iterator |
Definition at line 225 of file ArrayRef.h.
|
inline |
Construct an empty MutableArrayRef.
Definition at line 228 of file ArrayRef.h.
|
inline |
Construct an empty MutableArrayRef from None.
Definition at line 231 of file ArrayRef.h.
|
inline |
Construct an MutableArrayRef from a single element.
Definition at line 234 of file ArrayRef.h.
|
inline |
Construct an MutableArrayRef from a pointer and length.
Definition at line 237 of file ArrayRef.h.
|
inline |
Construct an MutableArrayRef from a range.
Definition at line 241 of file ArrayRef.h.
|
inline |
Construct an MutableArrayRef from a SmallVector.
Definition at line 244 of file ArrayRef.h.
|
inline |
Construct a MutableArrayRef from a std::vector.
Definition at line 248 of file ArrayRef.h.
|
inline |
Construct an MutableArrayRef from a C array.
Definition at line 253 of file ArrayRef.h.
|
inline |
back - Get the last element.
Definition at line 271 of file ArrayRef.h.
|
inline |
Definition at line 258 of file ArrayRef.h.
Referenced by FitWeights(), lowerV8I16GeneralSingleInputVectorShuffle(), lowerV8I16VectorShuffle(), and llvm::MutableArrayRef< llvm::coverage::CounterMappingRegion >::rend().
|
inline |
Definition at line 256 of file ArrayRef.h.
Referenced by llvm::MutableArrayRef< llvm::coverage::CounterMappingRegion >::back(), llvm::MutableArrayRef< llvm::coverage::CounterMappingRegion >::begin(), llvm::MutableArrayRef< llvm::coverage::CounterMappingRegion >::end(), llvm::MCAssembler::Finish(), llvm::MutableArrayRef< llvm::coverage::CounterMappingRegion >::front(), llvm::MutableArrayRef< llvm::coverage::CounterMappingRegion >::operator[](), and llvm::MutableArrayRef< llvm::coverage::CounterMappingRegion >::slice().
|
inline |
Definition at line 289 of file ArrayRef.h.
|
inline |
Definition at line 259 of file ArrayRef.h.
Referenced by FitWeights(), lowerV8I16GeneralSingleInputVectorShuffle(), lowerV8I16VectorShuffle(), and llvm::MutableArrayRef< llvm::coverage::CounterMappingRegion >::rbegin().
|
inline |
front - Get the first element.
Definition at line 265 of file ArrayRef.h.
|
inline |
Definition at line 297 of file ArrayRef.h.
|
inline |
Definition at line 261 of file ArrayRef.h.
|
inline |
Definition at line 262 of file ArrayRef.h.
|
inline |
slice(n) - Chop off the first N elements of the array.
Definition at line 277 of file ArrayRef.h.
Referenced by llvm::MutableArrayRef< llvm::coverage::CounterMappingRegion >::drop_back(), and lowerV8I16GeneralSingleInputVectorShuffle().
|
inline |
slice(n, m) - Chop off the first N elements of the array, and keep M elements in the array.
Definition at line 284 of file ArrayRef.h.
1.8.6