LLVM  6.0.0svn
Public Types | List of all members
llvm::ArrayRef< T > Class Template Reference

ArrayRef - Represent a constant reference to an array (0 or more elements consecutively in memory), i.e. More...

#include "llvm/ADT/APInt.h"

Inheritance diagram for llvm::ArrayRef< T >:
Inheritance graph
[legend]

Public Types

using iterator = const T *
 
using const_iterator = const T *
 
using size_type = size_t
 
using reverse_iterator = std::reverse_iterator< iterator >
 

Public Member Functions

Constructors
 ArrayRef ()=default
 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>
constexpr ArrayRef (const std::array< T, N > &Arr)
 Construct an ArrayRef from a std::array. More...
 
template<size_t N>
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 *=nullptr)
 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 *=nullptr)
 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...
 
Simple Operations
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 Tdata () const
 
size_t size () const
 size - Get the array size. More...
 
const Tfront () const
 front - Get the first element. More...
 
const Tback () const
 back - Get the last element. More...
 
template<typename Allocator >
ArrayRef< Tcopy (Allocator &A)
 
bool equals (ArrayRef RHS) const
 equals - Check for element-wise equality. More...
 
ArrayRef< Tslice (size_t N, size_t M) const
 slice(n, m) - Chop off the first N elements of the array, and keep M elements in the array. More...
 
ArrayRef< Tslice (size_t N) const
 slice(n) - Chop off the first N elements of the array. More...
 
ArrayRef< Tdrop_front (size_t N=1) const
 Drop the first N elements of the array. More...
 
ArrayRef< Tdrop_back (size_t N=1) const
 Drop the last N elements of the array. More...
 
template<class PredicateT >
ArrayRef< Tdrop_while (PredicateT Pred) const
 Return a copy of *this with the first N elements satisfying the given predicate removed. More...
 
template<class PredicateT >
ArrayRef< Tdrop_until (PredicateT Pred) const
 Return a copy of *this with the first N elements not satisfying the given predicate removed. More...
 
ArrayRef< Ttake_front (size_t N=1) const
 Return a copy of *this with only the first N elements. More...
 
ArrayRef< Ttake_back (size_t N=1) const
 Return a copy of *this with only the last N elements. More...
 
template<class PredicateT >
ArrayRef< Ttake_while (PredicateT Pred) const
 Return the first N elements of this Array that satisfy the given predicate. More...
 
template<class PredicateT >
ArrayRef< Ttake_until (PredicateT Pred) const
 Return the first N elements of this Array that don't satisfy the given predicate. More...
 
Operator Overloads
const Toperator[] (size_t Index) const
 
template<typename U >
std::enable_if< std::is_same< U, T >::value, ArrayRef< T > >::type & operator= (U &&Temporary)=delete
 Disallow accidental assignment from a temporary. More...
 
template<typename U >
std::enable_if< std::is_same< U, T >::value, ArrayRef< T > >::type & operator= (std::initializer_list< U >)=delete
 Disallow accidental assignment from a temporary. More...
 
Expensive Operations
std::vector< Tvec () const
 
Conversion operators
 operator std::vector< T > () const
 

Detailed Description

template<typename T>
class llvm::ArrayRef< T >

ArrayRef - Represent a constant 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 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 ArrayRef. For this reason, it is not in general safe to store an ArrayRef.

This is intended to be trivially copyable, so it should be passed by value.

Definition at line 33 of file APInt.h.

Member Typedef Documentation

◆ const_iterator

template<typename T>
using llvm::ArrayRef< T >::const_iterator = const T *

Definition at line 45 of file ArrayRef.h.

◆ iterator

template<typename T>
using llvm::ArrayRef< T >::iterator = const T *

Definition at line 44 of file ArrayRef.h.

◆ reverse_iterator

template<typename T>
using llvm::ArrayRef< T >::reverse_iterator = std::reverse_iterator<iterator>

Definition at line 47 of file ArrayRef.h.

◆ size_type

template<typename T>
using llvm::ArrayRef< T >::size_type = size_t

Definition at line 46 of file ArrayRef.h.

Constructor & Destructor Documentation

◆ ArrayRef() [1/13]

template<typename T>
llvm::ArrayRef< T >::ArrayRef ( )
default

Construct an empty ArrayRef.

◆ ArrayRef() [2/13]

template<typename T>
llvm::ArrayRef< T >::ArrayRef ( NoneType  )
inline

Construct an empty ArrayRef from None.

Definition at line 64 of file ArrayRef.h.

◆ ArrayRef() [3/13]

template<typename T>
llvm::ArrayRef< T >::ArrayRef ( const T OneElt)
inline

Construct an ArrayRef from a single element.

Definition at line 67 of file ArrayRef.h.

◆ ArrayRef() [4/13]

template<typename T>
llvm::ArrayRef< T >::ArrayRef ( const T data,
size_t  length 
)
inline

Construct an ArrayRef from a pointer and length.

Definition at line 71 of file ArrayRef.h.

◆ ArrayRef() [5/13]

template<typename T>
llvm::ArrayRef< T >::ArrayRef ( const T begin,
const T end 
)
inline

Construct an ArrayRef from a range.

Definition at line 75 of file ArrayRef.h.

◆ ArrayRef() [6/13]

template<typename T>
template<typename U >
llvm::ArrayRef< T >::ArrayRef ( const SmallVectorTemplateCommon< T, U > &  Vec)
inline

Construct an ArrayRef from a SmallVector.

This is templated in order to avoid instantiating SmallVectorTemplateCommon<T> whenever we copy-construct an ArrayRef.

Definition at line 82 of file ArrayRef.h.

◆ ArrayRef() [7/13]

template<typename T>
template<typename A >
llvm::ArrayRef< T >::ArrayRef ( const std::vector< T, A > &  Vec)
inline

Construct an ArrayRef from a std::vector.

Definition at line 88 of file ArrayRef.h.

◆ ArrayRef() [8/13]

template<typename T>
template<size_t N>
constexpr llvm::ArrayRef< T >::ArrayRef ( const std::array< T, N > &  Arr)
inline

Construct an ArrayRef from a std::array.

Definition at line 93 of file ArrayRef.h.

◆ ArrayRef() [9/13]

template<typename T>
template<size_t N>
constexpr llvm::ArrayRef< T >::ArrayRef ( const T(&)  Arr[N])
inline

Construct an ArrayRef from a C array.

Definition at line 98 of file ArrayRef.h.

◆ ArrayRef() [10/13]

template<typename T>
llvm::ArrayRef< T >::ArrayRef ( const std::initializer_list< T > &  Vec)
inline

Construct an ArrayRef from a std::initializer_list.

Definition at line 101 of file ArrayRef.h.

◆ ArrayRef() [11/13]

template<typename T>
template<typename U >
llvm::ArrayRef< T >::ArrayRef ( const ArrayRef< U *> &  A,
typename std::enable_if< std::is_convertible< U *const *, T const *>::value >::type *  = nullptr 
)
inline

Construct an ArrayRef<const T*> from ArrayRef<T*>.

This uses SFINAE to ensure that only ArrayRefs of pointers can be converted.

Definition at line 108 of file ArrayRef.h.

◆ ArrayRef() [12/13]

template<typename T>
template<typename U , typename DummyT >
llvm::ArrayRef< T >::ArrayRef ( const SmallVectorTemplateCommon< U *, DummyT > &  Vec,
typename std::enable_if< std::is_convertible< U *const *, T const *>::value >::type *  = nullptr 
)
inline

Construct an ArrayRef<const T*> from a SmallVector<T*>.

This is templated in order to avoid instantiating SmallVectorTemplateCommon<T> whenever we copy-construct an ArrayRef.

Definition at line 118 of file ArrayRef.h.

◆ ArrayRef() [13/13]

template<typename T>
template<typename U , typename A >
llvm::ArrayRef< T >::ArrayRef ( const std::vector< U *, A > &  Vec,
typename std::enable_if< std::is_convertible< U *const *, T const *>::value >::type *  = 0 
)
inline

Construct an ArrayRef<const T*> from std::vector<T*>.

This uses SFINAE to ensure that only vectors of pointers can be converted.

Definition at line 128 of file ArrayRef.h.

Member Function Documentation

◆ back()

template<typename T>
const T& llvm::ArrayRef< T >::back ( ) const
inline

◆ begin()

template<typename T>
iterator llvm::ArrayRef< T >::begin ( ) const
inline

Definition at line 137 of file ArrayRef.h.

Referenced by llvm::lto::LTO::add(), llvm::LandingPadInst::addClause(), llvm::SpillPlacement::addConstraints(), llvm::SelectionDAG::AddDbgValue(), llvm::SpillPlacement::addLinks(), llvm::AArch64FunctionInfo::addLOHDirective(), llvm::AttributeList::addParamAttribute(), llvm::SpillPlacement::addPrefSpill(), llvm::DebugLocEntry::addValues(), llvm::TargetLibraryInfoImpl::addVectorizableFunctions(), alwaysAvailable(), AnyAliasLiveIn(), llvm::AttributeListImpl::AttributeListImpl(), buildFixItLine(), llvm::MachineIRBuilder::buildSequence(), BuildSubAggregate(), llvm::MDNodeOpsKey::calculateHash(), llvm::Interpreter::callFunction(), CC_MipsO32_FP64(), llvm::LiveIntervals::checkRegMaskInterference(), llvm::UnOpInit::clone(), cloneConstantExprWithNewAddressSpace(), llvm::collectPGOFuncNameStrings(), combineShuffleOfSplat(), combineX86ShuffleChain(), combineX86ShufflesRecursively(), llvm::MDNodeOpsKey::compareOps(), llvm::ComputeLinearIndex(), llvm::concatenateVectors(), llvm::ConstantAggregate::ConstantAggregate(), llvm::ConstantFoldGetElementPtr(), llvm::convertUTF16ToUTF8String(), llvm::GlobalObject::copyMetadata(), llvm::DIBuilder::createExpression(), llvm::CallInst::CreateFree(), CreateGCRelocates(), llvm::createGreedyRegisterAllocator(), llvm::discoverAndMapSubloop(), llvm::Instruction::dropUnknownNonDebugMetadata(), llvm::DwarfAccelTable::Atom::dump(), llvm::AttributeSet::dump(), llvm::MCDwarfFrameEmitter::Emit(), llvm::ArrayRef< llvm::irsymtab::storage::Comdat >::equals(), llvm::FenceInst::FenceInst(), Find(), llvm::FindInsertedValue(), llvm::gep_type_begin(), llvm::AttributeSetNode::get(), llvm::AttributeList::get(), llvm::ConstantArray::get(), llvm::BitsInit::get(), llvm::ListInit::get(), llvm::DagInit::get(), llvm::TargetTransformInfoImplCRTPBase< AMDGPUTTIImpl >::getGEPCost(), llvm::ConstantAggrKeyType< ConstantClass >::getHash(), llvm::ConstantExprKeyType::getHash(), llvm::MDNodeKeyImpl< DIExpression >::getHashValue(), llvm::MachineTraceMetrics::Ensemble::getLoopFor(), llvm::SelectionDAG::getNode(), getNoopInput(), getNumAllocatableRegsForConstraints(), llvm::slpvectorizer::BoUpSLP::getORE(), getShuffleComment(), llvm::ShuffleVectorInst::getShuffleMask(), getStatepointArgs(), llvm::object::ELFFile< ELFT >::getStringTable(), llvm::SelectionDAG::getVectorShuffle(), llvm::SelectionDAG::getVTList(), llvm::ConstantExpr::getWithOperands(), llvm::hash_value(), hasValueBeenRAUWed(), llvm::cl::HideUnrelatedOptions(), initialize(), llvm::CallGraphSCC::initialize(), llvm::RegPressureTracker::initLiveThru(), llvm::sroa::AllocaSlices::insert(), isAddSub(), llvm::isAllocaPromotable(), llvm::MCSubtargetInfo::isCPUStringValid(), isHorizontalBinOp(), llvm::LiveRange::isLiveAtIndexes(), llvm::LiveRange::isUndefIn(), lle_X_fprintf(), lle_X_printf(), Lookup(), llvm::Intrinsic::lookupLLVMIntrinsicByName(), llvm::X86CallLowering::lowerCall(), lowerV8I16GeneralSingleInputVectorShuffle(), lowerV8I16VectorShuffle(), LowerVECTOR_SHUFFLEv8i8(), lowerVectorShuffleAsElementInsertion(), llvm::lto::LTO::LTO(), llvm::object::MachOBindEntry::MachOBindEntry(), llvm::object::MachORebaseEntry::MachORebaseEntry(), llvm::codeview::CodeViewRecordIO::mapByteVectorTail(), matchBinaryPermuteVectorShuffle(), matchVectorShuffleAsInsertPS(), llvm::object::ExportEntry::moveNext(), llvm::object::MachORebaseEntry::moveNext(), llvm::object::MachOBindEntry::moveNext(), NarrowVector(), llvm::object::ExportEntry::nodeOffset(), llvm::OwningArrayRef< T >::OwningArrayRef(), llvm::opt::OptTable::ParseArgs(), llvm::object::WindowsResourceParser::printTree(), ProfileDagInit(), propagateMetadata(), llvm::BinaryStreamReader::readCString(), llvm::BinaryStreamReader::readFixedString(), readWideAPInt(), llvm::CatchSwitchInst::removeHandler(), llvm::MachineFunction::setCallSiteLandingPad(), llvm::MachineInstr::setPhysRegsDeadExcept(), shouldReorderOperands(), llvm::SimplifyCall(), llvm::toStringRef(), tryToVectorizeHorReductionOrInstOperands(), llvm::SelectionDAG::UpdateNodeOperands(), UpdatePHINodes(), llvm::codeview::VFTableRecord::VFTableRecord(), wrapConstantAsMetadata(), and writeToResolutionFile().

◆ copy()

template<typename T>
template<typename Allocator >
ArrayRef<T> llvm::ArrayRef< T >::copy ( Allocator A)
inline

Definition at line 164 of file ArrayRef.h.

Referenced by llvm::StructType::setBody().

◆ data()

template<typename T>
const T* llvm::ArrayRef< T >::data ( ) const
inline

Definition at line 146 of file ArrayRef.h.

Referenced by llvm::codeview::DebugChecksumsSubsection::addChecksum(), adjustDuplex(), llvm::ConstantFoldGetElementPtr(), llvm::ConstantFoldLoadFromConstPtr(), llvm::convertUTF16ToUTF8String(), llvm::MutableArrayRef< BitWord >::data(), decodeCRBitMOperand(), decodeSImmOperandAndLsl1(), llvm::codeview::TypeDeserializer::deserializeAs(), llvm::codeview::discoverTypeIndices(), discoverTypeIndices(), llvm::codeview::discoverTypeIndicesInSymbol(), dumpExpression(), dumpLocation(), eatBytes(), llvm::SimpleBitstreamCursor::fillCurWord(), llvm::symbolize::LLVMSymbolizer::flush(), llvm::ConstantDataArray::get(), llvm::ConstantDataVector::get(), llvm::codeview::getBytesAsCharacters(), llvm::lto::InputFile::getComdatTable(), getCStringLength(), getDigit(), getEncodedIntegerLength(), llvm::ConstantDataArray::getFP(), llvm::ConstantDataVector::getFP(), llvm::ConstantExpr::getGetElementPtr(), llvm::DenseMapInfo< ArrayRef< T > >::getHashValue(), llvm::object::COFFObjectFile::getHintName(), llvm::msf::MappedBlockStream::getLength(), llvm::codeview::TypeHasher::getOrCreateRecord(), llvm::SimpleBitstreamCursor::getPointerToByte(), llvm::object::WasmObjectFile::getSectionContents(), llvm::object::MachOObjectFile::getSectionFinalSegmentName(), llvm::object::COFFObjectFile::getSectionIndex(), llvm::object::MachOObjectFile::getSectionName(), llvm::MipsTargetLowering::HandleByVal(), handleFieldList(), handleMethodOverloadList(), handleOneMethod(), handlePointer(), llvm::pdb::hashBufferV8(), llvm::pdb::hashTypeRecord(), llvm::codeview::TypeSerializer::insertRecord(), llvm::codeview::TypeSerializer::insertRecordBytes(), llvm::DenseMapInfo< ArrayRef< T > >::isEqual(), isIdRecord(), llvm::Function::lookupIntrinsicID(), llvm::codeview::CodeViewRecordIO::mapGuid(), matchUnaryPermuteVectorShuffle(), llvm::object::MachORebaseEntry::operator==(), llvm::object::MachOBindEntry::operator==(), llvm::ARMAttributeParser::Parse(), llvm::ScopedPrinter::printBinary(), llvm::BinaryStreamReader::readArray(), llvm::BinaryStreamReader::readInteger(), llvm::BinaryStreamReader::readObject(), llvm::DWARFFormValue::setBlockValue(), llvm::BinaryByteStream::str(), llvm::codeview::CVRecord< TypeLeafKind >::str_data(), llvm::MD5::update(), llvm::object::WasmObjectFile::WasmObjectFile(), llvm::BinaryStreamWriter::writeArray(), llvm::yaml::BinaryRef::writeAsBinary(), llvm::yaml::BinaryRef::writeAsHex(), llvm::MutableBinaryByteStream::writeBytes(), and llvm::msf::WritableMappedBlockStream::writeBytes().

◆ drop_back()

template<typename T>
ArrayRef<T> llvm::ArrayRef< T >::drop_back ( size_t  N = 1) const
inline

Drop the last N elements of the array.

Definition at line 194 of file ArrayRef.h.

Referenced by getAllSGPRs().

◆ drop_front()

template<typename T>
ArrayRef<T> llvm::ArrayRef< T >::drop_front ( size_t  N = 1) const
inline

◆ drop_until()

template<typename T>
template<class PredicateT >
ArrayRef<T> llvm::ArrayRef< T >::drop_until ( PredicateT  Pred) const
inline

Return a copy of *this with the first N elements not satisfying the given predicate removed.

Definition at line 207 of file ArrayRef.h.

◆ drop_while()

template<typename T>
template<class PredicateT >
ArrayRef<T> llvm::ArrayRef< T >::drop_while ( PredicateT  Pred) const
inline

Return a copy of *this with the first N elements satisfying the given predicate removed.

Definition at line 201 of file ArrayRef.h.

◆ empty()

template<typename T>
bool llvm::ArrayRef< T >::empty ( ) const
inline

empty - Check if the array is empty.

Definition at line 144 of file ArrayRef.h.

Referenced by llvm::codeview::DebugChecksumsSubsection::addChecksum(), addData(), llvm::InnerLoopVectorizer::addMetadata(), llvm::AttributeListImpl::AttributeListImpl(), buildExtractionBlockSet(), buildFixItLine(), llvm::MachineIRBuilder::buildMerge(), llvm::MachineIRBuilder::buildSequence(), llvm::MachineIRBuilder::buildUnmerge(), llvm::LiveRangeCalc::calculateValues(), llvm::collectPGOFuncNameStrings(), combineX86ShuffleChain(), llvm::MDNodeOpsKey::compareOps(), computeExcessPressureDelta(), llvm::ConstantFoldExtractValueInstruction(), llvm::ConstantFoldGetElementPtr(), llvm::ConstantFoldInsertValueInstruction(), llvm::convertUTF16ToUTF8String(), llvm::StructType::create(), CreateGCRelocates(), llvm::lto::createWriteIndexesThinBackend(), CriticalPathStep(), llvm::SubMultiClassReference::dump(), llvm::AttributeListImpl::dump(), dumpRanges(), dwarfCCToCodeView(), llvm::WebAssemblyTargetAsmStreamer::emitGlobal(), llvm::WebAssemblyTargetAsmStreamer::emitLocal(), llvm::WebAssemblyTargetAsmStreamer::emitParam(), llvm::WebAssemblyTargetAsmStreamer::emitResult(), llvm::CodeViewContext::encodeInlineLineTable(), finalizeFpmBlockStatus(), llvm::FindInsertedValue(), llvm::symbolize::LLVMSymbolizer::flush(), FoldCONCAT_VECTORS(), llvm::ARMAsmBackendDarwin::generateCompactUnwindEncoding(), llvm::AttributeSetNode::get(), llvm::AttributeList::get(), llvm::ConstantArray::get(), llvm::ConstantStruct::get(), llvm::ConstantVector::get(), llvm::AMDGPUTTIImpl::getArithmeticInstrCost(), llvm::SubtargetFeatures::getFeatureBits(), getFPSequenceIfElementsMatch(), llvm::TargetTransformInfoImplCRTPBase< AMDGPUTTIImpl >::getGEPCost(), getIndexedTypeInternal(), getIntSequenceIfElementsMatch(), getOrSelfReference(), getParentPad(), llvm::HexagonInstrInfo::getPredReg(), llvm::InstrProfReaderIndex< HashTableImpl >::getRecords(), GetRMWLibcall(), llvm::BasicTTIImplBase< AMDGPUTTIImpl >::getScalarizationOverhead(), llvm::ShuffleVectorInst::getShuffleMask(), llvm::getShuffleReduction(), getSmrdOpcode(), llvm::object::ELFFile< ELFT >::getStringTable(), llvm::Intrinsic::getType(), llvm::ConstantStruct::getTypeForElements(), handleFieldList(), handleMethodOverloadList(), llvm::AttrBuilder::hasAttributes(), hasValueBeenRAUWed(), llvm::WebAssemblyInstrInfo::insertBranch(), llvm::BPFInstrInfo::insertBranch(), llvm::XCoreInstrInfo::insertBranch(), llvm::ARCInstrInfo::insertBranch(), llvm::NVPTXInstrInfo::insertBranch(), llvm::MipsInstrInfo::insertBranch(), llvm::SparcInstrInfo::insertBranch(), llvm::MSP430InstrInfo::insertBranch(), llvm::AVRInstrInfo::insertBranch(), llvm::HexagonInstrInfo::insertBranch(), llvm::ARMBaseInstrInfo::insertBranch(), llvm::LanaiInstrInfo::insertBranch(), llvm::R600InstrInfo::insertBranch(), llvm::PPCInstrInfo::insertBranch(), llvm::SystemZInstrInfo::insertBranch(), llvm::SIInstrInfo::insertBranch(), llvm::AArch64InstrInfo::insertBranch(), llvm::X86InstrInfo::insertBranch(), insertUseHolderAfter(), isImplicitOperandIn(), isInBoundsIndices(), isObjectStart(), isReInterleaveMask(), isSortedByValueNo(), isWeak(), llvm::coverage::CoverageMapping::load(), llvm::LoadAndStorePromoter::LoadAndStorePromoter(), llvm::AArch64TargetLowering::lowerInterleavedLoad(), llvm::ARMTargetLowering::lowerInterleavedLoad(), llvm::X86TargetLowering::lowerInterleavedLoad(), lowerV8I16GeneralSingleInputVectorShuffle(), llvm::GlobPattern::match(), llvm::fuzzerop::matchFirstType(), llvm::Intrinsic::matchIntrinsicType(), llvm::Intrinsic::matchIntrinsicVarArg(), llvm::fuzzerop::matchScalarOfFirstType(), llvm::object::ExportEntry::moveNext(), llvm::codeview::BinaryAnnotationIterator::operator*(), llvm::raw_ostream::operator<<(), llvm::operator<<(), llvm::yaml::operator==(), llvm::PassBuilder::parsePassPipeline(), llvm::HexagonInstrInfo::PredicateInstruction(), llvm::HexagonInstrInfo::predOpcodeHasNot(), llvm::PrintMessage(), llvm::PromoteMemToReg(), propagateMetadata(), pushDepHeight(), readTriple(), readWideAPInt(), resolveTypeIndexReferences(), llvm::SIRegisterInfo::restoreSGPR(), rotateSign(), llvm::lto::LTO::run(), llvm::MCJIT::runFunction(), llvm::orc::OrcMCJITReplacement::runFunction(), selectJumpTableArmEncoding(), llvm::StructType::setBody(), shouldInstrumentBlock(), shouldReorderOperands(), llvm::SIRegisterInfo::spillSGPR(), llvm::splitCodeGen(), llvm::to_hexString(), llvm::CodeViewYAML::toCodeViewSubsectionList(), truncateToSize(), llvm::HexagonInstrInfo::validateBranchCond(), llvm::BinaryStreamWriter::writeArray(), llvm::MutableBinaryByteStream::writeBytes(), and writeWithCommas().

◆ end()

template<typename T>
iterator llvm::ArrayRef< T >::end ( ) const
inline

Definition at line 138 of file ArrayRef.h.

Referenced by llvm::lto::LTO::add(), llvm::LandingPadInst::addClause(), llvm::SpillPlacement::addConstraints(), llvm::SelectionDAG::AddDbgValue(), llvm::SpillPlacement::addLinks(), llvm::AArch64FunctionInfo::addLOHDirective(), llvm::AttributeList::addParamAttribute(), llvm::SpillPlacement::addPrefSpill(), llvm::DebugLocEntry::addValues(), llvm::TargetLibraryInfoImpl::addVectorizableFunctions(), llvm::AttributeListImpl::AttributeListImpl(), buildFixItLine(), llvm::MachineIRBuilder::buildSequence(), BuildSubAggregate(), llvm::MDNodeOpsKey::calculateHash(), llvm::Interpreter::callFunction(), CC_MipsO32_FP64(), llvm::LiveIntervals::checkRegMaskInterference(), cloneConstantExprWithNewAddressSpace(), llvm::collectPGOFuncNameStrings(), combineShuffleOfSplat(), combineX86ShuffleChain(), combineX86ShufflesRecursively(), llvm::MDNodeOpsKey::compareOps(), llvm::ComputeLinearIndex(), llvm::concatenateVectors(), llvm::ConstantAggregate::ConstantAggregate(), llvm::ConstantFoldGetElementPtr(), llvm::ConvertCostTableLookup(), llvm::convertUTF16ToUTF8String(), llvm::GlobalObject::copyMetadata(), llvm::CostTableLookup(), llvm::DIBuilder::createExpression(), llvm::CallInst::CreateFree(), CreateGCRelocates(), llvm::createGreedyRegisterAllocator(), llvm::discoverAndMapSubloop(), llvm::Instruction::dropUnknownNonDebugMetadata(), llvm::DwarfAccelTable::Atom::dump(), llvm::AttributeSet::dump(), llvm::MCDwarfFrameEmitter::Emit(), llvm::FenceInst::FenceInst(), Find(), llvm::FindInsertedValue(), llvm::gep_type_end(), llvm::AttributeSetNode::get(), llvm::AttributeList::get(), llvm::ConstantArray::get(), llvm::BitsInit::get(), llvm::ListInit::get(), llvm::DagInit::get(), llvm::TargetTransformInfoImplCRTPBase< AMDGPUTTIImpl >::getGEPCost(), llvm::ConstantAggrKeyType< ConstantClass >::getHash(), llvm::ConstantExprKeyType::getHash(), llvm::MDNodeKeyImpl< DIExpression >::getHashValue(), llvm::MachineTraceMetrics::Ensemble::getLoopFor(), llvm::SelectionDAG::getNode(), getNoopInput(), getNumAllocatableRegsForConstraints(), llvm::slpvectorizer::BoUpSLP::getORE(), getRegLanes(), getShuffleComment(), llvm::ShuffleVectorInst::getShuffleMask(), getStatepointArgs(), llvm::SelectionDAG::getVectorShuffle(), llvm::SelectionDAG::getVTList(), llvm::ConstantExpr::getWithOperands(), llvm::hash_value(), hasValueBeenRAUWed(), llvm::cl::HideUnrelatedOptions(), initialize(), llvm::CallGraphSCC::initialize(), llvm::RegPressureTracker::initLiveThru(), llvm::sroa::AllocaSlices::insert(), isAddSub(), llvm::isAllocaPromotable(), llvm::MCSubtargetInfo::isCPUStringValid(), isEXTMask(), isHorizontalBinOp(), llvm::LiveRange::isLiveAtIndexes(), llvm::DataLayout::isNonIntegralPointerType(), llvm::LiveRange::isUndefIn(), lle_X_fprintf(), lle_X_printf(), Lookup(), llvm::Intrinsic::lookupLLVMIntrinsicByName(), llvm::X86CallLowering::lowerCall(), lowerV8I16GeneralSingleInputVectorShuffle(), lowerV8I16VectorShuffle(), LowerVECTOR_SHUFFLEv8i8(), lowerVectorShuffleAsElementInsertion(), llvm::lto::LTO::LTO(), llvm::object::MachOBindEntry::MachOBindEntry(), llvm::object::MachORebaseEntry::MachORebaseEntry(), llvm::codeview::CodeViewRecordIO::mapByteVectorTail(), matchBinaryPermuteVectorShuffle(), matchVectorShuffleAsInsertPS(), llvm::object::MachORebaseEntry::moveNext(), llvm::object::MachOBindEntry::moveNext(), llvm::object::ExportEntry::nodeOffset(), llvm::coverage::FunctionRecordIterator::operator++(), llvm::object::ExportEntry::operator==(), llvm::OwningArrayRef< T >::OwningArrayRef(), llvm::opt::OptTable::ParseArgs(), llvm::object::WindowsResourceParser::printTree(), ProfileDagInit(), propagateMetadata(), llvm::CatchSwitchInst::removeHandler(), llvm::MachineFunction::setCallSiteLandingPad(), llvm::MachineInstr::setPhysRegsDeadExcept(), shouldReorderOperands(), llvm::SimplifyCall(), tryToVectorizeHorReductionOrInstOperands(), llvm::SelectionDAG::UpdateNodeOperands(), UpdatePHINodes(), llvm::codeview::VFTableRecord::VFTableRecord(), wrapConstantAsMetadata(), and writeToResolutionFile().

◆ equals()

template<typename T>
bool llvm::ArrayRef< T >::equals ( ArrayRef< T RHS) const
inline

equals - Check for element-wise equality.

Definition at line 171 of file ArrayRef.h.

Referenced by llvm::operator==().

◆ front()

template<typename T>
const T& llvm::ArrayRef< T >::front ( ) const
inline

◆ operator std::vector< T >()

template<typename T>
llvm::ArrayRef< T >::operator std::vector< T > ( ) const
inline

Definition at line 271 of file ArrayRef.h.

◆ operator=() [1/2]

template<typename T>
template<typename U >
std::enable_if<std::is_same<U, T>::value, ArrayRef<T> >::type& llvm::ArrayRef< T >::operator= ( U &&  Temporary)
delete

Disallow accidental assignment from a temporary.

The declaration here is extra complicated so that "arrayRef = {}" continues to select the move assignment operator.

Referenced by llvm::OwningArrayRef< T >::operator=().

◆ operator=() [2/2]

template<typename T>
template<typename U >
std::enable_if<std::is_same<U, T>::value, ArrayRef<T> >::type& llvm::ArrayRef< T >::operator= ( std::initializer_list< U >  )
delete

Disallow accidental assignment from a temporary.

The declaration here is extra complicated so that "arrayRef = {}" continues to select the move assignment operator.

◆ operator[]()

template<typename T>
const T& llvm::ArrayRef< T >::operator[] ( size_t  Index) const
inline

Definition at line 240 of file ArrayRef.h.

◆ rbegin()

template<typename T>
reverse_iterator llvm::ArrayRef< T >::rbegin ( ) const
inline

Definition at line 140 of file ArrayRef.h.

Referenced by createRdxShuffleMask(), getNoopInput(), and llvm::ScheduleDAGMI::initQueues().

◆ rend()

template<typename T>
reverse_iterator llvm::ArrayRef< T >::rend ( ) const
inline

Definition at line 141 of file ArrayRef.h.

Referenced by createRdxShuffleMask(), getNoopInput(), and llvm::ScheduleDAGMI::initQueues().

◆ size()

template<typename T>
size_t llvm::ArrayRef< T >::size ( ) const
inline

size - Get the array size.

Definition at line 149 of file ArrayRef.h.

Referenced by llvm::MachineFunction::addCatchTypeInfo(), llvm::codeview::DebugChecksumsSubsection::addChecksum(), llvm::LandingPadInst::addClause(), addData(), llvm::pdb::DbiStreamBuilder::addDbgStream(), llvm::MachineFunction::addFilterTypeInfo(), llvm::InstCombineWorklist::AddInitialGroup(), addOperands(), llvm::msf::MSFBuilder::addStream(), AddThumb1SBit(), llvm::pdb::TpiStreamBuilder::addTypeRecord(), adjustDuplex(), adjustFixupValue(), llvm::CCState::AllocateReg(), llvm::CCState::AllocateRegBlock(), allocateSGPR32InputImpl(), llvm::CCState::AllocateStack(), allocateVGPR32Input(), allSameBlock(), allSameType(), alwaysAvailable(), llvm::MipsInstrInfo::analyzeBranch(), llvm::AVRAsmBackend::applyFixup(), llvm::ARMAsmBackend::applyFixup(), llvm::DomTreeBuilder::SemiNCAInfo< DomTreeT >::ApplyUpdates(), llvm::SimpleBitstreamCursor::AtEndOfStream(), llvm::yaml::BinaryRef::binary_size(), buildNew(), llvm::MachineIRBuilder::buildSequence(), llvm::Interpreter::callFunction(), llvm::canConstantFoldCallTo(), CanEvaluateShuffled(), llvm::PPCInstrInfo::canInsertSelect(), llvm::SystemZInstrInfo::canInsertSelect(), llvm::AArch64InstrInfo::canInsertSelect(), llvm::X86InstrInfo::canInsertSelect(), canLowerByDroppingEvenElements(), llvm::slpvectorizer::BoUpSLP::canMapToVector(), canonicalizeShuffleMaskWithCommute(), llvm::SimpleBitstreamCursor::canSkipToPos(), canWidenShuffleElements(), llvm::CC_ARM_AAPCS_Custom_Aggregate(), checkDecodedInstruction(), CheckForLiveRegDefMasked(), llvm::BitVector::clearBitsNotInMask(), llvm::UnOpInit::clone(), llvm::BinOpInit::clone(), llvm::TernOpInit::clone(), llvm::FunctionComparator::cmpOperations(), llvm::collectPGOFuncNameStrings(), combineShuffleOfSplat(), llvm::TargetLowering::DAGCombinerInfo::CombineTo(), combineX86ShuffleChain(), combineX86ShufflesConstants(), combineX86ShufflesRecursively(), llvm::ShuffleVectorSDNode::commuteMask(), llvm::MDNodeOpsKey::compareOps(), computeAddrMap(), llvm::ComputeEditDistance(), computeExcessPressureDelta(), computeMaxPressureDelta(), computeZeroableShuffleElements(), llvm::concatenateVectors(), llvm::ConstantAggregate::ConstantAggregate(), llvm::ConstantFoldGetElementPtr(), llvm::ConstantFoldLoadFromConstPtr(), llvm::detail::IEEEFloat::convert(), llvm::TypedInit::convertInitializerBitRange(), llvm::BitsInit::convertInitializerBitRange(), llvm::IntInit::convertInitializerBitRange(), llvm::TypedInit::convertInitListSlice(), llvm::ListInit::convertInitListSlice(), llvm::detail::IEEEFloat::convertToInteger(), convertToString(), llvm::convertUTF16ToUTF8String(), llvm::GlobalObject::copyMetadata(), llvm::SIInstrInfo::copyPhysReg(), llvm::AArch64InstrInfo::copyPhysRegTuple(), llvm::GetElementPtrConstantExpr::Create(), llvm::ConstantAggrKeyType< ConstantClass >::create(), llvm::GetElementPtrInst::Create(), llvm::CallInst::Create(), llvm::InvokeInst::Create(), llvm::CleanupPadInst::Create(), llvm::CatchPadInst::Create(), llvm::MDBuilder::createBranchWeights(), llvm::CallInst::CreateFree(), CreateGCRelocates(), llvm::IRBuilder< TargetFolder >::CreateGEP(), llvm::createGreedyRegisterAllocator(), llvm::IRBuilder< TargetFolder >::CreateInBoundsGEP(), createIndexMap(), createPHIsForSplitLoopExit(), llvm::createSanitizerCtorAndInitFunctions(), createTargetShuffleMask(), llvm::MDBuilder::createTBAAStructNode(), CriticalPathStep(), decodeBDVAddr64Disp12Operand(), decodeCRBitMOperand(), DecodeIITType(), DecodeLdRLImmInstruction(), llvm::AMDGPUDisassembler::decodeLiteralConstant(), llvm::DecodePSHUFBMask(), DecodeRegisterClass(), decodeSImmOperandAndLsl1(), llvm::DecodeVPERMIL2PMask(), llvm::DecodeVPERMILPMask(), llvm::DecodeVPERMV3Mask(), llvm::DecodeVPERMVMask(), llvm::DecodeVPPERMMask(), llvm::object::Decompressor::decompress(), llvm::GCNIterativeScheduler::detachSchedule(), llvm::SubMultiClassReference::dump(), llvm::AttributeListImpl::dump(), llvm::AttributeSet::dump(), dumpExpression(), dumpLocation(), llvm::dumpRegSetPressure(), dwarfCCToCodeView(), eatBytes(), llvm::LiveRangeEdit::eliminateDeadDefs(), EltsFromConsecutiveLoads(), llvm::MCDwarfLineTableHeader::Emit(), llvm::BitstreamWriter::emitBlob(), llvm::WebAssemblyTargetELFStreamer::emitLocal(), llvm::BitstreamWriter::ExitBlock(), extractBitsForFixup(), llvm::FenceInst::FenceInst(), llvm::SimpleBitstreamCursor::fillCurWord(), llvm::FindInsertedValue(), findLiveReferences(), llvm::wholeprogramdevirt::findLowestOffset(), llvm::symbolize::LLVMSymbolizer::flush(), FoldCONCAT_VECTORS(), llvm::SystemZInstrInfo::foldMemoryOperandImpl(), llvm::AArch64InstrInfo::foldMemoryOperandImpl(), llvm::codeview::detail::GuidAdapter::format(), FunctionNumber(), llvm::ARMAsmBackendDarwin::generateCompactUnwindEncoding(), genShuffleBland(), llvm::FunctionType::get(), llvm::AttributeList::get(), llvm::ConstantArray::get(), llvm::ConstantStruct::get(), llvm::BitsInit::get(), llvm::ConstantVector::get(), llvm::ListInit::get(), llvm::ConstantDataArray::get(), llvm::ConstantDataVector::get(), llvm::DagInit::get(), getAllSGPRs(), llvm::X86TTIImpl::getArithmeticInstrCost(), llvm::SystemZTTIImpl::getArithmeticInstrCost(), llvm::BitVector::getBitCapacity(), llvm::getBitcodeFileContents(), llvm::codeview::getBytesAsCharacters(), llvm::TargetTransformInfoImplCRTPBase< AMDGPUTTIImpl >::getCallCost(), llvm::irsymtab::Reader::getComdatTable(), getConstVector(), getDigit(), llvm::DIExpression::getElement(), llvm::object::getExtendedSymbolTableIndex(), llvm::CCState::getFirstUnallocated(), getFixupKindLog2Size(), llvm::ConstantDataArray::getFP(), llvm::ConstantDataVector::getFP(), llvm::TargetTransformInfoImplBase::getGEPCost(), llvm::ConstantExpr::getGetElementPtr(), llvm::object::COFFObjectFile::getHintName(), getIndexedTypeInternal(), llvm::IndexedInstrProfReader::getInstrProfRecord(), llvm::AArch64Disassembler::getInstruction(), llvm::AMDGPUDisassembler::getInstruction(), llvm::SystemZTTIImpl::getInterleavedMemoryOpCost(), llvm::BasicTTIImplBase< AMDGPUTTIImpl >::getInterleavedMemoryOpCost(), llvm::X86TTIImpl::getInterleavedMemoryOpCostAVX2(), llvm::X86TTIImpl::getInterleavedMemoryOpCostAVX512(), llvm::TargetTransformInfoImplCRTPBase< AMDGPUTTIImpl >::getIntrinsicCost(), llvm::Intrinsic::getIntrinsicInfoTableEntries(), llvm::BasicTTIImplBase< AMDGPUTTIImpl >::getIntrinsicInstrCost(), llvm::BinaryByteStream::getLength(), llvm::msf::MappedBlockStream::getLength(), getMainOpcode(), llvm::IntegerType::getMask(), llvm::SelectionDAG::getMaskedGather(), llvm::SelectionDAG::getMaskedScatter(), llvm::BitVector::getMemorySize(), llvm::SelectionDAG::getMergeValues(), llvm::SourceMgr::GetMessage(), llvm::SelectionDAG::getNode(), llvm::DOTGraphTraits< BoUpSLP * >::getNodeAttributes(), getNoopInput(), getNumAllocatableRegsForConstraints(), llvm::DIExpression::getNumElements(), llvm::irsymtab::Reader::getNumModules(), llvm::opt::OptTable::getNumOptions(), llvm::ConstantExpr::getOpcodeName(), llvm::codeview::TypeHasher::getOrCreateRecord(), llvm::DIBuilder::getOrCreateTypeArray(), llvm::slpvectorizer::BoUpSLP::getORE(), getOrSelfReference(), llvm::AArch64TTIImpl::getPopcntSupport(), llvm::HexagonInstrInfo::getPredReg(), llvm::MachineTraceMetrics::Trace::getResourceDepth(), llvm::MachineTraceMetrics::Trace::getResourceLength(), GetRMWLibcall(), getSameOpcode(), llvm::object::WasmObjectFile::getSectionContents(), llvm::object::COFFObjectFile::getSectionIndex(), llvm::object::WasmObjectFile::getSectionSize(), llvm::object::ELFFile< ELFT >::getSHNDXTable(), getSmrdOpcode(), getStatepointArgs(), llvm::object::ELFFile< ELFT >::getStringTable(), llvm::slpvectorizer::BoUpSLP::getTreeCost(), llvm::ConstantStruct::getTypeForElements(), llvm::RegPressureTracker::getUpwardPressureDelta(), getV4X86ShuffleImm(), llvm::SelectionDAG::getVectorShuffle(), llvm::SelectionDAG::getVTList(), llvm::ConstantExpr::getWithOperands(), group2Shuffle(), llvm::CallLowering::handleAssignments(), llvm::MipsTargetLowering::HandleByVal(), llvm::pdb::hashBufferV8(), llvm::pdb::hashTypeRecord(), hasOutsideLoopUser(), llvm::hasUTF16ByteOrderMark(), hasUTF8ByteOrderMark(), hasValueBeenRAUWed(), llvm::InterferenceCache::init(), llvm::WebAssemblyInstrInfo::insertBranch(), llvm::XCoreInstrInfo::insertBranch(), llvm::ARCInstrInfo::insertBranch(), llvm::NVPTXInstrInfo::insertBranch(), llvm::MipsInstrInfo::insertBranch(), llvm::SparcInstrInfo::insertBranch(), llvm::MSP430InstrInfo::insertBranch(), llvm::AVRInstrInfo::insertBranch(), llvm::HexagonInstrInfo::insertBranch(), llvm::ARMBaseInstrInfo::insertBranch(), llvm::LanaiInstrInfo::insertBranch(), llvm::PPCInstrInfo::insertBranch(), llvm::SystemZInstrInfo::insertBranch(), llvm::SIInstrInfo::insertBranch(), llvm::X86InstrInfo::insertBranch(), llvm::codeview::TypeSerializer::insertRecord(), llvm::codeview::TypeSerializer::insertRecordBytes(), llvm::PPCInstrInfo::insertSelect(), llvm::SystemZInstrInfo::insertSelect(), llvm::AArch64InstrInfo::insertSelect(), llvm::X86InstrInfo::insertSelect(), llvm::SIInstrInfo::insertVectorSelect(), instrumentMaskedLoadOrStore(), llvm::msf::MappedBlockStream::invalidateCache(), is128BitLaneCrossingShuffleMask(), isACalleeSavedRegister(), isAlternateVectorMask(), isCanonical(), isDeInterleaveMask(), isDeInterleaveMaskOfFactor(), llvm::X86TargetLowering::isDesirableToCombineBuildVectorToShuffleTruncate(), isIdentifierChar(), isIdRecord(), isImplicitOperandIn(), isInBoundsIndices(), isINSMask(), llvm::isLegalToPromote(), isLocalCopy(), isNonZeroElementsInOrder(), isNoopShuffleMask(), isObjectStart(), isPreferredADD(), isReInterleaveMask(), isRepeatedShuffleMask(), isRepeatedTargetShuffleMask(), isReverseMask(), isReverseVectorMask(), isShuffle(), isShuffleEquivalent(), isShuffleMaskInputInPlace(), isSingleSHUFPSMask(), isSingleSourceVectorMask(), isSortedByValueNo(), isSplat(), isStridedLoad(), isSwitchDense(), isTargetShuffleEquivalent(), llvm::SelectionDAG::isUndef(), isValidEncoding(), isVTBLMask(), isVTRN_v_undef_Mask(), isVTRNMask(), isVUZP_v_undef_Mask(), isVUZPMask(), isVZIP_v_undef_Mask(), isVZIPMask(), isZeroEltBroadcastVectorMask(), llvm::DomTreeBuilder::SemiNCAInfo< DomTreeT >::LegalizeUpdates(), llvm::BinaryItemTraits< codeview::CVSymbol >::length(), llvm::codeview::CVRecord< TypeLeafKind >::length(), lle_X_atexit(), lle_X_fprintf(), lle_X_scanf(), lle_X_sscanf(), LLVMInitializeHexagonDisassembler(), llvm::coverage::CoverageMapping::load(), lookupFunction(), lower512BitVectorShuffle(), llvm::AArch64TargetLowering::lowerInterleavedLoad(), llvm::ARMTargetLowering::lowerInterleavedLoad(), llvm::X86TargetLowering::lowerInterleavedLoad(), lowerV16F32VectorShuffle(), lowerV16I16VectorShuffle(), lowerV16I32VectorShuffle(), lowerV16I8VectorShuffle(), lowerV2F64VectorShuffle(), lowerV2I64VectorShuffle(), lowerV32I16VectorShuffle(), lowerV32I8VectorShuffle(), lowerV4F32VectorShuffle(), lowerV4F64VectorShuffle(), lowerV4I32VectorShuffle(), lowerV4I64VectorShuffle(), lowerV64I8VectorShuffle(), lowerV8F32VectorShuffle(), lowerV8F64VectorShuffle(), lowerV8I16GeneralSingleInputVectorShuffle(), lowerV8I16VectorShuffle(), lowerV8I32VectorShuffle(), lowerV8I64VectorShuffle(), llvm::HexagonTargetLowering::LowerVECTOR_SHUFFLE(), lowerVectorShuffleAsBitBlend(), lowerVectorShuffleAsBitMask(), lowerVectorShuffleAsBlendAndPermute(), lowerVectorShuffleAsBlendOfPSHUFBs(), lowerVectorShuffleAsBroadcast(), lowerVectorShuffleAsByteRotate(), lowerVectorShuffleAsDecomposedShuffleBlend(), lowerVectorShuffleAsElementInsertion(), lowerVectorShuffleAsLanePermuteAndBlend(), lowerVectorShuffleAsPermuteAndUnpack(), lowerVectorShuffleAsShift(), lowerVectorShuffleAsSpecificZeroOrAnyExtend(), lowerVectorShuffleAsSplitOrBlend(), lowerVectorShuffleAsZeroOrAnyExtend(), lowerVectorShuffleByMerging128BitLanes(), lowerVectorShuffleWithPSHUFB(), llvm::TargetLowering::makeLibCall(), matchBinaryPermuteVectorShuffle(), llvm::Intrinsic::matchIntrinsicVarArg(), matchUnaryPermuteVectorShuffle(), matchUnaryVectorShuffle(), matchVectorShuffleAsBlend(), matchVectorShuffleAsEXTRQ(), matchVectorShuffleAsInsertPS(), matchVectorShuffleAsINSERTQ(), matchVectorShuffleAsRotate(), matchVectorShuffleAsShift(), llvm::SIInstrInfo::materializeImmediate(), multikeySort(), llvm::AllocationOrder::next(), llvm::ConstantAggrKeyType< ConstantClass >::operator==(), llvm::ConstantExprKeyType::operator==(), llvm::ARMAttributeParser::Parse(), llvm::opt::OptTable::ParseArgs(), parseCond(), llvm::MetadataLoader::MetadataLoaderImpl::parseMetadata(), parsePhysicalReg(), llvm::AsmLexer::peekTokens(), llvm::SystemZInstrInfo::PredicateInstruction(), llvm::ScopedPrinter::printBinary(), llvm::PrintMessage(), llvm::object::WindowsResourceParser::printTree(), ProcessSDDbgValues(), processShaderInputArgs(), ProfileBitsInit(), ProfileListInit(), llvm::propagateMetadata(), propagateMetadata(), pushDepHeight(), llvm::BinaryStreamReader::readCString(), llvm::BinaryStreamReader::readFixedString(), readInstruction16(), readInstruction32(), readInstruction64(), llvm::BinaryStreamReader::readLongestContiguousChunk(), llvm::BinaryStreamRef::readLongestContiguousChunk(), llvm::IndexedInstrProfReader::readNextRecord(), readTriple(), readWideAPInt(), recomputeLiveInValues(), regionReader(), relocationViaAlloca(), llvm::AArch64InstrInfo::removeBranch(), llvm::CatchSwitchInst::removeHandler(), llvm::BitVector::resize(), llvm::SIRegisterInfo::restoreSGPR(), rotateSign(), llvm::WholeProgramDevirtPass::run(), llvm::Interpreter::runFunction(), llvm::MCJIT::runFunction(), llvm::orc::OrcMCJITReplacement::runFunction(), llvm::RegisterClassInfo::runOnMachineFunction(), llvm::scaleShuffleMask(), selectJumpTableArmEncoding(), SelectPairHalf(), llvm::DWARFFormValue::setBlockValue(), llvm::StructType::setBody(), setSummary(), shouldInstrumentBlock(), shouldReorderOperands(), SimplifyExtractValueInst(), SimplifyGEPInst(), llvm::SimpleBitstreamCursor::skipToEnd(), llvm::SIRegisterInfo::spillSGPR(), splitAndLowerVectorShuffle(), llvm::SplitBlockPredecessors(), llvm::splitCodeGen(), llvm::SplitLandingPadPredecessors(), llvm::BinaryByteStream::str(), llvm::codeview::CVRecord< TypeLeafKind >::str_data(), llvm::ARMBaseInstrInfo::SubsumesPredicate(), llvm::PPCInstrInfo::SubsumesPredicate(), llvm::to_hexString(), llvm::toStringRef(), unifyReturnBlockSet(), llvm::MD5::update(), llvm::MachineTraceMetrics::Ensemble::updateDepths(), llvm::SelectionDAG::UpdateNodeOperands(), UpdatePHINodes(), llvm::HexagonInstrInfo::validateBranchCond(), llvm::codeview::TypeRecordMapping::visitMemberEnd(), llvm::codeview::TypeDumpVisitor::visitUnknownType(), llvm::object::WasmObjectFile::WasmObjectFile(), llvm::object::WindowsResourceCOFFWriter::WindowsResourceCOFFWriter(), wrapConstantAsMetadata(), llvm::coverage::CoverageFilenamesSectionWriter::write(), llvm::object::WindowsResourceCOFFWriter::write(), llvm::BinaryStreamWriter::writeArray(), llvm::yaml::BinaryRef::writeAsBinary(), llvm::yaml::BinaryRef::writeAsHex(), llvm::BinaryStreamWriter::writeBytes(), llvm::MutableBinaryByteStream::writeBytes(), llvm::msf::WritableMappedBlockStream::writeBytes(), llvm::WritableBinaryStreamRef::writeBytes(), writeWithCommas(), and llvm::LiveDebugVariables::~LiveDebugVariables().

◆ slice() [1/2]

template<typename T>
ArrayRef<T> llvm::ArrayRef< T >::slice ( size_t  N,
size_t  M 
) const
inline

◆ slice() [2/2]

template<typename T>
ArrayRef<T> llvm::ArrayRef< T >::slice ( size_t  N) const
inline

slice(n) - Chop off the first N elements of the array.

Definition at line 185 of file ArrayRef.h.

Referenced by llvm::ArrayRef< llvm::irsymtab::storage::Comdat >::slice().

◆ take_back()

template<typename T>
ArrayRef<T> llvm::ArrayRef< T >::take_back ( size_t  N = 1) const
inline

Return a copy of *this with only the last N elements.

Definition at line 219 of file ArrayRef.h.

◆ take_front()

template<typename T>
ArrayRef<T> llvm::ArrayRef< T >::take_front ( size_t  N = 1) const
inline

Return a copy of *this with only the first N elements.

Definition at line 212 of file ArrayRef.h.

Referenced by llvm::AttributeList::get(), llvm::BinaryItemStream< T, Traits >::readBytes(), and writeWithCommas().

◆ take_until()

template<typename T>
template<class PredicateT >
ArrayRef<T> llvm::ArrayRef< T >::take_until ( PredicateT  Pred) const
inline

Return the first N elements of this Array that don't satisfy the given predicate.

Definition at line 233 of file ArrayRef.h.

◆ take_while()

template<typename T>
template<class PredicateT >
ArrayRef<T> llvm::ArrayRef< T >::take_while ( PredicateT  Pred) const
inline

Return the first N elements of this Array that satisfy the given predicate.

Definition at line 227 of file ArrayRef.h.

◆ vec()

template<typename T>
std::vector<T> llvm::ArrayRef< T >::vec ( ) const
inline

Definition at line 264 of file ArrayRef.h.


The documentation for this class was generated from the following files: