LLVM
8.0.1
|
ArrayRef - Represent a constant reference to an array (0 or more elements consecutively in memory), i.e. More...
#include "llvm/ADT/APInt.h"
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 T * | data () const |
size_t | size () const |
size - Get the array size. More... | |
const T & | front () const |
front - Get the first element. More... | |
const T & | back () const |
back - Get the last element. More... | |
template<typename Allocator > | |
ArrayRef< T > | copy (Allocator &A) |
bool | equals (ArrayRef RHS) const |
equals - Check for element-wise equality. More... | |
ArrayRef< T > | slice (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< T > | slice (size_t N) const |
slice(n) - Chop off the first N elements of the array. More... | |
ArrayRef< T > | drop_front (size_t N=1) const |
Drop the first N elements of the array. More... | |
ArrayRef< T > | drop_back (size_t N=1) const |
Drop the last N elements of the array. More... | |
template<class PredicateT > | |
ArrayRef< T > | drop_while (PredicateT Pred) const |
Return a copy of *this with the first N elements satisfying the given predicate removed. More... | |
template<class PredicateT > | |
ArrayRef< T > | drop_until (PredicateT Pred) const |
Return a copy of *this with the first N elements not satisfying the given predicate removed. More... | |
ArrayRef< T > | take_front (size_t N=1) const |
Return a copy of *this with only the first N elements. More... | |
ArrayRef< T > | take_back (size_t N=1) const |
Return a copy of *this with only the last N elements. More... | |
template<class PredicateT > | |
ArrayRef< T > | take_while (PredicateT Pred) const |
Return the first N elements of this Array that satisfy the given predicate. More... | |
template<class PredicateT > | |
ArrayRef< T > | take_until (PredicateT Pred) const |
Return the first N elements of this Array that don't satisfy the given predicate. More... | |
Operator Overloads | |
const T & | operator[] (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< T > | vec () const |
Conversion operators | |
operator std::vector< T > () const | |
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.
using llvm::ArrayRef< T >::const_iterator = const T * |
Definition at line 45 of file ArrayRef.h.
using llvm::ArrayRef< T >::iterator = const T * |
Definition at line 44 of file ArrayRef.h.
using llvm::ArrayRef< T >::reverse_iterator = std::reverse_iterator<iterator> |
Definition at line 47 of file ArrayRef.h.
using llvm::ArrayRef< T >::size_type = size_t |
Definition at line 46 of file ArrayRef.h.
|
default |
Construct an empty ArrayRef.
|
inline |
Construct an empty ArrayRef from None.
Definition at line 64 of file ArrayRef.h.
|
inline |
Construct an ArrayRef from a single element.
Definition at line 67 of file ArrayRef.h.
Construct an ArrayRef from a pointer and length.
Definition at line 71 of file ArrayRef.h.
Construct an ArrayRef from a range.
Definition at line 75 of file ArrayRef.h.
|
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.
|
inline |
Construct an ArrayRef from a std::vector.
Definition at line 88 of file ArrayRef.h.
|
inline |
Construct an ArrayRef from a std::array.
Definition at line 93 of file ArrayRef.h.
|
inline |
Construct an ArrayRef from a C array.
Definition at line 98 of file ArrayRef.h.
|
inline |
Construct an ArrayRef from a std::initializer_list.
Definition at line 101 of file ArrayRef.h.
|
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.
|
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.
|
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.
|
inline |
back - Get the last element.
Definition at line 158 of file ArrayRef.h.
Referenced by llvm::AttributeList::addParamAttribute(), llvm::DIExpression::appendToStack(), llvm::ConstantFoldLoadFromConstPtr(), llvm::object::ELFFile< ELFT >::dynamicEntries(), llvm::AttributeList::get(), llvm::Record::getDirectSuperClasses(), llvm::object::ELFFile< ELFT >::getStringTable(), llvm::TargetTransformInfoImplCRTPBase< AMDGPUTTIImpl >::getUserCost(), llvm::isAllocaPromotable(), isIdentifierChar(), isImplicitOperandIn(), isSwitchDense(), llvm::RandomIRBuilder::newSink(), shouldReorderOperands(), and SimplifyGEPInst().
|
inline |
Definition at line 137 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::discoverAndMapSubloop(), llvm::Instruction::dropUnknownNonDebugMetadata(), llvm::MCDwarfFrameEmitter::Emit(), llvm::ArrayRef< llvm::irsymtab::storage::Comdat >::equals(), llvm::AccelTableBase::finalize(), Find(), llvm::FindInsertedValue(), findMatchingInlineAsmOperand(), llvm::gep_type_begin(), llvm::AttributeSetNode::get(), llvm::RecordRecTy::get(), llvm::AttributeList::get(), llvm::ConstantArray::get(), llvm::BitsInit::get(), llvm::ListInit::get(), llvm::VarDefInit::get(), llvm::DagInit::get(), getFauxShuffleMask(), llvm::getFMA3Group(), llvm::TargetTransformInfoImplCRTPBase< AMDGPUTTIImpl >::getGEPCost(), llvm::ConstantAggrKeyType< ConstantClass >::getHash(), llvm::ConstantExprKeyType::getHash(), llvm::MDNodeKeyImpl< DIExpression >::getHashValue(), 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(), 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(), parseWholeProgramDevirtResolutionByArg(), performCustomAdjustments(), 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().
|
inline |
Definition at line 164 of file ArrayRef.h.
Referenced by llvm::StructType::setBody().
|
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(), 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(), matchUnaryPermuteVectorShuffle(), 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().
|
inline |
Drop the last N
elements of the array.
Definition at line 194 of file ArrayRef.h.
Referenced by llvm::DIExpression::appendToStack(), getAllSGPRs(), and llvm::Record::getDirectSuperClasses().
|
inline |
Drop the first N
elements of the array.
Definition at line 188 of file ArrayRef.h.
Referenced by llvm::codeview::CVRecord< TypeLeafKind >::content(), llvm::codeview::discoverTypeIndices(), llvm::codeview::discoverTypeIndicesInSymbol(), dwarfCCToCodeView(), llvm::opt::OptTable::findNearest(), llvm::codeview::forEachCodeViewRecord(), llvm::CodeViewYAML::detail::UnknownSymbolRecord::fromCodeViewSymbol(), llvm::object::COFFObjectFile::getHintName(), llvm::msf::MappedBlockStream::getLength(), llvm::TargetTransformInfoImplCRTPBase< AMDGPUTTIImpl >::getUserCost(), handleBaseClass(), handleDataMember(), handleEnumerator(), handleFieldList(), handleMethodOverloadList(), handleNestedType(), handleOneMethod(), handleOverloadedMethod(), handlePointer(), handleStaticDataMember(), handleVirtualBaseClass(), llvm::codeview::GloballyHashedType::hashType(), llvm::HexagonTargetLowering::LowerBITCAST(), llvm::codeview::BinaryAnnotationIterator::operator*(), resolveTypeIndexReferences(), llvm::msf::MSFBuilder::setStreamSize(), and writeWithCommas().
|
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.
|
inline |
Return a copy of *this with the first N elements satisfying the given predicate removed.
Definition at line 201 of file ArrayRef.h.
|
inline |
empty - Check if the array is empty.
Definition at line 144 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(), 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(), getSmrdOpcode(), 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(), insertUseHolderAfter(), llvm::xray::Profile::internPath(), llvm::ShuffleVectorInst::isConcat(), isImplicitOperandIn(), isInBoundsIndices(), isReInterleaveMask(), isSingleSourceMaskImpl(), isSortedByValueNo(), isWeak(), 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(), lowerV8I16GeneralSingleInputVectorShuffle(), 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(), shouldInstrumentBlock(), 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().
|
inline |
Definition at line 138 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::discoverAndMapSubloop(), llvm::Instruction::dropUnknownNonDebugMetadata(), llvm::MCDwarfFrameEmitter::Emit(), llvm::mca::SourceMgr::end(), llvm::AccelTableBase::finalize(), Find(), llvm::FindInsertedValue(), findMatchingInlineAsmOperand(), llvm::gep_type_end(), llvm::AttributeSetNode::get(), llvm::RecordRecTy::get(), llvm::AttributeList::get(), llvm::ConstantArray::get(), llvm::BitsInit::get(), llvm::ListInit::get(), llvm::VarDefInit::get(), llvm::DagInit::get(), getFauxShuffleMask(), llvm::getFMA3Group(), llvm::TargetTransformInfoImplCRTPBase< AMDGPUTTIImpl >::getGEPCost(), llvm::ConstantAggrKeyType< ConstantClass >::getHash(), llvm::ConstantExprKeyType::getHash(), llvm::MDNodeKeyImpl< DIExpression >::getHashValue(), 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::isNonIntegralPointerType(), isSortedByValueNo(), llvm::LiveRange::isUndefIn(), lle_X_fprintf(), lle_X_printf(), Lookup(), lookupFoldTableImpl(), 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::coverage::FunctionRecordIterator::operator++(), llvm::OwningArrayRef< T >::OwningArrayRef(), llvm::opt::OptTable::ParseArgs(), performCustomAdjustments(), 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().
|
inline |
equals - Check for element-wise equality.
Definition at line 171 of file ArrayRef.h.
Referenced by llvm::operator==().
|
inline |
front - Get the first element.
Definition at line 152 of file ArrayRef.h.
Referenced by llvm::vfs::YAMLVFSWriter::addFileMapping(), llvm::DomTreeBuilder::SemiNCAInfo< DomTreeT >::ApplyUpdates(), buildPartialUnswitchConditionalBranch(), DecodeFixedType(), llvm::CodeViewContext::encodeInlineLineTable(), llvm::ConstantVector::get(), getChainID(), getNumAllocatableRegsForConstraints(), handleFieldList(), isSwitchDense(), llvm::coverage::LineCoverageStats::LineCoverageStats(), llvm::X86InstrInfo::loadRegFromAddr(), llvm::Intrinsic::matchIntrinsicType(), llvm::Intrinsic::matchIntrinsicVarArg(), llvm::codeview::BinaryAnnotationIterator::operator*(), llvm::PassBuilder::parsePassPipeline(), llvm::PrintMessage(), llvm::X86InstrInfo::storeRegToAddr(), and wrapConstantAsMetadata().
|
inline |
Definition at line 271 of file ArrayRef.h.
|
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=().
|
delete |
Disallow accidental assignment from a temporary.
The declaration here is extra complicated so that "arrayRef = {}" continues to select the move assignment operator.
|
inline |
Definition at line 240 of file ArrayRef.h.
|
inline |
Definition at line 140 of file ArrayRef.h.
Referenced by getNoopInput(), and llvm::ScheduleDAGMI::initQueues().
|
inline |
Definition at line 141 of file ArrayRef.h.
Referenced by getNoopInput(), and llvm::ScheduleDAGMI::initQueues().
|
inline |
size - Get the array size.
Definition at line 149 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::RISCVAsmBackend::applyFixup(), llvm::ARMAsmBackend::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(), CallingConvSupported(), 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(), llvm::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::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::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(), findStrip(), llvm::symbolize::LLVMSymbolizer::flush(), FoldBUILD_VECTOR(), FoldCONCAT_VECTORS(), llvm::AArch64InstrInfo::foldMemoryOperandImpl(), llvm::SystemZInstrInfo::foldMemoryOperandImpl(), llvm::X86InstrInfo::foldMemoryOperandImpl(), llvm::codeview::forEachCodeViewRecord(), 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::VarDefInit::get(), llvm::DagInit::get(), 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(), 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::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(), getSmrdOpcode(), 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(), isACalleeSavedRegister(), isAddSubOrSubAddMask(), isCanonical(), llvm::SelectionDAG::isConstantFPBuildVectorOrConstantFP(), isDeInterleaveMask(), isDeInterleaveMaskOfFactor(), llvm::X86TargetLowering::isDesirableToCombineBuildVectorToShuffleTruncate(), llvm::ShuffleVectorInst::isExtractSubvectorMask(), isIdentifierChar(), isIdentity(), llvm::ShuffleVectorInst::isIdentityMask(), isIdentityMaskImpl(), isIdRecord(), isImplicitOperandIn(), isInBoundsIndices(), isINSMask(), 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(), isValidEncoding(), isVTBLMask(), isVTRN_v_undef_Mask(), isVTRNMask(), isVUZP_v_undef_Mask(), isVUZPMask(), isVZIP_v_undef_Mask(), isVZIPMask(), llvm::ShuffleVectorInst::isZeroEltSplatMask(), 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(), lower1BitVectorShuffle(), lower512BitVectorShuffle(), llvm::HexagonTargetLowering::LowerBITCAST(), llvm::AArch64TargetLowering::lowerInterleavedLoad(), llvm::ARMTargetLowering::lowerInterleavedLoad(), llvm::X86TargetLowering::lowerInterleavedLoad(), llvm::X86CallLowering::lowerReturn(), llvm::AArch64CallLowering::lowerReturn(), llvm::MipsCallLowering::lowerReturn(), lowerV16F32VectorShuffle(), lowerV16I16VectorShuffle(), lowerV16I32VectorShuffle(), lowerV16I8VectorShuffle(), lowerV2F64VectorShuffle(), lowerV2I64VectorShuffle(), lowerV32I16VectorShuffle(), lowerV32I8VectorShuffle(), lowerV4F32VectorShuffle(), lowerV4F64VectorShuffle(), lowerV4I32VectorShuffle(), lowerV4I64VectorShuffle(), lowerV64I8VectorShuffle(), lowerV8F32VectorShuffle(), lowerV8F64VectorShuffle(), lowerV8I16GeneralSingleInputVectorShuffle(), lowerV8I16VectorShuffle(), lowerV8I32VectorShuffle(), lowerV8I64VectorShuffle(), lowerVectorShuffleAsBitBlend(), lowerVectorShuffleAsBitMask(), lowerVectorShuffleAsBlendAndPermute(), lowerVectorShuffleAsBlendOfPSHUFBs(), lowerVectorShuffleAsBroadcast(), lowerVectorShuffleAsByteRotate(), lowerVectorShuffleAsDecomposedShuffleBlend(), lowerVectorShuffleAsElementInsertion(), lowerVectorShuffleAsLanePermuteAndBlend(), lowerVectorShuffleAsPermuteAndUnpack(), lowerVectorShuffleAsShift(), lowerVectorShuffleAsSpecificZeroOrAnyExtend(), lowerVectorShuffleAsSplitOrBlend(), lowerVectorShuffleAsUNPCKAndPermute(), lowerVectorShuffleAsZeroOrAnyExtend(), lowerVectorShuffleByMerging128BitLanes(), lowerVectorShuffleWithPSHUFB(), lowerVectorShuffleWithVPMOV(), llvm::TargetLowering::makeLibCall(), match1BitShuffleAsKSHIFT(), matchBinaryPermuteVectorShuffle(), llvm::Intrinsic::matchIntrinsicVarArg(), matchUnaryPermuteVectorShuffle(), matchUnaryVectorShuffle(), matchVectorShuffleAsBlend(), matchVectorShuffleAsEXTRQ(), matchVectorShuffleAsInsertPS(), matchVectorShuffleAsINSERTQ(), matchVectorShuffleAsRotate(), matchVectorShuffleAsShift(), matchVectorShuffleAsVPMOV(), llvm::SIInstrInfo::materializeImmediate(), multikeySort(), 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(), 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(), shouldInstrumentBlock(), shouldReorderOperands(), SimplifyExtractValueInst(), SimplifyGEPInst(), llvm::mca::SourceMgr::size(), llvm::SimpleBitstreamCursor::skipToEnd(), slotForIndex(), llvm::sortPtrAccesses(), speculatePHIs(), llvm::SIRegisterInfo::spillSGPR(), splitAndLowerVectorShuffle(), llvm::SplitBlockPredecessors(), llvm::splitCodeGen(), llvm::SplitLandingPadPredecessors(), splitMask(), llvm::BinaryByteStream::str(), llvm::codeview::CVRecord< TypeLeafKind >::str_data(), 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(), 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(n, m) - Chop off the first N elements of the array, and keep M elements in the array.
Definition at line 179 of file ArrayRef.h.
Referenced by llvm::vfs::YAMLVFSWriter::addFileMapping(), buildNew(), llvm::MachineInstr::cloneMergedMemRefs(), llvm::ConstantFoldExtractValueInstruction(), llvm::ConstantFoldInsertValueInstruction(), llvm::ConstantFoldLoadFromConstPtr(), llvm::ConstantExprKeyType::create(), DecodeFixedType(), llvm::dlltoolDriverMain(), eatBytes(), llvm::BitstreamWriter::ExitBlock(), llvm::FindInsertedValue(), llvm::wholeprogramdevirt::findLowestOffset(), getAllSGPRs(), llvm::ConstantExpr::getAsInstruction(), llvm::getBitcodeFileContents(), llvm::AMDGPUDisassembler::getInstruction(), llvm::ConstantExpr::getWithOperands(), llvm::codeview::GloballyHashedType::hashType(), hasValueBeenRAUWed(), isSortedByValueNo(), LLVMInitializeHexagonDisassembler(), llvm::GlobPattern::match(), llvm::Intrinsic::matchIntrinsicType(), llvm::Intrinsic::matchIntrinsicVarArg(), matchVectorShuffleAsVPMOV(), propagateMetadata(), llvm::BinaryByteStream::readBytes(), llvm::msf::MappedBlockStream::readBytes(), llvm::BinaryByteStream::readLongestContiguousChunk(), llvm::BinaryStreamRef::readLongestContiguousChunk(), readTriple(), llvm::Interpreter::runFunction(), SimplifyExtractValueInst(), SimplifyGEPInst(), and splitAndLowerVectorShuffle().
|
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().
|
inline |
Return a copy of *this with only the last N
elements.
Definition at line 219 of file ArrayRef.h.
|
inline |
Return a copy of *this with only the first N
elements.
Definition at line 212 of file ArrayRef.h.
Referenced by llvm::codeview::forEachCodeViewRecord(), llvm::AttributeList::get(), llvm::codeview::GloballyHashedType::hashType(), llvm::HexagonTargetLowering::LowerBITCAST(), llvm::BinaryItemStream< T, Traits >::readBytes(), and writeWithCommas().
|
inline |
Return the first N elements of this Array that don't satisfy the given predicate.
Definition at line 233 of file ArrayRef.h.
|
inline |
Return the first N elements of this Array that satisfy the given predicate.
Definition at line 227 of file ArrayRef.h.
|
inline |
Definition at line 264 of file ArrayRef.h.