LLVM  9.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 > >::typeoperator= (U &&Temporary)=delete
 Disallow accidental assignment from a temporary. More...
 
template<typename U >
std::enable_if< std::is_same< U, T >::value, ArrayRef< T > >::typeoperator= (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 32 of file APInt.h.

Member Typedef Documentation

◆ const_iterator

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

Definition at line 44 of file ArrayRef.h.

◆ iterator

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

Definition at line 43 of file ArrayRef.h.

◆ reverse_iterator

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

Definition at line 46 of file ArrayRef.h.

◆ size_type

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

Definition at line 45 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 63 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 66 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 70 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 74 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 81 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 87 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 92 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 97 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 100 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 107 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 117 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 127 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 136 of file ArrayRef.h.

Referenced by llvm::lto::LTO::add(), llvm::SpillPlacement::addConstraints(), llvm::SpillPlacement::addLinks(), llvm::AArch64FunctionInfo::addLOHDirective(), llvm::AttributeList::addParamAttribute(), llvm::SpillPlacement::addPrefSpill(), llvm::DebugLocEntry::addValues(), llvm::TargetLibraryInfoImpl::addVectorizableFunctions(), alwaysAvailable(), AnyAliasLiveIn(), llvm::DIExpression::append(), llvm::DIExpression::appendToStack(), llvm::mca::SourceMgr::begin(), llvm::MachineIRBuilder::buildBuildVector(), llvm::MachineIRBuilder::buildBuildVectorTrunc(), llvm::MachineIRBuilder::buildConcatVectors(), buildFixItLine(), llvm::MachineIRBuilder::buildInstr(), llvm::MachineIRBuilder::buildMerge(), buildPartialUnswitchConditionalBranch(), llvm::MachineIRBuilder::buildSequence(), BuildSubAggregate(), llvm::MachineIRBuilder::buildUnmerge(), llvm::MDNodeOpsKey::calculateHash(), llvm::Interpreter::callFunction(), canWidenShuffleElements(), llvm::LiveIntervals::checkRegMaskInterference(), llvm::UnOpInit::clone(), cloneConstantExprWithNewAddressSpace(), llvm::collectPGOFuncNameStrings(), combineX86ShuffleChain(), combineX86ShufflesRecursively(), llvm::MDNodeOpsKey::compareOps(), llvm::ComputeLinearIndex(), llvm::concatenateVectors(), llvm::ConstantFoldGetElementPtr(), llvm::convertUTF16ToUTF8String(), llvm::GlobalObject::copyMetadata(), llvm::DIBuilder::createExpression(), CreateGCRelocates(), llvm::DeleteDeadBlocks(), llvm::discoverAndMapSubloop(), llvm::Instruction::dropUnknownNonDebugMetadata(), llvm::MCDwarfFrameEmitter::Emit(), llvm::ArrayRef< llvm::irsymtab::storage::Comdat >::equals(), llvm::AccelTableBase::finalize(), Find(), llvm::FindInsertedValue(), findMatchingInlineAsmOperand(), llvm::ScalarEvolution::forgetValue(), llvm::gep_type_begin(), llvm::AttributeSetNode::get(), llvm::RecordRecTy::get(), llvm::AttributeList::get(), llvm::ConstantArray::get(), llvm::BitsInit::get(), llvm::ListInit::get(), llvm::CondOpInit::get(), llvm::VarDefInit::get(), llvm::DagInit::get(), llvm::ScalarEvolution::getAddExpr(), getFauxShuffleMask(), llvm::getFMA3Group(), llvm::TargetTransformInfoImplCRTPBase< AMDGPUTTIImpl >::getGEPCost(), llvm::ConstantAggrKeyType< ConstantClass >::getHash(), llvm::ConstantExprKeyType::getHash(), llvm::MDNodeKeyImpl< DIExpression >::getHashValue(), llvm::InvokeInst::getLandingPadInst(), llvm::SelectionDAG::getNode(), getNoopInput(), getNumAllocatableRegsForConstraints(), getOffsetFromIndices(), llvm::slpvectorizer::BoUpSLP::getORE(), getShuffleComment(), getStatepointArgs(), llvm::object::ELFFile< ELFT >::getStringTable(), llvm::SelectionDAG::getVectorShuffle(), llvm::ConstantExpr::getWithOperands(), llvm::hash_value(), hasValueBeenRAUWed(), llvm::cl::HideUnrelatedOptions(), initialize(), llvm::CallGraphSCC::initialize(), llvm::RegPressureTracker::initLiveThru(), llvm::AppendingBinaryByteStream::insert(), llvm::sroa::AllocaSlices::insert(), llvm::isAllocaPromotable(), llvm::ShuffleVectorInst::isConcat(), llvm::MCSubtargetInfo::isCPUStringValid(), llvm::LiveRange::isLiveAtIndexes(), isSortedByValueNo(), llvm::LiveRange::isUndefIn(), lle_X_fprintf(), lle_X_printf(), Lookup(), lookupFoldTableImpl(), llvm::Intrinsic::lookupLLVMIntrinsicByName(), llvm::X86CallLowering::lowerCall(), lowerShuffleAsElementInsertion(), lowerShuffleOfExtractsAsVperm(), lowerV8I16GeneralSingleInputShuffle(), lowerV8I16Shuffle(), LowerVECTOR_SHUFFLEv8i8(), llvm::lto::LTO::LTO(), llvm::object::MachOBindEntry::MachOBindEntry(), llvm::object::MachORebaseEntry::MachORebaseEntry(), llvm::makePostTransformationMetadata(), llvm::codeview::CodeViewRecordIO::mapByteVectorTail(), matchBinaryPermuteShuffle(), matchShuffleAsInsertPS(), 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(), parseWholeProgramDevirtResolutionByArg(), performCustomAdjustments(), ProfileCondOpInit(), ProfileDagInit(), propagateMetadata(), llvm::BinaryStreamReader::readCString(), llvm::BinaryStreamReader::readFixedString(), readWideAPInt(), replaceShuffleOfInsert(), llvm::MachineFunction::setCallSiteLandingPad(), llvm::MachineInstr::setPhysRegsDeadExcept(), shouldReorderOperands(), llvm::SimplifyCall(), llvm::TargetLowering::SimplifyDemandedVectorElts(), llvm::TGLexer::TGLexer(), llvm::toStringRef(), tryToVectorizeHorReductionOrInstOperands(), llvm::SelectionDAG::UpdateNodeOperands(), UpdatePHINodes(), llvm::codeview::VFTableRecord::VFTableRecord(), llvm::MemorySSAUpdater::wireOldPredecessorsToNewImmediatePredecessor(), wrapConstantAsMetadata(), and writeToResolutionFile().

◆ copy()

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

Definition at line 163 of file ArrayRef.h.

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

◆ data()

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

Definition at line 145 of file ArrayRef.h.

Referenced by llvm::codeview::DebugChecksumsSubsection::addChecksum(), adjustDuplex(), llvm::ConstantFoldGetElementPtr(), llvm::ConstantFoldLoadFromConstPtr(), llvm::convertUTF16ToUTF8String(), llvm::MutableArrayRef< BitWord >::data(), decodeCRBitMOperand(), decodeFRMArg(), llvm::codeview::TypeDeserializer::deserializeAs(), llvm::codeview::discoverTypeIndices(), discoverTypeIndices(), llvm::codeview::discoverTypeIndicesInSymbol(), dumpExpression(), dumpLocation(), llvm::object::ELFFile< ELFT >::dynamicEntries(), eatBytes(), llvm::SimpleBitstreamCursor::fillCurWord(), llvm::symbolize::LLVMSymbolizer::flush(), llvm::codeview::forEachCodeViewRecord(), llvm::ConstantDataVector::get(), llvm::codeview::getBytesAsCharacters(), llvm::lto::InputFile::getComdatTable(), getCondCode(), getCStringLength(), getDecoderTable(), 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::SimpleBitstreamCursor::getPointerToByte(), llvm::object::WasmObjectFile::getSectionContents(), llvm::object::MachOObjectFile::getSectionFinalSegmentName(), llvm::object::COFFObjectFile::getSectionIndex(), llvm::object::MachOObjectFile::getSectionName(), llvm::codeview::AppendingTypeTableBuilder::getType(), llvm::codeview::MergingTypeTableBuilder::getType(), llvm::codeview::GlobalTypeTableBuilder::getType(), llvm::codeview::GloballyHashedType::GloballyHashedType(), llvm::MipsTargetLowering::HandleByVal(), handleFieldList(), handleMethodOverloadList(), handleOneMethod(), handlePointer(), llvm::pdb::hashBufferV8(), llvm::pdb::hashTypeRecord(), llvm::codeview::AppendingTypeTableBuilder::insertRecordBytes(), llvm::codeview::GlobalTypeTableBuilder::insertRecordBytes(), llvm::DenseMapInfo< ArrayRef< T > >::isEqual(), llvm::Function::lookupIntrinsicID(), llvm::codeview::CodeViewRecordIO::mapGuid(), matchUnaryPermuteShuffle(), nextLEB(), llvm::object::MachORebaseEntry::operator==(), llvm::object::MachOBindEntry::operator==(), llvm::ARMAttributeParser::Parse(), parseImmediate(), 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::BinaryStreamWriter::writeArray(), llvm::yaml::BinaryRef::writeAsBinary(), llvm::yaml::BinaryRef::writeAsHex(), llvm::MutableBinaryByteStream::writeBytes(), llvm::msf::WritableMappedBlockStream::writeBytes(), llvm::AppendingBinaryByteStream::writeBytes(), and llvm::xxHash64().

◆ 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 193 of file ArrayRef.h.

Referenced by llvm::DIExpression::appendToStack(), EltsFromConsecutiveLoads(), getAllSGPRs(), and llvm::Record::getDirectSuperClasses().

◆ 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 206 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 200 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 143 of file ArrayRef.h.

Referenced by llvm::codeview::DebugChecksumsSubsection::addChecksum(), addData(), llvm::vfs::YAMLVFSWriter::addFileMapping(), llvm::pdb::DbiModuleDescriptorBuilder::addSymbolsInBulk(), llvm::DIExpression::append(), llvm::DIExpression::appendToStack(), argsAreStructReturn(), llvm::AttributeListImpl::AttributeListImpl(), buildExtractionBlockSet(), buildFixItLine(), llvm::VPlanSlp::buildGraph(), llvm::MachineIRBuilder::buildInstr(), llvm::MachineIRBuilder::buildSequence(), callIsStructReturn(), llvm::MachineInstr::cloneMergedMemRefs(), llvm::collectPGOFuncNameStrings(), combineX86ShuffleChain(), llvm::MDNodeOpsKey::compareOps(), computeExcessPressureDelta(), llvm::ConstantFoldExtractValueInstruction(), llvm::ConstantFoldGetElementPtr(), llvm::ConstantFoldInsertValueInstruction(), llvm::convertUTF16ToUTF8String(), llvm::StructType::create(), CreateGCRelocates(), CriticalPathStep(), llvm::mca::RegisterFile::cycleStart(), llvm::AttributeListImpl::dump(), llvm::object::ELFFile< ELFT >::dynamicEntries(), llvm::WebAssemblyTargetAsmStreamer::emitLocal(), llvm::CodeViewContext::encodeInlineLineTable(), findCalledFunction(), llvm::FindInsertedValue(), llvm::symbolize::LLVMSymbolizer::flush(), FoldCONCAT_VECTORS(), llvm::codeview::forEachCodeViewRecord(), llvm::ARMAsmBackendDarwin::generateCompactUnwindEncoding(), llvm::AttributeSetNode::get(), llvm::RecordRecTy::get(), llvm::AttributeList::get(), llvm::ConstantArray::get(), llvm::ConstantStruct::get(), llvm::ConstantVector::get(), llvm::ListInit::get(), llvm::GCNTTIImpl::getArithmeticInstrCost(), getBuildDwordsVector(), getChainID(), llvm::Record::getDirectSuperClasses(), llvm::SubtargetFeatures::getFeatureBits(), llvm::MCSchedModel::getForwardingDelayCycles(), getFPSequenceIfElementsMatch(), llvm::TargetTransformInfoImplCRTPBase< AMDGPUTTIImpl >::getGEPCost(), getIndexedTypeInternal(), getIntSequenceIfElementsMatch(), llvm::getOrderedReduction(), getOrSelfReference(), getParentPad(), llvm::HexagonInstrInfo::getPredReg(), llvm::InstrProfReaderIndex< HashTableImpl >::getRecords(), GetRMWLibcall(), llvm::BasicTTIImplBase< AMDGPUTTIImpl >::getScalarizationOverhead(), llvm::getShuffleReduction(), llvm::object::ELFFile< ELFT >::getStringTable(), llvm::codeview::GlobalTypeTableBuilder::getType(), llvm::Intrinsic::getType(), llvm::ConstantStruct::getTypeForElements(), handleFieldList(), handleMethodOverloadList(), llvm::AttrBuilder::hasAttributes(), llvm::WebAssemblyInstrInfo::insertBranch(), llvm::BPFInstrInfo::insertBranch(), llvm::XCoreInstrInfo::insertBranch(), llvm::ARCInstrInfo::insertBranch(), llvm::RISCVInstrInfo::insertBranch(), llvm::NVPTXInstrInfo::insertBranch(), llvm::MSP430InstrInfo::insertBranch(), llvm::MipsInstrInfo::insertBranch(), llvm::SparcInstrInfo::insertBranch(), llvm::AVRInstrInfo::insertBranch(), llvm::HexagonInstrInfo::insertBranch(), llvm::LanaiInstrInfo::insertBranch(), llvm::ARMBaseInstrInfo::insertBranch(), llvm::AArch64InstrInfo::insertBranch(), llvm::R600InstrInfo::insertBranch(), llvm::SystemZInstrInfo::insertBranch(), llvm::SIInstrInfo::insertBranch(), llvm::PPCInstrInfo::insertBranch(), llvm::X86InstrInfo::insertBranch(), insertLifetimeMarkersSurroundingCall(), llvm::codeview::GlobalTypeTableBuilder::insertRecordAs(), insertUseHolderAfter(), llvm::xray::Profile::internPath(), llvm::ShuffleVectorInst::isConcat(), isImplicitOperandIn(), isInBoundsIndices(), IsInterestingCmp(), isReInterleaveMask(), isSingleSourceMaskImpl(), isSortedByValueNo(), isWeak(), llvm::LegalizerHelper::legalizeInstrStep(), llvm::coverage::LineCoverageStats::LineCoverageStats(), llvm::coverage::CoverageMapping::load(), llvm::LoadAndStorePromoter::LoadAndStorePromoter(), llvm::X86InstrInfo::loadRegFromAddr(), llvm::AArch64TargetLowering::lowerInterleavedLoad(), llvm::ARMTargetLowering::lowerInterleavedLoad(), llvm::X86TargetLowering::lowerInterleavedLoad(), llvm::X86CallLowering::lowerReturn(), llvm::ARMCallLowering::lowerReturn(), llvm::AArch64CallLowering::lowerReturn(), llvm::MipsCallLowering::lowerReturn(), lowerV8I16GeneralSingleInputShuffle(), llvm::GlobPattern::match(), llvm::fuzzerop::matchFirstType(), llvm::Intrinsic::matchIntrinsicType(), llvm::Intrinsic::matchIntrinsicVarArg(), llvm::fuzzerop::matchScalarOfFirstType(), 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(), pushDepHeight(), QualifiedNameOfImplicitName(), readTriple(), resolveTypeIndexReferences(), llvm::SIRegisterInfo::restoreSGPR(), rotateSign(), llvm::lto::LTO::run(), llvm::MCJIT::runFunction(), llvm::orc::OrcMCJITReplacement::runFunction(), selectJumpTableArmEncoding(), llvm::StructType::setBody(), llvm::MachineInstr::setMemRefs(), llvm::SelectionDAG::setNodeMemRefs(), shouldReorderOperands(), llvm::SIRegisterInfo::spillSGPR(), llvm::SplitBlockPredecessors(), llvm::splitCodeGen(), llvm::X86InstrInfo::storeRegToAddr(), llvm::to_hexString(), llvm::CodeViewYAML::toCodeViewSubsectionList(), truncateToSize(), llvm::HexagonInstrInfo::validateBranchCond(), llvm::VPBlendRecipe::VPBlendRecipe(), llvm::MemorySSAUpdater::wireOldPredecessorsToNewImmediatePredecessor(), llvm::BinaryStreamWriter::writeArray(), llvm::MutableBinaryByteStream::writeBytes(), llvm::AppendingBinaryByteStream::writeBytes(), and writeWithCommas().

◆ end()

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

Definition at line 137 of file ArrayRef.h.

Referenced by llvm::SpillPlacement::addConstraints(), llvm::SpillPlacement::addLinks(), llvm::AArch64FunctionInfo::addLOHDirective(), llvm::AttributeList::addParamAttribute(), llvm::SpillPlacement::addPrefSpill(), llvm::DebugLocEntry::addValues(), llvm::TargetLibraryInfoImpl::addVectorizableFunctions(), llvm::DIExpression::append(), llvm::DIExpression::appendToStack(), llvm::MachineIRBuilder::buildBuildVector(), llvm::MachineIRBuilder::buildBuildVectorTrunc(), llvm::MachineIRBuilder::buildConcatVectors(), buildFixItLine(), llvm::MachineIRBuilder::buildInstr(), llvm::MachineIRBuilder::buildMerge(), buildPartialUnswitchConditionalBranch(), llvm::MachineIRBuilder::buildSequence(), BuildSubAggregate(), llvm::MachineIRBuilder::buildUnmerge(), llvm::MDNodeOpsKey::calculateHash(), llvm::Interpreter::callFunction(), canWidenShuffleElements(), llvm::LiveIntervals::checkRegMaskInterference(), cloneConstantExprWithNewAddressSpace(), llvm::collectPGOFuncNameStrings(), combineX86ShuffleChain(), combineX86ShufflesRecursively(), llvm::MDNodeOpsKey::compareOps(), llvm::ComputeLinearIndex(), llvm::concatenateVectors(), llvm::ConstantFoldGetElementPtr(), llvm::ConvertCostTableLookup(), llvm::convertUTF16ToUTF8String(), llvm::CostTableLookup(), llvm::DIBuilder::createExpression(), CreateGCRelocates(), llvm::DeleteDeadBlocks(), llvm::discoverAndMapSubloop(), llvm::Instruction::dropUnknownNonDebugMetadata(), llvm::MCDwarfFrameEmitter::Emit(), llvm::mca::SourceMgr::end(), llvm::AccelTableBase::finalize(), Find(), llvm::FindInsertedValue(), findMatchingInlineAsmOperand(), llvm::ScalarEvolution::forgetValue(), llvm::gep_type_end(), llvm::AttributeSetNode::get(), llvm::RecordRecTy::get(), llvm::AttributeList::get(), llvm::ConstantArray::get(), llvm::BitsInit::get(), llvm::ListInit::get(), llvm::CondOpInit::get(), llvm::VarDefInit::get(), llvm::DagInit::get(), llvm::ScalarEvolution::getAddExpr(), getFauxShuffleMask(), llvm::getFMA3Group(), llvm::TargetTransformInfoImplCRTPBase< AMDGPUTTIImpl >::getGEPCost(), llvm::ConstantAggrKeyType< ConstantClass >::getHash(), llvm::ConstantExprKeyType::getHash(), llvm::MDNodeKeyImpl< DIExpression >::getHashValue(), llvm::InvokeInst::getLandingPadInst(), llvm::SelectionDAG::getNode(), getNoopInput(), getNumAllocatableRegsForConstraints(), getOffsetFromIndices(), llvm::slpvectorizer::BoUpSLP::getORE(), llvm::HexagonTargetLowering::getPreferredVectorAction(), getRegLanes(), getShuffleComment(), getStatepointArgs(), llvm::SelectionDAG::getVectorShuffle(), llvm::ConstantExpr::getWithOperands(), llvm::hash_value(), hasValueBeenRAUWed(), llvm::cl::HideUnrelatedOptions(), initialize(), llvm::CallGraphSCC::initialize(), llvm::RegPressureTracker::initLiveThru(), llvm::AppendingBinaryByteStream::insert(), llvm::sroa::AllocaSlices::insert(), llvm::isAllocaPromotable(), llvm::ShuffleVectorInst::isConcat(), llvm::MCSubtargetInfo::isCPUStringValid(), isEXTMask(), llvm::LiveRange::isLiveAtIndexes(), llvm::DataLayout::isNonIntegralAddressSpace(), isSortedByValueNo(), llvm::LiveRange::isUndefIn(), lle_X_fprintf(), lle_X_printf(), Lookup(), lookupFoldTableImpl(), llvm::Intrinsic::lookupLLVMIntrinsicByName(), llvm::X86CallLowering::lowerCall(), lowerShuffleAsElementInsertion(), lowerShuffleOfExtractsAsVperm(), lowerV8I16GeneralSingleInputShuffle(), lowerV8I16Shuffle(), LowerVECTOR_SHUFFLEv8i8(), llvm::lto::LTO::LTO(), llvm::object::MachOBindEntry::MachOBindEntry(), llvm::object::MachORebaseEntry::MachORebaseEntry(), llvm::makePostTransformationMetadata(), llvm::codeview::CodeViewRecordIO::mapByteVectorTail(), matchBinaryPermuteShuffle(), matchShuffleAsInsertPS(), llvm::object::MachORebaseEntry::moveNext(), llvm::object::MachOBindEntry::moveNext(), llvm::coverage::FunctionRecordIterator::operator++(), llvm::OwningArrayRef< T >::OwningArrayRef(), llvm::opt::OptTable::ParseArgs(), performCustomAdjustments(), ProfileCondOpInit(), ProfileDagInit(), propagateMetadata(), replaceShuffleOfInsert(), llvm::MachineFunction::setCallSiteLandingPad(), llvm::MachineInstr::setPhysRegsDeadExcept(), shouldReorderOperands(), llvm::SimplifyCall(), llvm::TargetLowering::SimplifyDemandedVectorElts(), llvm::TGLexer::TGLexer(), tryToVectorizeHorReductionOrInstOperands(), llvm::SelectionDAG::UpdateNodeOperands(), UpdatePHINodes(), llvm::codeview::VFTableRecord::VFTableRecord(), llvm::MemorySSAUpdater::wireOldPredecessorsToNewImmediatePredecessor(), 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 170 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 270 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 239 of file ArrayRef.h.

◆ rbegin()

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

Definition at line 139 of file ArrayRef.h.

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

◆ rend()

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

Definition at line 140 of file ArrayRef.h.

Referenced by 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 148 of file ArrayRef.h.

Referenced by llvm::MachineFunction::addCatchTypeInfo(), llvm::codeview::DebugChecksumsSubsection::addChecksum(), addData(), llvm::pdb::DbiStreamBuilder::addDbgStream(), llvm::MachineFunction::addFilterTypeInfo(), llvm::InstCombineWorklist::AddInitialGroup(), addOperands(), llvm::msf::MSFBuilder::addStream(), llvm::pdb::DbiModuleDescriptorBuilder::addSymbolsInBulk(), 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::RISCVAsmBackend::applyFixup(), llvm::DomTreeBuilder::SemiNCAInfo< DomTreeT >::ApplyUpdates(), llvm::MipsCallLowering::MipsHandler::assignVRegs(), llvm::SimpleBitstreamCursor::AtEndOfStream(), llvm::yaml::BinaryRef::binary_size(), buildClonedLoopBlocks(), buildClonedLoops(), llvm::ConstantFoldingMIRBuilder::buildInstr(), llvm::CSEMIRBuilder::buildInstr(), llvm::MachineIRBuilder::buildInstr(), buildNew(), llvm::MachineIRBuilder::buildSequence(), llvm::LoopVectorizationCostModel::calculateRegisterUsage(), llvm::Interpreter::callFunction(), llvm::canConstantFoldCallTo(), canEvaluateShuffled(), llvm::AArch64InstrInfo::canInsertSelect(), llvm::SystemZInstrInfo::canInsertSelect(), llvm::PPCInstrInfo::canInsertSelect(), llvm::X86InstrInfo::canInsertSelect(), canLowerByDroppingEvenElements(), llvm::slpvectorizer::BoUpSLP::canMapToVector(), canonicalizeShuffleMaskWithCommute(), llvm::SimpleBitstreamCursor::canSkipToPos(), canWidenShuffleElements(), CC_ARM_AAPCS_Custom_Aggregate(), checkDecodedInstruction(), CheckForLiveRegDefMasked(), llvm::FileCheck::CheckInput(), llvm::CallInst::classof(), llvm::BitVector::clearBitsNotInMask(), llvm::UnOpInit::clone(), llvm::BinOpInit::clone(), llvm::TernOpInit::clone(), llvm::MachineInstr::cloneMergedMemRefs(), llvm::FunctionComparator::cmpOperations(), llvm::collectPGOFuncNameStrings(), combineShuffleOfSplat(), llvm::TargetLowering::DAGCombinerInfo::CombineTo(), combineX86ShuffleChain(), combineX86ShufflesConstants(), combineX86ShufflesRecursively(), llvm::sys::commandLineFitsWithinSystemLimits(), llvm::ShuffleVectorSDNode::commuteMask(), llvm::MDNodeOpsKey::compareOps(), computeAddrMap(), llvm::ComputeEditDistance(), computeExcessPressureDelta(), computeMaxPressureDelta(), llvm::mca::computeProcResourceMasks(), computeValueLLTs(), 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::AArch64InstrInfo::copyGPRRegTuple(), 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::CallBrInst::Create(), llvm::CleanupPadInst::Create(), llvm::CatchPadInst::Create(), llvm::MDBuilder::createBranchWeights(), llvm::CallInst::CreateFree(), CreateGCRelocates(), llvm::IRBuilder< TargetFolder >::CreateGEP(), llvm::IRBuilder< TargetFolder >::CreateInBoundsGEP(), createIndexMap(), llvm::createPGOIndirectCallPromotionLegacyPass(), createPHIsForSplitLoopExit(), createRdxShuffleMask(), llvm::createSanitizerCtorAndInitFunctions(), createTargetShuffleMask(), llvm::MDBuilder::createTBAAStructNode(), llvm::MDBuilder::createTBAATypeNode(), CriticalPathStep(), decodeBDVAddr64Disp12Operand(), decodeCRBitMOperand(), decodeFRMArg(), DecodeIITType(), llvm::AMDGPUDisassembler::decodeLiteralConstant(), DecodeMoveHRegInstruction(), llvm::DecodePSHUFBMask(), DecodeRegisterClass(), llvm::DecodeVPERMIL2PMask(), llvm::DecodeVPERMILPMask(), llvm::DecodeVPERMV3Mask(), llvm::DecodeVPERMVMask(), llvm::DecodeVPPERMMask(), llvm::object::Decompressor::decompress(), llvm::DeleteDeadBlocks(), llvm::GCNIterativeScheduler::detachSchedule(), llvm::AttributeListImpl::dump(), llvm::AttributeSet::dump(), dumpExpression(), dumpLocation(), llvm::dumpRegSetPressure(), dwarfCCToCodeView(), eatBytes(), llvm::LiveRangeEdit::eliminateDeadDefs(), EltsFromConsecutiveLoads(), llvm::MCDwarfLineTableHeader::Emit(), llvm::BitstreamWriter::emitBlob(), evaluateInDifferentElementOrder(), llvm::BitstreamWriter::ExitBlock(), extractBitsForFixup(), llvm::FenceInst::FenceInst(), llvm::SimpleBitstreamCursor::fillCurWord(), llvm::AccelTableBase::finalize(), llvm::FindInsertedValue(), findLiveReferences(), llvm::wholeprogramdevirt::findLowestOffset(), findMatchingInlineAsmOperand(), findStrip(), llvm::symbolize::LLVMSymbolizer::flush(), FoldBUILD_VECTOR(), FoldCONCAT_VECTORS(), llvm::AArch64InstrInfo::foldMemoryOperandImpl(), llvm::SystemZInstrInfo::foldMemoryOperandImpl(), llvm::X86InstrInfo::foldMemoryOperandImpl(), llvm::codeview::forEachCodeViewRecord(), llvm::ScalarEvolution::forgetValue(), llvm::codeview::detail::GuidAdapter::format(), llvm::CodeViewYAML::fromDebugH(), FunctionNumber(), llvm::ARMAsmBackendDarwin::generateCompactUnwindEncoding(), genShuffleBland(), llvm::FunctionType::get(), llvm::AttributeList::get(), llvm::ConstantArray::get(), llvm::ConstantStruct::get(), llvm::ConstantVector::get(), llvm::BitsInit::get(), llvm::ListInit::get(), llvm::ConstantDataVector::get(), llvm::CondOpInit::get(), llvm::VarDefInit::get(), llvm::DagInit::get(), llvm::ScalarEvolution::getAddExpr(), getAllSGPRs(), llvm::SystemZTTIImpl::getArithmeticInstrCost(), llvm::BitVector::getBitCapacity(), llvm::getBitcodeFileContents(), getBuildDwordsVector(), llvm::codeview::getBytesAsCharacters(), llvm::TargetTransformInfoImplCRTPBase< AMDGPUTTIImpl >::getCallCost(), getChainID(), llvm::irsymtab::Reader::getComdatTable(), getCondCode(), getConstVector(), getDecoderTable(), getDigit(), llvm::DIExpression::getElement(), llvm::object::getExtendedSymbolTableIndex(), llvm::CCState::getFirstUnallocated(), getFixupKindLog2Size(), llvm::ConstantDataArray::getFP(), llvm::ConstantDataVector::getFP(), llvm::TargetTransformInfoImplBase::getGEPCost(), llvm::ConstantExpr::getGetElementPtr(), getHalfShuffleMask(), llvm::object::COFFObjectFile::getHintName(), getIndexedTypeInternal(), llvm::AArch64Disassembler::getInstruction(), llvm::AMDGPUDisassembler::getInstruction(), llvm::HexagonTTIImpl::getInterleavedMemoryOpCost(), llvm::BasicTTIImplBase< AMDGPUTTIImpl >::getInterleavedMemoryOpCost(), llvm::X86TTIImpl::getInterleavedMemoryOpCostAVX2(), llvm::X86TTIImpl::getInterleavedMemoryOpCostAVX512(), llvm::TargetTransformInfoImplCRTPBase< AMDGPUTTIImpl >::getIntrinsicCost(), llvm::Intrinsic::getIntrinsicInfoTableEntries(), llvm::BasicTTIImplBase< AMDGPUTTIImpl >::getIntrinsicInstrCost(), llvm::InvokeInst::getLandingPadInst(), llvm::BinaryByteStream::getLength(), llvm::msf::MappedBlockStream::getLength(), 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(), getOffsetFromIndices(), llvm::ConstantExpr::getOpcodeName(), 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(), getShuffleMaskIndexOfOneElementFromOp0IntoOp1(), getStatepointArgs(), llvm::object::ELFFile< ELFT >::getStringTable(), llvm::slpvectorizer::BoUpSLP::getTreeCost(), llvm::codeview::GlobalTypeTableBuilder::getType(), llvm::ConstantStruct::getTypeForElements(), llvm::MipsTargetLowering::getTypeForExtReturn(), llvm::RegPressureTracker::getUpwardPressureDelta(), getV4X86ShuffleImm(), llvm::SelectionDAG::getVectorShuffle(), llvm::SelectionDAG::getVTList(), llvm::ConstantExpr::getWithOperands(), llvm::CodeViewYAML::GlobalHash::GlobalHash(), llvm::codeview::GloballyHashedType::GloballyHashedType(), group2Shuffle(), llvm::MipsCallLowering::MipsHandler::handle(), llvm::CallLowering::handleAssignments(), llvm::MipsTargetLowering::HandleByVal(), llvm::pdb::hashBufferV8(), llvm::pdb::hashTypeRecord(), hasIdenticalMMOs(), llvm::mca::SourceMgr::hasNext(), llvm::hasUTF16ByteOrderMark(), hasUTF8ByteOrderMark(), hasValueBeenRAUWed(), inferDSOLocal(), llvm::WebAssemblyInstrInfo::insertBranch(), llvm::XCoreInstrInfo::insertBranch(), llvm::ARCInstrInfo::insertBranch(), llvm::RISCVInstrInfo::insertBranch(), llvm::NVPTXInstrInfo::insertBranch(), llvm::MSP430InstrInfo::insertBranch(), llvm::MipsInstrInfo::insertBranch(), llvm::SparcInstrInfo::insertBranch(), llvm::AVRInstrInfo::insertBranch(), llvm::HexagonInstrInfo::insertBranch(), llvm::LanaiInstrInfo::insertBranch(), llvm::ARMBaseInstrInfo::insertBranch(), llvm::SystemZInstrInfo::insertBranch(), llvm::SIInstrInfo::insertBranch(), llvm::PPCInstrInfo::insertBranch(), llvm::X86InstrInfo::insertBranch(), llvm::codeview::MergingTypeTableBuilder::insertRecordAs(), llvm::codeview::AppendingTypeTableBuilder::insertRecordBytes(), llvm::codeview::GlobalTypeTableBuilder::insertRecordBytes(), llvm::AArch64InstrInfo::insertSelect(), llvm::SystemZInstrInfo::insertSelect(), llvm::PPCInstrInfo::insertSelect(), llvm::X86InstrInfo::insertSelect(), llvm::SIInstrInfo::insertVectorSelect(), instrumentMaskedLoadOrStore(), llvm::msf::MappedBlockStream::invalidateCache(), inversePermutation(), is128BitLaneCrossingShuffleMask(), is128BitUnpackShuffleMask(), isACalleeSavedRegister(), isAddSubOrSubAddMask(), isCanonical(), llvm::SelectionDAG::isConstantFPBuildVectorOrConstantFP(), isDeInterleaveMask(), isDeInterleaveMaskOfFactor(), llvm::X86TargetLowering::isDesirableToCombineBuildVectorToShuffleTruncate(), llvm::ShuffleVectorInst::isExtractSubvectorMask(), isIdentifierChar(), isIdentity(), llvm::ShuffleVectorInst::isIdentityMask(), isIdentityMaskImpl(), isIdRecord(), isImplicitOperandIn(), isInBoundsIndices(), isINSMask(), IsInterestingCmp(), isLocalCopy(), isNonZeroElementsInOrder(), isNoopShuffleMask(), isPermutation(), isReInterleaveMask(), isRepeatedShuffleMask(), isRepeatedTargetShuffleMask(), llvm::ShuffleVectorInst::isReverseMask(), isReverseMask(), llvm::ShuffleVectorInst::isSelectMask(), isShuffle(), isShuffleEquivalent(), isShuffleMaskInputInPlace(), isSingleSHUFPSMask(), llvm::ShuffleVectorInst::isSingleSourceMask(), isSingleSourceMaskImpl(), isSortedByValueNo(), isSplat(), isSupportedType(), isSwitchDense(), isTargetShuffleEquivalent(), llvm::ShuffleVectorInst::isTransposeMask(), llvm::SelectionDAG::isUndef(), isUndefLowerHalf(), isUndefUpperHalf(), isValidEncoding(), isVTBLMask(), isVTRN_v_undef_Mask(), isVTRNMask(), isVUZP_v_undef_Mask(), isVUZPMask(), isVZIP_v_undef_Mask(), isVZIPMask(), llvm::ShuffleVectorInst::isZeroEltSplatMask(), llvm::LegalizerHelper::legalizeInstrStep(), llvm::BinaryItemTraits< codeview::CVSymbol >::length(), llvm::codeview::CVRecord< TypeLeafKind >::length(), llvm::codeview::limitSymbolArrayToScope(), llvm::coverage::LineCoverageStats::LineCoverageStats(), lle_X_atexit(), lle_X_fprintf(), lle_X_scanf(), lle_X_sscanf(), LLVMInitializeHexagonDisassembler(), llvm::coverage::CoverageMapping::load(), llvm::orc::ExecutionSession::lookup(), lookupFunction(), lower1BitShuffle(), lower512BitShuffle(), llvm::HexagonTargetLowering::LowerBITCAST(), llvm::AArch64TargetLowering::lowerInterleavedLoad(), llvm::ARMTargetLowering::lowerInterleavedLoad(), llvm::X86TargetLowering::lowerInterleavedLoad(), llvm::X86CallLowering::lowerReturn(), llvm::AArch64CallLowering::lowerReturn(), llvm::MipsCallLowering::lowerReturn(), lowerShuffleAsBitBlend(), lowerShuffleAsBitMask(), lowerShuffleAsBlendAndPermute(), lowerShuffleAsBlendOfPSHUFBs(), lowerShuffleAsBroadcast(), lowerShuffleAsByteRotate(), lowerShuffleAsDecomposedShuffleBlend(), lowerShuffleAsElementInsertion(), lowerShuffleAsLanePermuteAndBlend(), lowerShuffleAsPermuteAndUnpack(), lowerShuffleAsShift(), lowerShuffleAsSpecificZeroOrAnyExtend(), lowerShuffleAsSplitOrBlend(), lowerShuffleAsUNPCKAndPermute(), lowerShuffleAsZeroOrAnyExtend(), lowerShuffleByMerging128BitLanes(), lowerShuffleWithPSHUFB(), lowerShuffleWithVPMOV(), lowerV16F32Shuffle(), lowerV16I16Shuffle(), lowerV16I32Shuffle(), lowerV16I8Shuffle(), lowerV2F64Shuffle(), lowerV2I64Shuffle(), lowerV32I16Shuffle(), lowerV32I8Shuffle(), lowerV4F32Shuffle(), lowerV4F64Shuffle(), lowerV4I32Shuffle(), lowerV4I64Shuffle(), lowerV64I8Shuffle(), lowerV8F32Shuffle(), lowerV8F64Shuffle(), lowerV8I16GeneralSingleInputShuffle(), lowerV8I16Shuffle(), lowerV8I32Shuffle(), lowerV8I64Shuffle(), lowerVectorShuffleAsByteShiftMask(), llvm::TargetLowering::makeLibCall(), match1BitShuffleAsKSHIFT(), matchBinaryPermuteShuffle(), llvm::Intrinsic::matchIntrinsicVarArg(), matchShuffleAsEXTRQ(), matchShuffleAsInsertPS(), matchShuffleAsINSERTQ(), matchShuffleAsRotate(), matchShuffleAsShift(), matchUnaryPermuteShuffle(), matchUnaryShuffle(), matchVectorShuffleAsBlend(), matchVectorShuffleAsVPMOV(), llvm::SIInstrInfo::materializeImmediate(), multikeySort(), narrowShuffle(), llvm::AllocationOrder::next(), nextByte(), nextLEB(), llvm::ConstantAggrKeyType< ConstantClass >::operator==(), llvm::ConstantExprKeyType::operator==(), llvm::ARMAttributeParser::Parse(), parseCond(), parseImmediate(), parseTypeIdSummaryRecord(), llvm::mca::SourceMgr::peekNext(), llvm::AsmLexer::peekTokens(), llvm::CallBase::populateBundleOperandInfos(), llvm::SystemZInstrInfo::PredicateInstruction(), llvm::ScopedPrinter::printBinary(), llvm::PrintMessage(), processShaderInputArgs(), llvm::VarDefInit::Profile(), ProfileBitsInit(), ProfileCondOpInit(), ProfileListInit(), ProfileRecordRecTy(), ProfileVarDefInit(), llvm::propagateMetadata(), propagateMetadata(), pushDepHeight(), QualifiedNameOfImplicitName(), llvm::AppendingBinaryByteStream::readBytes(), llvm::BinaryStreamReader::readCString(), llvm::BinaryStreamReader::readFixedString(), readInstruction16(), readInstruction32(), readInstruction64(), llvm::BinaryStreamReader::readLongestContiguousChunk(), llvm::BinaryStreamRef::readLongestContiguousChunk(), llvm::IndexedInstrProfReader::readNextRecord(), readTriple(), readWideAPInt(), rebuildLoopAfterUnswitch(), recomputeLiveInValues(), regionReader(), relocationViaAlloca(), llvm::AArch64InstrInfo::removeBranch(), llvm::CatchSwitchInst::removeHandler(), replaceShuffleOfInsert(), 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(), llvm::MachineInstr::setMemRefs(), llvm::SelectionDAG::setNodeMemRefs(), setSummary(), shouldReorderOperands(), SimplifyExtractValueInst(), SimplifyGEPInst(), llvm::mca::SourceMgr::size(), llvm::SimpleBitstreamCursor::skipToEnd(), slotForIndex(), llvm::sortPtrAccesses(), speculatePHIs(), llvm::SIRegisterInfo::spillSGPR(), splitAndLowerShuffle(), llvm::SplitBlockPredecessors(), llvm::splitCodeGen(), llvm::SplitLandingPadPredecessors(), splitMask(), llvm::BinaryByteStream::str(), llvm::codeview::CVRecord< TypeLeafKind >::str_data(), StrengthenNoWrapFlags(), llvm::ARMBaseInstrInfo::SubsumesPredicate(), llvm::PPCInstrInfo::SubsumesPredicate(), llvm::to_hexString(), llvm::toStringRef(), unifyReturnBlockSet(), unpackF64OnRV32DSoftABI(), unswitchBestCondition(), unswitchNontrivialInvariants(), llvm::MD5::update(), llvm::SelectionDAG::UpdateNodeOperands(), UpdatePHINodes(), llvm::HexagonInstrInfo::validateBranchCond(), verifyAddrSpace(), llvm::codeview::TypeRecordMapping::visitMemberEnd(), llvm::codeview::TypeDumpVisitor::visitUnknownType(), llvm::VPBlendRecipe::VPBlendRecipe(), llvm::object::WindowsResourceCOFFWriter::WindowsResourceCOFFWriter(), llvm::MemorySSAUpdater::wireOldPredecessorsToNewImmediatePredecessor(), 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::AppendingBinaryByteStream::writeBytes(), llvm::WritableBinaryStreamRef::writeBytes(), llvm::codeview::ContinuationRecordBuilder::writeMemberType(), writeWithCommas(), llvm::xxHash64(), 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 184 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 218 of file ArrayRef.h.

◆ take_front()

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

◆ 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 232 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 226 of file ArrayRef.h.

◆ vec()

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

Definition at line 263 of file ArrayRef.h.


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