LLVM API Documentation
#include <ArrayRef.h>
Public Types | |
typedef T * | iterator |
typedef std::reverse_iterator < iterator > | reverse_iterator |
Public Member Functions | |
MutableArrayRef () | |
Construct an empty MutableArrayRef. | |
MutableArrayRef (NoneType) | |
Construct an empty MutableArrayRef from None. | |
MutableArrayRef (T &OneElt) | |
Construct an MutableArrayRef from a single element. | |
MutableArrayRef (T *data, size_t length) | |
Construct an MutableArrayRef from a pointer and length. | |
MutableArrayRef (T *begin, T *end) | |
Construct an MutableArrayRef from a range. | |
MutableArrayRef (SmallVectorImpl< T > &Vec) | |
Construct an MutableArrayRef from a SmallVector. | |
MutableArrayRef (std::vector< T > &Vec) | |
Construct a MutableArrayRef from a std::vector. | |
template<size_t N> | |
LLVM_CONSTEXPR | MutableArrayRef (T(&Arr)[N]) |
Construct an MutableArrayRef from a C array. | |
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. | |
T & | back () const |
back - Get the last element. | |
MutableArrayRef< T > | slice (unsigned N) const |
slice(n) - Chop off the first N elements of the array. | |
MutableArrayRef< T > | slice (unsigned N, unsigned M) const |
T & | operator[] (size_t Index) 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 263 of file ArrayRef.h.
typedef T* llvm::MutableArrayRef< T >::iterator |
Reimplemented from llvm::ArrayRef< T >.
Definition at line 265 of file ArrayRef.h.
typedef std::reverse_iterator<iterator> llvm::MutableArrayRef< T >::reverse_iterator |
Reimplemented from llvm::ArrayRef< T >.
Definition at line 267 of file ArrayRef.h.
llvm::MutableArrayRef< T >::MutableArrayRef | ( | ) | [inline] |
Construct an empty MutableArrayRef.
Definition at line 270 of file ArrayRef.h.
llvm::MutableArrayRef< T >::MutableArrayRef | ( | NoneType | ) | [inline] |
Construct an empty MutableArrayRef from None.
Definition at line 273 of file ArrayRef.h.
llvm::MutableArrayRef< T >::MutableArrayRef | ( | T & | OneElt | ) | [inline] |
Construct an MutableArrayRef from a single element.
Definition at line 276 of file ArrayRef.h.
llvm::MutableArrayRef< T >::MutableArrayRef | ( | T * | data, |
size_t | length | ||
) | [inline] |
Construct an MutableArrayRef from a pointer and length.
Definition at line 279 of file ArrayRef.h.
llvm::MutableArrayRef< T >::MutableArrayRef | ( | T * | begin, |
T * | end | ||
) | [inline] |
Construct an MutableArrayRef from a range.
Definition at line 283 of file ArrayRef.h.
llvm::MutableArrayRef< T >::MutableArrayRef | ( | SmallVectorImpl< T > & | Vec | ) | [inline] |
Construct an MutableArrayRef from a SmallVector.
Definition at line 286 of file ArrayRef.h.
llvm::MutableArrayRef< T >::MutableArrayRef | ( | std::vector< T > & | Vec | ) | [inline] |
Construct a MutableArrayRef from a std::vector.
Definition at line 290 of file ArrayRef.h.
LLVM_CONSTEXPR llvm::MutableArrayRef< T >::MutableArrayRef | ( | T(&) | Arr[N] | ) | [inline] |
Construct an MutableArrayRef from a C array.
Definition at line 295 of file ArrayRef.h.
T& llvm::MutableArrayRef< T >::back | ( | ) | const [inline] |
back - Get the last element.
Reimplemented from llvm::ArrayRef< T >.
Definition at line 313 of file ArrayRef.h.
iterator llvm::MutableArrayRef< T >::begin | ( | ) | const [inline] |
Reimplemented from llvm::ArrayRef< T >.
Definition at line 300 of file ArrayRef.h.
Referenced by FitWeights(), lowerV16I8VectorShuffle(), lowerV8I16SingleInputVectorShuffle(), lowerV8I16VectorShuffle(), and llvm::MutableArrayRef< CounterMappingRegion >::rend().
T* llvm::MutableArrayRef< T >::data | ( | ) | const [inline] |
Reimplemented from llvm::ArrayRef< T >.
Definition at line 298 of file ArrayRef.h.
Referenced by llvm::MutableArrayRef< CounterMappingRegion >::back(), llvm::MutableArrayRef< CounterMappingRegion >::begin(), llvm::MutableArrayRef< CounterMappingRegion >::data(), llvm::MutableArrayRef< CounterMappingRegion >::end(), llvm::MutableArrayRef< CounterMappingRegion >::front(), llvm::MutableArrayRef< CounterMappingRegion >::operator[](), and llvm::MutableArrayRef< CounterMappingRegion >::slice().
iterator llvm::MutableArrayRef< T >::end | ( | ) | const [inline] |
Reimplemented from llvm::ArrayRef< T >.
Definition at line 301 of file ArrayRef.h.
Referenced by FitWeights(), lowerV16I8VectorShuffle(), lowerV8I16SingleInputVectorShuffle(), lowerV8I16VectorShuffle(), and llvm::MutableArrayRef< CounterMappingRegion >::rbegin().
T& llvm::MutableArrayRef< T >::front | ( | ) | const [inline] |
front - Get the first element.
Reimplemented from llvm::ArrayRef< T >.
Definition at line 307 of file ArrayRef.h.
T& llvm::MutableArrayRef< T >::operator[] | ( | size_t | Index | ) | const [inline] |
Reimplemented from llvm::ArrayRef< T >.
Definition at line 332 of file ArrayRef.h.
reverse_iterator llvm::MutableArrayRef< T >::rbegin | ( | ) | const [inline] |
Reimplemented from llvm::ArrayRef< T >.
Definition at line 303 of file ArrayRef.h.
reverse_iterator llvm::MutableArrayRef< T >::rend | ( | ) | const [inline] |
Reimplemented from llvm::ArrayRef< T >.
Definition at line 304 of file ArrayRef.h.
MutableArrayRef<T> llvm::MutableArrayRef< T >::slice | ( | unsigned | N | ) | const [inline] |
slice(n) - Chop off the first N elements of the array.
Reimplemented from llvm::ArrayRef< T >.
Definition at line 319 of file ArrayRef.h.
Referenced by lowerV16I8VectorShuffle(), and lowerV8I16SingleInputVectorShuffle().
MutableArrayRef<T> llvm::MutableArrayRef< T >::slice | ( | unsigned | N, |
unsigned | M | ||
) | const [inline] |
slice(n, m) - Chop off the first N elements of the array, and keep M elements in the array.
Reimplemented from llvm::ArrayRef< T >.
Definition at line 326 of file ArrayRef.h.