LLVM 20.0.0git
Classes | Namespaces | Functions
ArrayRef.h File Reference
#include "llvm/ADT/Hashing.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/Support/Compiler.h"
#include <algorithm>
#include <array>
#include <cassert>
#include <cstddef>
#include <initializer_list>
#include <iterator>
#include <memory>
#include <type_traits>
#include <vector>

Go to the source code of this file.

Classes

class  llvm::ArrayRef< T >
 ArrayRef - Represent a constant reference to an array (0 or more elements consecutively in memory), i.e. More...
 
class  llvm::MutableArrayRef< T >
 MutableArrayRef - Represent a mutable reference to an array (0 or more elements consecutively in memory), i.e. More...
 
class  llvm::OwningArrayRef< T >
 This is a MutableArrayRef that owns its array. More...
 
struct  llvm::DenseMapInfo< ArrayRef< T >, void >
 

Namespaces

namespace  llvm
 This is an optimization pass for GlobalISel generic memory operations.
 

Functions

template<typename T >
hash_code llvm::hash_value (ArrayRef< T > S)
 
ArrayRef Deduction guides

Deduction guide to construct an ArrayRef from a single element.

template<typename T >
 llvm::ArrayRef (const T &OneElt) -> ArrayRef< T >
 
template<typename T >
 llvm::ArrayRef (const T *data, size_t length) -> ArrayRef< T >
 Deduction guide to construct an ArrayRef from a pointer and length.
 
template<typename T >
 llvm::ArrayRef (const T *data, const T *end) -> ArrayRef< T >
 Deduction guide to construct an ArrayRef from a range.
 
template<typename T >
 llvm::ArrayRef (const SmallVectorImpl< T > &Vec) -> ArrayRef< T >
 Deduction guide to construct an ArrayRef from a SmallVector.
 
template<typename T , unsigned N>
 llvm::ArrayRef (const SmallVector< T, N > &Vec) -> ArrayRef< T >
 Deduction guide to construct an ArrayRef from a SmallVector.
 
template<typename T >
 llvm::ArrayRef (const std::vector< T > &Vec) -> ArrayRef< T >
 Deduction guide to construct an ArrayRef from a std::vector.
 
template<typename T , std::size_t N>
 llvm::ArrayRef (const std::array< T, N > &Vec) -> ArrayRef< T >
 Deduction guide to construct an ArrayRef from a std::array.
 
template<typename T >
 llvm::ArrayRef (const ArrayRef< T > &Vec) -> ArrayRef< T >
 Deduction guide to construct an ArrayRef from an ArrayRef (const)
 
template<typename T >
 llvm::ArrayRef (ArrayRef< T > &Vec) -> ArrayRef< T >
 Deduction guide to construct an ArrayRef from an ArrayRef.
 
template<typename T , size_t N>
 llvm::ArrayRef (const T(&Arr)[N]) -> ArrayRef< T >
 Deduction guide to construct an ArrayRef from a C array.
 
MutableArrayRef Deduction guides

Deduction guide to construct a MutableArrayRef from a single element

template<class T >
 llvm::MutableArrayRef (T &OneElt) -> MutableArrayRef< T >
 
template<class T >
 llvm::MutableArrayRef (T *data, size_t length) -> MutableArrayRef< T >
 Deduction guide to construct a MutableArrayRef from a pointer and length.
 
template<class T >
 llvm::MutableArrayRef (SmallVectorImpl< T > &Vec) -> MutableArrayRef< T >
 Deduction guide to construct a MutableArrayRef from a SmallVector.
 
template<class T , unsigned N>
 llvm::MutableArrayRef (SmallVector< T, N > &Vec) -> MutableArrayRef< T >
 
template<class T >
 llvm::MutableArrayRef (std::vector< T > &Vec) -> MutableArrayRef< T >
 Deduction guide to construct a MutableArrayRef from a std::vector.
 
template<class T , std::size_t N>
 llvm::MutableArrayRef (std::array< T, N > &Vec) -> MutableArrayRef< T >
 Deduction guide to construct a MutableArrayRef from a std::array.
 
template<typename T , size_t N>
 llvm::MutableArrayRef (T(&Arr)[N]) -> MutableArrayRef< T >
 Deduction guide to construct a MutableArrayRef from a C array.
 
ArrayRef Comparison Operators
template<typename T >
bool llvm::operator== (ArrayRef< T > LHS, ArrayRef< T > RHS)
 
template<typename T >
bool llvm::operator== (SmallVectorImpl< T > &LHS, ArrayRef< T > RHS)
 
template<typename T >
bool llvm::operator!= (ArrayRef< T > LHS, ArrayRef< T > RHS)
 
template<typename T >
bool llvm::operator!= (SmallVectorImpl< T > &LHS, ArrayRef< T > RHS)