|
LLVM
5.0.0
|
This class consists of common code factored out of the SmallVector class to reduce code duplication based on the SmallVector 'N' template parameter. More...
#include "llvm/ADT/APFloat.h"
Inherits llvm::SmallVectorTemplateBase< T, isPodLike< T >::value >.
Inherited by llvm::SmallVector< T, N >, and llvm::SmallVector< T, 0 >.
Public Types | |
| using | iterator = typename SuperClass::iterator |
| using | const_iterator = typename SuperClass::const_iterator |
| using | size_type = typename SuperClass::size_type |
Public Types inherited from llvm::SmallVectorTemplateCommon< T > | |
| using | size_type = size_t |
| using | difference_type = ptrdiff_t |
| using | value_type = T |
| using | iterator = T * |
| using | const_iterator = const T * |
| using | const_reverse_iterator = std::reverse_iterator< const_iterator > |
| using | reverse_iterator = std::reverse_iterator< iterator > |
| using | reference = T & |
| using | const_reference = const T & |
| using | pointer = T * |
| using | const_pointer = const T * |
Public Member Functions | |
| SmallVectorImpl (const SmallVectorImpl &)=delete | |
| ~SmallVectorImpl () | |
| void | clear () |
| void | resize (size_type N) |
| void | resize (size_type N, const T &NV) |
| void | reserve (size_type N) |
| LLVM_NODISCARD T | pop_back_val () |
| void | swap (SmallVectorImpl &RHS) |
| template<typename in_iter , typename = typename std::enable_if<std::is_convertible< typename std::iterator_traits<in_iter>::iterator_category, std::input_iterator_tag>::value>::type> | |
| void | append (in_iter in_start, in_iter in_end) |
| Add the specified range to the end of the SmallVector. More... | |
| void | append (size_type NumInputs, const T &Elt) |
| Add the specified range to the end of the SmallVector. More... | |
| void | append (std::initializer_list< T > IL) |
| void | assign (size_type NumElts, const T &Elt) |
| template<typename in_iter , typename = typename std::enable_if<std::is_convertible< typename std::iterator_traits<in_iter>::iterator_category, std::input_iterator_tag>::value>::type> | |
| void | assign (in_iter in_start, in_iter in_end) |
| void | assign (std::initializer_list< T > IL) |
| iterator | erase (const_iterator CI) |
| iterator | erase (const_iterator CS, const_iterator CE) |
| iterator | insert (iterator I, T &&Elt) |
| iterator | insert (iterator I, const T &Elt) |
| iterator | insert (iterator I, size_type NumToInsert, const T &Elt) |
| template<typename ItTy , typename = typename std::enable_if<std::is_convertible< typename std::iterator_traits<ItTy>::iterator_category, std::input_iterator_tag>::value>::type> | |
| iterator | insert (iterator I, ItTy From, ItTy To) |
| void | insert (iterator I, std::initializer_list< T > IL) |
| template<typename... ArgTypes> | |
| void | emplace_back (ArgTypes &&...Args) |
| SmallVectorImpl & | operator= (const SmallVectorImpl &RHS) |
| SmallVectorImpl & | operator= (SmallVectorImpl &&RHS) |
| bool | operator== (const SmallVectorImpl &RHS) const |
| bool | operator!= (const SmallVectorImpl &RHS) const |
| bool | operator< (const SmallVectorImpl &RHS) const |
| void | set_size (size_type N) |
Set the array size to N, which the current array must have enough capacity for. More... | |
Public Member Functions inherited from llvm::SmallVectorTemplateBase< T, isPodLike< T >::value > | |
| void | push_back (const T &Elt) |
| void | push_back (T &&Elt) |
| void | pop_back () |
Public Member Functions inherited from llvm::SmallVectorTemplateCommon< T > | |
| LLVM_ATTRIBUTE_ALWAYS_INLINE iterator | begin () |
| LLVM_ATTRIBUTE_ALWAYS_INLINE const_iterator | begin () const |
| LLVM_ATTRIBUTE_ALWAYS_INLINE iterator | end () |
| LLVM_ATTRIBUTE_ALWAYS_INLINE const_iterator | end () const |
| reverse_iterator | rbegin () |
| const_reverse_iterator | rbegin () const |
| reverse_iterator | rend () |
| const_reverse_iterator | rend () const |
| LLVM_ATTRIBUTE_ALWAYS_INLINE size_type | size () const |
| size_type | max_size () const |
| size_t | capacity () const |
| Return the total number of elements in the currently allocated buffer. More... | |
| pointer | data () |
| Return a pointer to the vector's buffer, even if empty(). More... | |
| const_pointer | data () const |
| Return a pointer to the vector's buffer, even if empty(). More... | |
| LLVM_ATTRIBUTE_ALWAYS_INLINE reference | operator[] (size_type idx) |
| LLVM_ATTRIBUTE_ALWAYS_INLINE const_reference | operator[] (size_type idx) const |
| reference | front () |
| const_reference | front () const |
| reference | back () |
| const_reference | back () const |
Public Member Functions inherited from llvm::SmallVectorBase | |
| size_t | size_in_bytes () const |
| This returns size()*sizeof(T). More... | |
| size_t | capacity_in_bytes () const |
| capacity_in_bytes - This returns capacity()*sizeof(T). More... | |
| LLVM_NODISCARD bool | empty () const |
Protected Member Functions | |
| SmallVectorImpl (unsigned N) | |
Protected Member Functions inherited from llvm::SmallVectorTemplateBase< T, isPodLike< T >::value > | |
| SmallVectorTemplateBase (size_t Size) | |
| void | grow (size_t MinSize=0) |
| Grow the allocated memory (without initializing new elements), doubling the size of the allocated memory. More... | |
Protected Member Functions inherited from llvm::SmallVectorTemplateCommon< T > | |
| SmallVectorTemplateCommon (size_t Size) | |
| void | grow_pod (size_t MinSizeInBytes, size_t TSize) |
| bool | isSmall () const |
| Return true if this is a smallvector which has not had dynamic memory allocated for it. More... | |
| void | resetToSmall () |
| Put this vector in a state of being small. More... | |
| void | setEnd (T *P) |
| iterator | capacity_ptr () |
| const_iterator | capacity_ptr () const |
Protected Member Functions inherited from llvm::SmallVectorBase | |
| SmallVectorBase (void *FirstEl, size_t Size) | |
| void | grow_pod (void *FirstEl, size_t MinSizeInBytes, size_t TSize) |
| This is an implementation of the grow() method which only works on POD-like data types and is out of line to reduce code duplication. More... | |
Additional Inherited Members | |
Static Protected Member Functions inherited from llvm::SmallVectorTemplateBase< T, isPodLike< T >::value > | |
| static void | destroy_range (T *S, T *E) |
| static void | uninitialized_move (It1 I, It1 E, It2 Dest) |
| Move the range [I, E) into the uninitialized memory starting with "Dest", constructing elements as needed. More... | |
| static void | uninitialized_copy (It1 I, It1 E, It2 Dest) |
| Copy the range [I, E) onto the uninitialized memory starting with "Dest", constructing elements as needed. More... | |
Protected Attributes inherited from llvm::SmallVectorBase | |
| void * | BeginX |
| void * | EndX |
| void * | CapacityX |
This class consists of common code factored out of the SmallVector class to reduce code duplication based on the SmallVector 'N' template parameter.
| using llvm::SmallVectorImpl< T >::const_iterator = typename SuperClass::const_iterator |
Definition at line 326 of file SmallVector.h.
| using llvm::SmallVectorImpl< T >::iterator = typename SuperClass::iterator |
Definition at line 325 of file SmallVector.h.
| using llvm::SmallVectorImpl< T >::size_type = typename SuperClass::size_type |
Definition at line 327 of file SmallVector.h.
|
inlineexplicitprotected |
Definition at line 331 of file SmallVector.h.
|
delete |
|
inline |
Definition at line 338 of file SmallVector.h.
|
inline |
Add the specified range to the end of the SmallVector.
Definition at line 395 of file SmallVector.h.
Referenced by llvm::opt::ArgList::AddAllArgValues(), addAllGlobalValueUsers(), llvm::DwarfCompileUnit::addComplexAddress(), llvm::FoldingSetNodeID::AddNodeID(), llvm::RecurrenceDescriptor::AddReductionVar(), llvm::FoldingSetNodeID::AddString(), analyzeLoopUnrollCost(), llvm::SmallString< 256 >::append(), llvm::sys::path::append(), llvm::SmallVectorImpl< std::pair< llvm::RelocationValueRef, llvm::RelocationEntry > >::append(), llvm::RegsForValue::append(), llvm::internal::appendLoopsToWorklist(), llvm::SmallString< 256 >::assign(), llvm::SmallVectorImpl< std::pair< llvm::RelocationValueRef, llvm::RelocationEntry > >::assign(), combineConcatVectorOfExtracts(), llvm::concatenateVectors(), llvm::ConstantFoldGetElementPtr(), containsConstantSomewhere(), llvm::DecodeEXTRQIMask(), llvm::DecodeINSERTQIMask(), llvm::DecodeVectorBroadcast(), llvm::codeview::discoverTypeIndices(), llvm::MCObjectStreamer::EmitBytes(), emitDebugLocValue(), llvm::MCWinCOFFStreamer::EmitInstToData(), llvm::MCObjectStreamer::EmitInstToFragment(), llvm::DIBuilder::finalizeSubprogram(), llvm::FindInsertedValue(), llvm::SSAUpdaterTraits< SSAUpdater >::FindPredecessorBlocks(), llvm::LiveRange::flushSegmentSet(), FoldCONCAT_VECTORS(), llvm::X86InstrInfo::foldMemoryOperandImpl(), llvm::ScalarEvolution::getAddExpr(), llvm::ScalarEvolution::getAddRecExpr(), llvm::DominatorTreeBase< BasicBlock, false >::getDescendants(), getFauxShuffleMask(), getHostID(), llvm::LoopInfoBase< N, M >::getLoopsInPreorder(), llvm::LoopInfoBase< N, M >::getLoopsInReverseSiblingPreorder(), llvm::ScalarEvolution::getMulExpr(), getNoopInput(), llvm::object::ELFFile< ELFT >::getRelocationTypeName(), llvm::object::WasmObjectFile::getRelocationTypeName(), llvm::object::MachOObjectFile::getRelocationTypeName(), llvm::object::COFFObjectFile::getRelocationTypeName(), llvm::ScalarEvolution::getSMaxExpr(), llvm::ConstantDataArray::getString(), getTargetConstantBitsFromNode(), llvm::ScalarEvolution::getUDivExactExpr(), llvm::ScalarEvolution::getUMaxExpr(), llvm::DebugHandlerBase::identifyScopeMarkers(), llvm::opt::InputArgList::InputArgList(), llvm::sroa::AllocaSlices::insert(), llvm::SmallVectorImpl< std::pair< llvm::RelocationValueRef, llvm::RelocationEntry > >::insert(), llvm::LazyCallGraph::RefSCC::insertIncomingRefEdge(), llvm::isPotentiallyReachableFromMany(), IsValueFullyAvailableInBlock(), LowerBITCAST(), llvm::TargetLowering::LowerCallTo(), llvm::SITargetLowering::LowerFormalArguments(), moveBelowOrigChain(), llvm::R600TargetLowering::PerformDAGCombine(), llvm::BitstreamCursor::readRecord(), llvm::LazyCallGraph::RefSCC::removeInternalRefEdge(), llvm::opt::Arg::render(), llvm::opt::Arg::renderAsInput(), llvm::sys::path::replace_extension(), ReplaceINTRINSIC_W_CHAIN(), replaceOneDbgValueForAlloca(), llvm::LoopUnrollPass::run(), llvm::EngineBuilder::setMAttrs(), SimplifyAddOperands(), llvm::simplifyLoop(), llvm::SmallVector< llvm::cl::parser::OptionInfo, 8 >::SmallVector(), SplitAddRecs(), llvm::detail::IEEEFloat::toString(), llvm::APInt::toString(), and llvm::InstCombiner::visitGetElementPtrInst().
|
inline |
Add the specified range to the end of the SmallVector.
Definition at line 407 of file SmallVector.h.
|
inline |
Definition at line 417 of file SmallVector.h.
|
inline |
Definition at line 424 of file SmallVector.h.
Referenced by llvm::SmallString< 256 >::assign(), canWidenShuffleElements(), collectShuffleElements(), collectSingleShuffleElements(), getTargetConstantBitsFromNode(), llvm::SelectionDAGBuilder::getValueImpl(), isRepeatedShuffleMask(), isRepeatedTargetShuffleMask(), llvm::SmallVector< llvm::cl::parser::OptionInfo, 8 >::operator=(), scaleShuffleMask(), llvm::SmallVector< llvm::cl::parser::OptionInfo, 8 >::SmallVector(), and VectorizePTXValueVTs().
|
inline |
Definition at line 436 of file SmallVector.h.
|
inline |
Definition at line 441 of file SmallVector.h.
|
inline |
Definition at line 347 of file SmallVector.h.
Referenced by llvm::PMDataManager::add(), llvm::LiveIntervals::addKillFlags(), llvm::BPFInstrInfo::analyzeBranch(), llvm::MSP430InstrInfo::analyzeBranch(), llvm::LanaiInstrInfo::analyzeBranch(), llvm::HexagonInstrInfo::analyzeBranch(), llvm::AVRInstrInfo::analyzeBranch(), llvm::ARMBaseInstrInfo::analyzeBranch(), llvm::SystemZInstrInfo::analyzeBranch(), llvm::SystemZCCState::AnalyzeCallOperands(), llvm::MipsCCState::AnalyzeCallOperands(), llvm::MipsCCState::AnalyzeCallResult(), llvm::SystemZCCState::AnalyzeFormalArguments(), llvm::MipsCCState::AnalyzeFormalArguments(), analyzeLoopUnrollCost(), llvm::MipsCCState::AnalyzeReturn(), llvm::internal::appendLoopsToWorklist(), llvm::SmallVectorImpl< std::pair< llvm::RelocationValueRef, llvm::RelocationEntry > >::assign(), llvm::SSAUpdaterImpl< UpdaterT >::BuildBlockList(), llvm::CC_ARM_AAPCS_Custom_Aggregate(), llvm::HexagonShuffler::check(), llvm::MipsCCState::CheckReturn(), CleanupPointerRootUsers(), llvm::IntEqClasses::clear(), llvm::IndexedMap< unsigned, llvm::VirtReg2IndexFunctor >::clear(), llvm::SpillPlacement::Node::clear(), llvm::ArrayRecycler< llvm::MachineOperand >::clear(), llvm::SchedDFSResult::clear(), llvm::SparseSet< unsigned, llvm::VirtReg2IndexFunctor >::clear(), llvm::FunctionLoweringInfo::clear(), llvm::LiveRange::clear(), llvm::FoldingSetNodeID::clear(), llvm::SparseMultiSet< VReg2SUnit, VirtReg2IndexFunctor >::clear(), llvm::CCState::clearByValRegsInfo(), llvm::FastISel::CallLoweringInfo::clearIns(), llvm::FastISel::CallLoweringInfo::clearOuts(), llvm::PPCCCState::clearWasPPCF128(), collectDebugValues(), combineShuffle(), llvm::ScalarEvolution::computeAccessFunctions(), llvm::ComputeSignatureVTs(), llvm::convertUTF8ToUTF16String(), llvm::DecodeVPPERMMask(), llvm::codeview::discoverTypeIndices(), llvm::ConnectedVNInfoEqClasses::Distribute(), llvm::AsmPrinter::doFinalization(), doPromotion(), emitComments(), llvm::CodeViewContext::encodeDefRange(), llvm::CodeViewContext::encodeInlineLineTable(), ExpandBVWithShuffles(), llvm::ARMTargetLowering::ExpandInlineAsm(), llvm::X86TargetLowering::ExpandInlineAsm(), llvm::finalizeBundle(), llvm::ScalarEvolution::findArrayDimensions(), findConsecutiveLoad(), FindMostPopularDest(), llvm::SplitEditor::finish(), ForeachHelper(), llvm::formDedicatedExitBlocks(), llvm::formLCSSAForInstructions(), llvm::ScalarEvolution::getAddExpr(), getAdjustedPtr(), llvm::RegsForValue::getCopyFromRegs(), llvm::TargetSubtargetInfo::getCriticalPathRCs(), llvm::pdb::DIARawSymbol::getDataBytes(), llvm::pdb::NativeRawSymbol::getDataBytes(), llvm::DominatorTreeBase< BasicBlock, false >::getDescendants(), getFauxShuffleMask(), getHostID(), getMemmoveLoadsAndStores(), llvm::pdb::DIADataStream::getNext(), llvm::MemoryDependenceResults::getNonLocalPointerDependency(), llvm::ScalarEvolution::getUDivExpr(), llvm::getUnderlyingObjectsForCodeGen(), getUnderlyingObjectsForInstr(), llvm::Loop::getUniqueExitBlocks(), llvm::yaml::ScalarNode::getValue(), handleSymverAliases(), llvm::InlineFunction(), insertVector(), llvm::SpillPlacement::iterate(), llvm::AArch64CallLowering::lowerCall(), llvm::ARMCallLowering::lowerCall(), llvm::NVPTXTargetLowering::LowerCall(), llvm::TargetLowering::LowerCallTo(), llvm::ARMCallLowering::lowerFormalArguments(), llvm::NVPTXTargetLowering::LowerReturn(), makeAllConstantUsesInstructions(), llvm::Regex::match(), mergeConstants(), moveBelowOrigChain(), llvm::sys::path::native(), llvm::BlockFrequencyInfoImplBase::packageLoop(), llvm::MetadataLoader::MetadataLoaderImpl::parseMetadata(), llvm::MetadataLoader::MetadataLoaderImpl::parseMetadataAttachment(), llvm::MetadataLoader::MetadataLoaderImpl::parseMetadataKinds(), parseOperands(), llvm::SpillPlacement::prepare(), llvm::sampleprof::SampleProfileReaderText::read(), llvm::BitstreamCursor::ReadBlockInfoBlock(), llvm::HexagonInstrInfo::reduceLoopCount(), llvm::RuntimeDyldELF::registerEHFrames(), llvm::MachineDominatorTree::releaseMemory(), llvm::LiveIntervals::releaseMemory(), llvm::SlotIndexes::releaseMemory(), llvm::LiveRange::RenumberValues(), llvm::UnwindOpcodeAssembler::Reset(), llvm::codeview::TypeRecordBuilder::reset(), llvm::codeview::TypeSerializer::reset(), llvm::HexagonShuffler::reset(), llvm::LiveRangeCalc::reset(), llvm::BumpPtrAllocatorImpl< MallocAllocator, 65536 >::Reset(), llvm::DataLayout::reset(), llvm::MCStreamer::reset(), llvm::MCContext::reset(), llvm::RuntimePointerChecking::reset(), llvm::SchedRemainder::reset(), llvm::SchedBoundary::reset(), llvm::TypeFinder::run(), llvm::DevirtSCCRepeatedPass< PassT >::run(), runIPSCCP(), llvm::MachineDominatorTree::runOnMachineFunction(), llvm::SpillPlacement::scanActiveBundles(), llvm::SelectionDAGISel::SelectCodeCommon(), llvm::MachineRegisterInfo::setCalleeSavedRegs(), llvm::FileRemover::setFile(), llvm::EngineBuilder::setMAttrs(), setupSwiftErrorVals(), SimplifyAddOperands(), SimplifyLoopInst(), SortCallTargets(), llvm::SplitCriticalEdge(), llvm::LazyCallGraph::RefSCC::switchInternalEdgeToRef(), llvm::RegBankSelect::RepairingPlacement::switchTo(), llvm::TailDuplicator::tailDuplicateAndUpdate(), llvm::cl::TokenizeGNUCommandLine(), llvm::cl::TokenizeWindowsCommandLine(), llvm::BlockFrequencyInfoImplBase::updateLoopWithIrreducible(), llvm::MachineBasicBlock::updateTerminator(), llvm::ValueEnumerator::ValueEnumerator(), llvm::MemorySSA::verifyOrdering(), llvm::codeview::TypeSerializer::visitTypeEndGetIndex(), writeFunctionTypeMetadataRecords(), llvm::GCOVBlock::~GCOVBlock(), and llvm::MCJIT::~MCJIT().
|
inline |
Definition at line 653 of file SmallVector.h.
Referenced by llvm::slpvectorizer::BoUpSLP::buildTree(), llvm::calculateClrEHStateNumbers(), CloneInstructionInExitBlock(), llvm::JumpThreadingPass::ComputeValueKnownInPredecessors(), createImportedModule(), DeleteTriviallyDeadInstructions(), llvm::AttributeSetNode::get(), llvm::AttributeList::get(), llvm::LoopBase< N, M >::getExitEdges(), llvm::OperandBundleUser< InvokeInst, User::op_iterator >::getOperandBundlesAsDefs(), llvm::InlineFunction(), llvm::TargetPassConfig::insertPass(), insertSpills(), llvm::LazyCallGraph::RefSCC::insertTrivialCallEdge(), llvm::LazyCallGraph::RefSCC::insertTrivialRefEdge(), isAllocSiteRemovable(), isOnlyCopiedFromConstantGlobal(), LinearizeExprTree(), llvm::SCEVExpander::replaceCongruentIVs(), RewriteIntelBracExpression(), llvm::MachineFunction::setVariableDbgInfo(), and tryToVectorizeHorReductionOrInstOperands().
|
inline |
Definition at line 446 of file SmallVector.h.
Referenced by collectMultiplyFactors(), llvm::ARMFrameLowering::determineCalleeSaves(), llvm::MachineRegisterInfo::disableCalleeSavedRegister(), llvm::sroa::AllocaSlices::erase(), llvm::cl::ExpandResponseFiles(), llvm::ScalarEvolution::findArrayDimensions(), llvm::ScalarEvolution::getAddExpr(), llvm::ScalarEvolution::getMulExpr(), getNaturalGEPWithType(), llvm::ScalarEvolution::getSMaxExpr(), llvm::ScalarEvolution::getUMaxExpr(), inlineCallsImpl(), llvm::InlineFunction(), isVectorPromotionViable(), llvm::LiveRange::join(), lowerV16I8VectorShuffle(), lowerV8I16GeneralSingleInputVectorShuffle(), llvm::LiveRange::MergeValueNumberInto(), OptimizeAndOrXor(), llvm::MachineInstr::print(), relocationViaAlloca(), llvm::LegacyInlinerBase::removeDeadFunctions(), RemoveInstInputs(), llvm::LazyCallGraph::RefSCC::removeInternalRefEdge(), removeRegLanes(), llvm::LiveRange::removeSegment(), llvm::LiveRange::removeValNo(), llvm::BumpPtrAllocatorImpl< MallocAllocator, 65536 >::Reset(), llvm::AlwaysInlinerPass::run(), SimplifyBranchOnICmpChain(), sortGlobalExprs(), llvm::LazyCallGraph::RefSCC::switchInternalEdgeToRef(), unique_unsorted(), llvm::BlockFrequencyInfoImplBase::updateLoopWithIrreducible(), VerifySubExpr(), and llvm::InstCombiner::visitLandingPadInst().
|
inline |
Definition at line 461 of file SmallVector.h.
|
inline |
Definition at line 479 of file SmallVector.h.
Referenced by llvm::DwarfFile::addScopeVariable(), llvm::MipsInstrInfo::analyzeBranch(), canPaddingBeAccessed(), llvm::rdf::Liveness::computePhiInfo(), llvm::DwarfCompileUnit::constructScopeDIE(), deleteDeadLoop(), doPromotion(), llvm::UnwindOpcodeAssembler::EmitRaw(), llvm::cl::ExpandResponseFiles(), findConsecutiveLoad(), llvm::BinOpInit::Fold(), llvm::AttributeList::get(), llvm::rdf::Liveness::getAllReachingDefs(), llvm::SelectionDAG::getConstant(), llvm::yaml::ScalarNode::getValue(), llvm::SmallVectorImpl< std::pair< llvm::RelocationValueRef, llvm::RelocationEntry > >::insert(), insertParsePoints(), llvm::BlockFrequencyInfoImplBase::LoopData::LoopData(), llvm::SelectionDAGBuilder::LowerAsSTATEPOINT(), LowerInterruptReturn(), llvm::sampleprof::SampleProfileReaderGCC::readOneFunctionProfile(), llvm::AArch64TargetLowering::ReconstructShuffle(), llvm::LiveRange::removeSegment(), llvm::IntervalMapImpl::Path::replaceRoot(), sinkInstruction(), updateDTAfterUnswitch(), llvm::WriteBitcodeToFile(), and writeFunctionTypeMetadataRecords().
|
inline |
Definition at line 509 of file SmallVector.h.
|
inline |
Definition at line 538 of file SmallVector.h.
|
inline |
Definition at line 593 of file SmallVector.h.
|
inline |
Definition at line 649 of file SmallVector.h.
|
inline |
Definition at line 668 of file SmallVector.h.
|
inline |
Definition at line 672 of file SmallVector.h.
| SmallVectorImpl< T > & llvm::SmallVectorImpl< T >::operator= | ( | const SmallVectorImpl< T > & | RHS | ) |
Definition at line 732 of file SmallVector.h.
References llvm::sys::path::begin(), and llvm::sys::path::end().
Referenced by llvm::SmallVector< llvm::cl::parser::OptionInfo, 8 >::operator=().
| SmallVectorImpl< T > & llvm::SmallVectorImpl< T >::operator= | ( | SmallVectorImpl< T > && | RHS | ) |
Definition at line 780 of file SmallVector.h.
References llvm::sys::path::begin(), and llvm::sys::path::end().
|
inline |
Definition at line 664 of file SmallVector.h.
|
inline |
Definition at line 382 of file SmallVector.h.
Referenced by addAllGlobalValueUsers(), addBlockAndPredsToSet(), AddReachableCodeToWorklist(), llvm::ARMFrameLowering::adjustForSegmentedStacks(), allUsersAreInFunction(), allUsersAreInFunctions(), analyzeLoopUnrollCost(), llvm::internal::appendLoopsToWorklist(), llvm::SSAUpdaterImpl< UpdaterT >::BuildBlockList(), buildMultiplyTree(), llvm::calculateClrEHStateNumbers(), llvm::SSAUpdaterImpl< UpdaterT >::CheckIfPHIMatches(), collectFuncletMembers(), llvm::colorEHFunclets(), combineOrCmpEqZeroToCtlzSrl(), combineRedundantDWordShuffle(), llvm::FunctionComparator::compare(), computeBlocksDominatingExits(), llvm::computeDeadSymbols(), llvm::computeMinimumValueSizes(), llvm::slpvectorizer::BoUpSLP::computeMinimumValueSizes(), ComputePostOrders(), ConstHasGlobalValuePredicate(), containsConstantSomewhere(), deleteDeadInstruction(), DeleteTriviallyDeadInstructions(), llvm::ARMFrameLowering::determineCalleeSaves(), determinePointerReadAttrs(), llvm::JumpThreadingPass::DuplicateCondBranchOnPHIIntoPred(), llvm::LiveRangeEdit::eliminateDeadDefs(), findBasePointer(), llvm::objcarc::FindDependencies(), llvm::FindFunctionBackedges(), findRefEdges(), llvm::ScalarEvolution::forgetLoop(), llvm::ScalarEvolution::forgetValue(), llvm::formLCSSAForInstructions(), llvm::FunctionComparator::functionHash(), getBaseType(), getCoroBeginPredBlocks(), llvm::DominatorTreeBase< BasicBlock, false >::getDescendants(), llvm::MemoryDependenceResults::getInvariantGroupPointerDependency(), llvm::LoopInfoBase< N, M >::getLoopsInPreorder(), llvm::LoopInfoBase< N, M >::getLoopsInReverseSiblingPreorder(), getNotRelocatableInstructions(), llvm::RecurrenceDescriptor::getSourceExtensionKind(), llvm::GetUnderlyingObjects(), llvm::getUnderlyingObjectsForCodeGen(), getUnwindDestToken(), getUnwindDestTokenHelper(), llvm::slpvectorizer::BoUpSLP::getVectorElementSize(), llvm::SDNode::hasPredecessorHelper(), llvm::HexagonMCShuffle(), llvm::DebugHandlerBase::identifyScopeMarkers(), llvm::LazyCallGraph::RefSCC::insertIncomingRefEdge(), llvm::MachineTraceMetrics::Ensemble::invalidate(), isAllocSiteRemovable(), llvm::LazyCallGraph::SCC::isAncestorOf(), llvm::CodeExtractor::isBlockValidForExtraction(), llvm::LazyCallGraph::RefSCC::isDescendantOf(), isEphemeralValueOf(), isLeakCheckerRoot(), isNonEscapingGlobalNoAliasWithLoad(), isObjectSizeLessThanOrEq(), isOnlyCopiedFromConstantGlobal(), llvm::isPotentiallyReachableFromMany(), IsStoredObjCPointer(), isSuccOrder(), isUniformlyReached(), IsValueFullyAvailableInBlock(), markAliveBlocks(), markTails(), memoryIsNotModifiedBetween(), llvm::PHITransAddr::PHITranslateWithInsertion(), llvm::BasicAAResult::pointsToConstantMemory(), llvm::SparseSet< unsigned, llvm::VirtReg2IndexFunctor >::pop_back_val(), llvm::WebAssemblyInstPrinter::printInst(), llvm::AlignmentFromAssumptionsPass::processAssumption(), llvm::RecursivelyDeleteTriviallyDeadInstructions(), llvm::SelectionDAG::RemoveDeadNodes(), llvm::LazyCallGraph::RefSCC::removeInternalRefEdge(), rewriteNonInstructionUses(), llvm::DomTreeBuilder::SemiNCAInfo< DomTreeT >::runDFS(), llvm::LoopVectorizePass::runImpl(), llvm::SUnit::setDepthDirty(), llvm::SUnit::setHeightDirty(), llvm::simplifyLoop(), SimplifyLoopInst(), llvm::LazyCallGraph::RefSCC::switchInternalEdgeToCall(), llvm::LazyCallGraph::RefSCC::switchInternalEdgeToRef(), llvm::JumpThreadingPass::ThreadEdge(), tryToVectorizeHorReductionOrInstOperands(), llvm::UnrollLoop(), updateLiveness(), verifyCTRBranch(), and llvm::LazyCallGraph::visitReferences().
|
inline |
Definition at line 377 of file SmallVector.h.
Referenced by llvm::DwarfCompileUnit::attachRangesOrLowHighPC(), llvm::EHStreamer::computeActionsTable(), llvm::computeDeadSymbols(), llvm::ConstantFoldGetElementPtr(), llvm::ConstantFoldInsertElementInstruction(), llvm::TypedInit::convertInitializerBitRange(), llvm::ListInit::convertInitializerTo(), llvm::TypedInit::convertInitListSlice(), llvm::ListInit::convertInitListSlice(), llvm::ConnectedVNInfoEqClasses::Distribute(), llvm::EHStreamer::emitExceptionTable(), emitIntrinsicWithChainAndGlue(), emitIntrinsicWithGlue(), EvaluateOperation(), ExpandBVWithShuffles(), extractVector(), llvm::FindInsertedValue(), llvm::AttributeList::get(), llvm::MachineInstrExpressionTrait::getHashValue(), llvm::TargetTransformInfoImplCRTPBase< AMDGPUTTIImpl >::getIntrinsicCost(), llvm::SelectionDAG::getMergeValues(), llvm::MDNode::getMostGenericRange(), llvm::ScalarEvolution::getMulExpr(), llvm::yaml::ScalarNode::getValue(), llvm::IntEqClasses::grow(), handleSymverAliases(), llvm::ScheduleDAGTopologicalSort::InitDAGTopologicalSorting(), llvm::InlineFunction(), llvm::SmallVectorImpl< std::pair< llvm::RelocationValueRef, llvm::RelocationEntry > >::insert(), insertParsePoints(), insertVector(), makeStatepointExplicit(), OptimizeAwayTrappingUsesOfValue(), llvm::slpvectorizer::BoUpSLP::optimizeGatherSequence(), llvm::CallGraph::print(), relocationViaAlloca(), llvm::IndexedMap< unsigned, llvm::VirtReg2IndexFunctor >::reserve(), llvm::ListInit::resolveReferences(), llvm::DagInit::resolveReferences(), llvm::SlotIndexes::runOnMachineFunction(), SimplifyCall(), simplifyShuffleOperandRecursively(), unswitchTrivialSwitch(), llvm::upgradeInstructionLoopAttachment(), upgradeLoopArgument(), llvm::InstCombiner::visitLandingPadInst(), llvm::WriteBitcodeToFile(), llvm::WriteIndexToFile(), and llvm::LLVMContextImpl::~LLVMContextImpl().
|
inline |
Definition at line 352 of file SmallVector.h.
Referenced by llvm::AttributeList::addAttributes(), llvm::AttributeList::addParamAttribute(), llvm::BitTracker::RegisterCell::cat(), llvm::CCState::CCState(), llvm::zlib::compress(), llvm::EHStreamer::computeCallSiteTable(), llvm::ConstantFoldGetElementPtr(), llvm::convertUTF8ToUTF16String(), llvm::DependenceInfo::depends(), llvm::ConnectedVNInfoEqClasses::Distribute(), llvm::MCWinCOFFStreamer::EmitCOFFSecRel32(), llvm::MCWinCOFFStreamer::EmitCOFFSectionIndex(), llvm::MCObjectStreamer::EmitDTPRel32Value(), llvm::MCObjectStreamer::EmitDTPRel64Value(), llvm::MCObjectStreamer::EmitGPRel32Value(), llvm::MCObjectStreamer::EmitGPRel64Value(), llvm::MCObjectStreamer::EmitTPRel32Value(), llvm::MCObjectStreamer::EmitTPRel64Value(), llvm::MCObjectStreamer::EmitValueImpl(), llvm::MachineTraceMetrics::Ensemble::Ensemble(), llvm::MDGlobalAttachmentMap::erase(), llvm::extractConstantMask(), llvm::UnwindOpcodeAssembler::Finalize(), llvm::SplitEditor::finish(), llvm::SelectionDAG::FoldConstantArithmetic(), llvm::rdf::Liveness::getAllReachingDefs(), llvm::RegsForValue::getCopyFromRegs(), llvm::pdb::DIARawSymbol::getDataBytes(), llvm::pdb::DIADataStream::getItemAtIndex(), llvm::LLVMContext::getMDKindNames(), llvm::MDNode::getMostGenericRange(), llvm::pdb::DIADataStream::getNext(), getNoopInput(), llvm::LLVMContextImpl::getOperandBundleTags(), llvm::DependenceInfo::getSplitIteration(), llvm::LLVMContextImpl::getSyncScopeNames(), getTargetConstantBitsFromNode(), getVPermMask(), llvm::TargetSchedModel::init(), llvm::SchedRemainder::init(), llvm::SchedBoundary::init(), llvm::codeview::TypeSerializer::insertRecord(), llvm::LiveRange::join(), llvm::BlockFrequencyInfoImplBase::LoopData::LoopData(), llvm::TargetLowering::LowerCallTo(), llvm::Regex::match(), llvm::IntervalMapImpl::Path::moveLeft(), llvm::object::ExportEntry::moveNext(), llvm::Triple::normalize(), llvm::RegisterBankInfo::OperandsMapper::OperandsMapper(), llvm::raw_ostream::operator<<(), llvm::DWARFDebugLoc::parse(), llvm::DWARFDebugLocDWO::parse(), parseBuildVersionCommand(), llvm::PredicateInfo::PredicateInfo(), llvm::PrettyStackTraceFormat::PrettyStackTraceFormat(), llvm::JumpThreadingPass::ProcessBranchOnPHI(), PropagateConstantsIntoArguments(), llvm::coverage::RawCoverageMappingReader::read(), llvm::AttributeList::removeAttributes(), llvm::SchedBoundary::reset(), llvm::IndexedMap< unsigned, llvm::VirtReg2IndexFunctor >::resize(), llvm::RegisterClassInfo::runOnMachineFunction(), llvm::MachineTraceMetrics::runOnMachineFunction(), llvm::SelectionDAGISel::SelectCodeCommon(), llvm::StructType::setName(), llvm::codeview::TypeRecordBuilder::truncate(), llvm::zlib::uncompress(), and upgrade().
|
inline |
Definition at line 365 of file SmallVector.h.
|
inline |
Set the array size to N, which the current array must have enough capacity for.
This does not construct or destroy any elements in the vector.
Clients can use this in conjunction with capacity() to write past the end of the buffer when they know that more elements are available, and only update the size later. This avoids the cost of value initializing elements which will only be overwritten.
Definition at line 686 of file SmallVector.h.
Referenced by llvm::sys::path::remove_filename(), and llvm::sys::path::replace_extension().
| void llvm::SmallVectorImpl< T >::swap | ( | SmallVectorImpl< T > & | RHS | ) |
Definition at line 693 of file SmallVector.h.
References llvm::sys::path::begin(), llvm::sys::path::end(), and std::swap().
Referenced by createUniqueEntity(), ExpandBVWithShuffles(), llvm::sys::fs::make_absolute(), llvm::sys::path::remove_dots(), llvm::sys::path::replace_path_prefix(), llvm::LiveIntervals::shrinkToUses(), std::swap(), and llvm::LazyCallGraph::RefSCC::switchInternalEdgeToRef().
1.8.6