LLVM  6.0.0svn
Public Types | Public Member Functions | Protected Member Functions | List of all members
llvm::SmallVectorImpl< T > Class Template Reference

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 >.

Collaboration diagram for llvm::SmallVectorImpl< T >:
Collaboration graph
[legend]

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)
 
SmallVectorImploperator= (const SmallVectorImpl &RHS)
 
SmallVectorImploperator= (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
 

Detailed Description

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

This class consists of common code factored out of the SmallVector class to reduce code duplication based on the SmallVector 'N' template parameter.

Definition at line 42 of file APFloat.h.

Member Typedef Documentation

◆ const_iterator

template<typename T>
using llvm::SmallVectorImpl< T >::const_iterator = typename SuperClass::const_iterator

Definition at line 329 of file SmallVector.h.

◆ iterator

template<typename T>
using llvm::SmallVectorImpl< T >::iterator = typename SuperClass::iterator

Definition at line 328 of file SmallVector.h.

◆ size_type

template<typename T>
using llvm::SmallVectorImpl< T >::size_type = typename SuperClass::size_type

Definition at line 330 of file SmallVector.h.

Constructor & Destructor Documentation

◆ SmallVectorImpl() [1/2]

template<typename T>
llvm::SmallVectorImpl< T >::SmallVectorImpl ( unsigned  N)
inlineexplicitprotected

Definition at line 334 of file SmallVector.h.

◆ SmallVectorImpl() [2/2]

template<typename T>
llvm::SmallVectorImpl< T >::SmallVectorImpl ( const SmallVectorImpl< T > &  )
delete

◆ ~SmallVectorImpl()

template<typename T>
llvm::SmallVectorImpl< T >::~SmallVectorImpl ( )
inline

Definition at line 341 of file SmallVector.h.

Member Function Documentation

◆ append() [1/3]

template<typename T>
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 llvm::SmallVectorImpl< T >::append ( in_iter  in_start,
in_iter  in_end 
)
inline

Add the specified range to the end of the SmallVector.

Definition at line 398 of file SmallVector.h.

Referenced by llvm::opt::ArgList::AddAllArgValues(), addAllGlobalValueUsers(), llvm::RecurrenceDescriptor::AddReductionVar(), addStackMapLiveVars(), llvm::CodeViewContext::addToStringTable(), llvm::DebugLocEntry::addValues(), analyzeLoopUnrollCost(), llvm::SmallString< 256 >::append(), llvm::sys::path::append(), llvm::RegsForValue::append(), llvm::internal::appendLoopsToWorklist(), appendLoopsToWorklist(), llvm::SmallString< 256 >::assign(), buildMultiplyTree(), CallingConvSupported(), canGoAfterDWARF(), checkClobberSanity(), CollectSubexprs(), combineConcatVectorOfExtracts(), combineToExtendBoolVectorInReg(), llvm::MCCodePaddingPolicy::computeFirstWindowPenaltyWeight(), llvm::concatenateVectors(), llvm::ConstantFoldGetElementPtr(), llvm::DwarfCompileUnit::constructVariableDIE(), llvm::createGreedyRegisterAllocator(), createRdxShuffleMask(), llvm::DecodeEXTRQIMask(), llvm::DecodeINSERTQIMask(), llvm::DecodeVectorBroadcast(), EmitAddTreeOfValues(), llvm::MCObjectStreamer::EmitBytes(), llvm::InstrEmitter::EmitDbgValue(), llvm::MCELFStreamer::EmitIdent(), llvm::MCWasmStreamer::EmitIdent(), llvm::MCWinCOFFStreamer::EmitInstToData(), llvm::MCObjectStreamer::EmitInstToFragment(), emitSignedInt64(), eraseGPOpnd(), llvm::DIBuilder::finalizeSubprogram(), llvm::FindInsertedValue(), llvm::SSAUpdaterTraits< SSAUpdater >::FindPredecessorBlocks(), findUser(), foldBitcastedFPLogic(), FoldCONCAT_VECTORS(), llvm::X86InstrInfo::foldMemoryOperandImpl(), llvm::ScalarEvolution::forgetLoop(), llvm::ScalarEvolution::getAddExpr(), llvm::ScalarEvolution::getAddRecExpr(), getARClassRegisterMask(), getAttrKindEncoding(), llvm::DominatorTreeBase< BasicBlock, false >::getDescendants(), getFauxShuffleMask(), getHostID(), llvm::LoopInfoBase< BasicBlock, Loop >::getLoopsInPreorder(), llvm::LoopInfoBase< BasicBlock, Loop >::getLoopsInReverseSiblingPreorder(), llvm::ScalarEvolution::getMulExpr(), getNoopInput(), getRangeForAffineARHelper(), llvm::object::ELFFile< ELFT >::getRelocationTypeName(), llvm::object::WasmObjectFile::getRelocationTypeName(), llvm::object::MachOObjectFile::getRelocationTypeName(), llvm::object::COFFObjectFile::getRelocationTypeName(), getSignature(), llvm::ScalarEvolution::getSMaxExpr(), llvm::ConstantDataArray::getString(), getTargetConstantBitsFromNode(), llvm::ScalarEvolution::getUDivExactExpr(), llvm::ScalarEvolution::getUMaxExpr(), llvm::DebugHandlerBase::identifyScopeMarkers(), llvm::detail::IEEEFloat::IEEEFloat(), INITIALIZE_PASS(), llvm::InlineFunction(), llvm::opt::InputArgList::InputArgList(), llvm::LazyCallGraph::RefSCC::insertIncomingRefEdge(), llvm::MipsAnalyzeImmediate::Inst::Inst(), isAlwaysFoldable(), isObjectStart(), llvm::isPotentiallyReachableFromMany(), isTerminalReg(), IsValueFullyAvailableInBlock(), LowerBITCAST(), LowerBUILD_VECTORAsVariablePermute(), llvm::TargetLowering::LowerCallTo(), llvm::SITargetLowering::LowerFormalArguments(), llvm::NVPTXTargetLowering::LowerOperation(), llvm::MCELFStreamer::MCELFStreamer(), moveBelowOrigChain(), peekThroughBitcast(), 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(), resolveTypeIndexReferences(), rotateSign(), llvm::LoopFullUnrollPass::run(), llvm::EngineBuilder::setMAttrs(), llvm::CaptureTracker::shouldExplore(), SimplifyAddOperands(), simplifyAllocaArraySize(), SortNonLocalDepInfoCache(), SplitAddRecs(), llvm::detail::IEEEFloat::toString(), llvm::APInt::toString(), useSinCos(), llvm::InstCombiner::visitGetElementPtrInst(), wrapConstantAsMetadata(), and llvm::MCWasmStreamer::~MCWasmStreamer().

◆ append() [2/3]

template<typename T>
void llvm::SmallVectorImpl< T >::append ( size_type  NumInputs,
const T Elt 
)
inline

Add the specified range to the end of the SmallVector.

Definition at line 410 of file SmallVector.h.

◆ append() [3/3]

template<typename T>
void llvm::SmallVectorImpl< T >::append ( std::initializer_list< T IL)
inline

Definition at line 420 of file SmallVector.h.

◆ assign() [1/3]

template<typename T>
void llvm::SmallVectorImpl< T >::assign ( size_type  NumElts,
const T Elt 
)
inline

◆ assign() [2/3]

template<typename T>
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 llvm::SmallVectorImpl< T >::assign ( in_iter  in_start,
in_iter  in_end 
)
inline

Definition at line 439 of file SmallVector.h.

◆ assign() [3/3]

template<typename T>
void llvm::SmallVectorImpl< T >::assign ( std::initializer_list< T IL)
inline

Definition at line 444 of file SmallVector.h.

◆ clear()

template<typename T>
void llvm::SmallVectorImpl< T >::clear ( )
inline

Definition at line 350 of file SmallVector.h.

Referenced by llvm::PMDataManager::add(), llvm::LiveIntervals::addKillFlags(), addSegmentsWithValNo(), llvm::BPFInstrInfo::analyzeBranch(), llvm::ARCInstrInfo::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(), appendLoopsToWorklist(), llvm::HexagonFrameLowering::assignCalleeSavedSpillSlots(), bothUsedInPHI(), llvm::SSAUpdaterImpl< UpdaterT >::BuildBlockList(), llvm::IDFCalculator< NodeTy, IsPostDom >::calculate(), llvm::calculateClrEHStateNumbers(), llvm::LiveRangeCalc::calculateValues(), callsiteIsHot(), canFoldInAddressingMode(), llvm::CC_ARM_AAPCS_Custom_Aggregate(), llvm::HexagonShuffler::check(), checkClobberSanity(), CheckForLiveRegDef(), llvm::MipsCCState::CheckReturn(), CleanupPointerRootUsers(), llvm::IntEqClasses::clear(), llvm::IndexedMap< unsigned, llvm::VirtReg2IndexFunctor >::clear(), llvm::AssumptionCache::clear(), llvm::DomainValue::clear(), llvm::ArrayRecycler< llvm::MachineOperand >::clear(), llvm::SpillPlacement::Node::clear(), llvm::SmallSet< unsigned, 16 >::clear(), llvm::SchedDFSResult::clear(), llvm::SDDbgInfo::clear(), llvm::MCInst::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(), CloneLoop(), llvm::collectCmpOps(), collectDebugValues(), combineShuffle(), llvm::LTOCodeGenerator::compile(), llvm::ScalarEvolution::computeAccessFunctions(), llvm::ComputeSignatureVTs(), llvm::convertUTF8ToUTF16String(), createAndInstr(), llvm::LiveRangeCalc::createDeadDefs(), llvm::createGreedyRegisterAllocator(), llvm::VerifierSupport::DebugInfoCheckFailed(), decodeLLVMAttributesForBitcode(), llvm::DecodeVPPERMMask(), llvm::ConnectedVNInfoEqClasses::Distribute(), llvm::AsmPrinter::doFinalization(), doPromotion(), llvm::GVNExpression::Expression::dump(), emitComments(), emitSignedInt64(), llvm::CodeViewContext::encodeDefRange(), llvm::CodeViewContext::encodeInlineLineTable(), ExpandBVWithShuffles(), llvm::ARMTargetLowering::ExpandInlineAsm(), llvm::X86TargetLowering::ExpandInlineAsm(), llvm::object::ExportEntry::ExportEntry(), llvm::finalizeBundle(), llvm::IntervalMap< SlotIndex, unsigned >::find(), FindAllMemoryUses(), llvm::ScalarEvolution::findArrayDimensions(), findBaseOffset(), findConsecutiveLoad(), FindMostPopularDest(), llvm::MCAssembler::Finish(), llvm::SplitEditor::finish(), ForeachHelper(), llvm::formDedicatedExitBlocks(), llvm::formLCSSAForInstructions(), llvm::ScalarEvolution::getAddExpr(), getAdjustedPtr(), GetAEABIUnwindPersonalityName(), llvm::RegBankSelect::getAnalysisUsage(), getAttrFromCode(), getAttrKindEncoding(), getBranchDebugLoc(), llvm::RegsForValue::getCopyFromRegs(), llvm::TargetSubtargetInfo::getCriticalPathRCs(), llvm::yaml::Input::getCurrentNode(), llvm::pdb::DIARawSymbol::getDataBytes(), llvm::pdb::NativeRawSymbol::getDataBytes(), llvm::DominatorTreeBase< BasicBlock, false >::getDescendants(), getEncodedUnnamedAddr(), getFallThroughMBB(), getFauxShuffleMask(), getFPReg(), getHostID(), getLayoutSuccessorProbThreshold(), getLoopLatchExitBlock(), getMemmoveLoadsAndStores(), getMemSetPatternValue(), llvm::pdb::DIADataStream::getNext(), llvm::MemoryDependenceResults::getNonLocalPointerDependency(), getOptimizationFlags(), getRetComponentType(), llvm::GetShadowBytes(), getStartOrEndSlot(), getStringEncoding(), getSuccPad(), llvm::ScalarEvolution::getUDivExpr(), getUnderlyingObjects(), llvm::getUnderlyingObjectsForCodeGen(), getUnderlyingObjectsForInstr(), llvm::Loop::getUniqueExitBlocks(), llvm::yaml::ScalarNode::getValue(), handleSymverAliases(), hasObjCCategoryInModule(), hasTiedDef(), llvm::detail::IEEEFloat::IEEEFloat(), INITIALIZE_PASS(), llvm::InlineFunction(), insertVector(), llvm::MipsAnalyzeImmediate::Inst::Inst(), InstructionStoresToFI(), is_ns_word_char(), llvm::isAllocaPromotable(), isCompareZero(), isImmValidForOpcode(), isLive(), IsNonLocalValue(), isObjectStart(), IsSafeAndProfitableToMove(), isTerminalReg(), jumpToValueSymbolTable(), llvm::DomTreeBuilder::SemiNCAInfo< DomTreeT >::LegalizeUpdates(), llvm::llvm_is_multithreaded(), LoopIsOuterMostWithPredecessor(), llvm::X86CallLowering::lowerCall(), llvm::ARMCallLowering::lowerCall(), llvm::AArch64CallLowering::lowerCall(), llvm::NVPTXTargetLowering::LowerCall(), llvm::ARMCallLowering::lowerFormalArguments(), llvm::NVPTXTargetLowering::LowerReturn(), makeAllConstantUsesInstructions(), llvm::Regex::match(), mayLoopAccessLocation(), mergeConstants(), llvm::DebugLocEntry::MergeValues(), moveBelowOrigChain(), llvm::sys::path::native(), okayForPHIOfOps(), false::IntervalSorter::operator()(), operator<<(), llvm::BlockFrequencyInfoImplBase::packageLoop(), parseCond(), llvm::MetadataLoader::MetadataLoaderImpl::parseMetadata(), llvm::MetadataLoader::MetadataLoaderImpl::parseMetadataAttachment(), llvm::MetadataLoader::MetadataLoaderImpl::parseMetadataKinds(), parseOperands(), llvm::MemoryDepChecker::Dependence::print(), PushArgMD(), pushDepHeight(), llvm::sampleprof::SampleProfileReaderText::read(), llvm::BitstreamCursor::ReadBlockInfoBlock(), readIdentificationBlock(), readModuleTriple(), readWideAPInt(), llvm::HexagonInstrInfo::reduceLoopCount(), RefineErrorLoc(), llvm::RuntimeDyldELF::registerEHFrames(), llvm::MachineDominatorTree::releaseMemory(), llvm::LiveIntervals::releaseMemory(), llvm::SlotIndexes::releaseMemory(), reorderSubVector(), llvm::UnwindOpcodeAssembler::Reset(), llvm::codeview::TypeRecordBuilder::reset(), llvm::codeview::TypeSerializer::reset(), llvm::HexagonShuffler::reset(), llvm::MCLOHContainer::reset(), llvm::LiveRangeCalc::reset(), llvm::InlineFunctionInfo::reset(), llvm::MCStreamer::reset(), llvm::MCContext::reset(), llvm::SchedRemainder::reset(), llvm::DominatorTreeBase< BasicBlock, false >::reset(), llvm::ARMFrameLowering::ResolveFrameIndexReference(), resolveTypeIndexReferences(), rotateSign(), llvm::TypeFinder::run(), llvm::WholeProgramDevirtPass::run(), llvm::DevirtSCCRepeatedPass< PassT >::run(), runIPSCCP(), llvm::MachineDominatorTree::runOnMachineFunction(), llvm::SelectionDAGISel::SelectCodeCommon(), llvm::MachineRegisterInfo::setCalleeSavedRegs(), llvm::FileRemover::setFile(), llvm::EngineBuilder::setMAttrs(), llvm::IntervalMapImpl::Path::setRoot(), setupSwiftErrorVals(), shouldInstrumentReadWriteFromAddress(), SimplifyAddOperands(), SimplifyLoopInst(), sinkLastInstruction(), SortNonLocalDepInfoCache(), llvm::SplitCriticalEdge(), StripSymbolNames(), llvm::LazyCallGraph::RefSCC::switchInternalEdgeToRef(), llvm::RegBankSelect::RepairingPlacement::switchTo(), llvm::TailDuplicator::tailDuplicateAndUpdate(), llvm::cl::TokenizeGNUCommandLine(), llvm::cl::TokenizeWindowsCommandLine(), truncateToSize(), tryFoldInst(), tryToVectorizeHorReductionOrInstOperands(), llvm::BlockFrequencyInfoImplBase::updateLoopWithIrreducible(), llvm::MachineBasicBlock::updateTerminator(), llvm::MetadataLoader::MetadataLoaderImpl::upgradeDebugIntrinsics(), UseReg(), llvm::ValueEnumerator::ValueEnumerator(), llvm::MemorySSA::verifyOrdering(), llvm::codeview::TypeSerializer::visitTypeEndGetIndex(), writeFunctionTypeMetadataRecords(), llvm::WriteIndexToFile(), and llvm::MachineFunction::~MachineFunction().

◆ emplace_back()

template<typename T>
template<typename... ArgTypes>
void llvm::SmallVectorImpl< T >::emplace_back ( ArgTypes &&...  Args)
inline

Definition at line 656 of file SmallVector.h.

Referenced by llvm::AArch64CallLowering::AArch64CallLowering(), addData(), addEdge(), llvm::RegBankSelect::RepairingPlacement::addInsertPoint(), AdjustStackOffset(), alwaysAvailable(), AnyAliasLiveIn(), llvm::IDFCalculator< NodeTy, IsPostDom >::calculate(), llvm::calculateClrEHStateNumbers(), canFoldIVIncExpr(), CC_MipsO32_FP64(), checkClobberSanity(), CloneInstructionInExitBlock(), computeImportForFunction(), llvm::JumpThreadingPass::ComputeValueKnownInPredecessors(), ConvertToSInt(), createImportedModule(), llvm::DWARFContext::defaultErrorHandler(), DeleteTriviallyDeadInstructions(), llvm::GVNExpression::Expression::dump(), ensurePromotedGV(), llvm::ScalarEvolution::forgetValue(), llvm::AttributeSetNode::get(), llvm::AttributeList::get(), llvm::IRTranslator::getAnalysisUsage(), llvm::RegBankSelect::getAnalysisUsage(), getArrayElements(), llvm::LoopBase< BasicBlock, Loop >::getExitEdges(), getGNUBinOpPrecedence(), getLayoutSuccessorProbThreshold(), llvm::DebugLocStream::getLists(), llvm::OperandBundleUser< InvokeInst, User::op_iterator >::getOperandBundlesAsDefs(), llvm::slpvectorizer::BoUpSLP::getORE(), getOtherIncomingValue(), getTryAncestor(), llvm::InlineFunction(), llvm::TargetPassConfig::insertPass(), insertSpills(), llvm::LazyCallGraph::RefSCC::insertTrivialCallEdge(), llvm::LazyCallGraph::RefSCC::insertTrivialRefEdge(), isAllocSiteRemovable(), isObjectStart(), isOnlyCopiedFromConstantGlobal(), isSupportedType(), LinearizeExprTree(), llvm::SITargetLowering::LowerCall(), needsReferenceType(), NewGVN::ValueDFS::operator<(), operator<<(), parseOptionalLinkageAux(), previousIsLoop(), llvm::SCEVExpander::replaceCongruentIVs(), rewritesSort(), llvm::MachineFunction::setVariableDbgInfo(), and llvm::X86CallLowering::X86CallLowering().

◆ erase() [1/2]

template<typename T>
iterator llvm::SmallVectorImpl< T >::erase ( const_iterator  CI)
inline

Definition at line 449 of file SmallVector.h.

Referenced by buildMultiplyTree(), CheckBaseRegAndIndexRegAndScale(), collectMultiplyFactors(), createAndInstr(), llvm::createX86OptimizeLEAs(), llvm::ARMFrameLowering::determineCalleeSaves(), llvm::MachineRegisterInfo::disableCalleeSavedRegister(), doesIgnoreDataTypeSuffix(), llvm::GVNExpression::Expression::dump(), EmitAddTreeOfValues(), llvm::SmallSet< unsigned, 16 >::erase(), llvm::MCInst::erase(), llvm::cl::ExpandResponseFiles(), llvm::ScalarEvolution::findArrayDimensions(), llvm::LiveRangeUpdater::flush(), llvm::DomTreeBuilder::SemiNCAInfo< DomTreeT >::ChildrenGetter< Inverse >::Get(), llvm::ScalarEvolution::getAddExpr(), getArrayElements(), getLayoutSuccessorProbThreshold(), llvm::ScalarEvolution::getMulExpr(), getNaturalGEPWithType(), getNextRegister(), llvm::ScalarEvolution::getSMaxExpr(), getTypePartition(), llvm::ScalarEvolution::getUMaxExpr(), llvm::detail::IEEEFloat::IEEEFloat(), INITIALIZE_PASS(), inlineCallsImpl(), llvm::InlineFunction(), llvm::MipsAnalyzeImmediate::Inst::Inst(), is_ns_word_char(), isProfitableChain(), isTerminalReg(), isVectorPromotionViable(), llvm::MCAsmLexer::Lex(), llvm::coverage::CoverageMapping::load(), lowerV16I8VectorShuffle(), lowerV8I16GeneralSingleInputVectorShuffle(), MaybePredicatedInst(), MergeAliasResults(), llvm::DebugLocEntry::MergeValues(), OptimizeAndOrXor(), peekThroughBitcast(), populateExternalRelations(), llvm::MachineInstr::print(), promoteSingleBlockAlloca(), relocationViaAlloca(), llvm::MDAttachmentMap::remove_if(), llvm::LazyCallGraph::removeDeadFunction(), llvm::LegacyInlinerBase::removeDeadFunctions(), RemoveInstInputs(), llvm::LazyCallGraph::RefSCC::removeInternalRefEdge(), llvm::cl::parser< const PassInfo *>::removeLiteralOption(), removeRegLanes(), llvm::LiveRange::removeSegment(), llvm::Record::removeValue(), rewritesSort(), llvm::AlwaysInlinerPass::run(), SimplifyBranchOnICmpChain(), sortGlobalExprs(), llvm::DebugLocEntry::sortUniqueValues(), llvm::LazyCallGraph::RefSCC::switchInternalEdgeToRef(), unique_unsorted(), llvm::updateCGAndAnalysisManagerForFunctionPass(), llvm::BlockFrequencyInfoImplBase::updateLoopWithIrreducible(), VerifySubExpr(), and llvm::InstCombiner::visitLandingPadInst().

◆ erase() [2/2]

template<typename T>
iterator llvm::SmallVectorImpl< T >::erase ( const_iterator  CS,
const_iterator  CE 
)
inline

Definition at line 464 of file SmallVector.h.

◆ insert() [1/5]

template<typename T>
iterator llvm::SmallVectorImpl< T >::insert ( iterator  I,
T &&  Elt 
)
inline

Definition at line 482 of file SmallVector.h.

Referenced by addData(), llvm::DwarfFile::addScopeVariable(), llvm::MipsInstrInfo::analyzeBranch(), appendDomFrontier(), buildMultiplyTree(), callsiteIsHot(), canFoldIVIncExpr(), canPaddingBeAccessed(), llvm::rdf::Liveness::computePhiInfo(), llvm::DwarfCompileUnit::constructScopeDIE(), createAndInstr(), llvm::ScalarEvolution::delinearize(), doesIgnoreDataTypeSuffix(), doPromotion(), llvm::UnwindOpcodeAssembler::EmitRaw(), llvm::cl::ExpandResponseFiles(), findConsecutiveLoad(), FitWeights(), llvm::LiveRangeUpdater::flush(), llvm::BinOpInit::Fold(), generateEquivalentSub(), llvm::AttributeList::get(), llvm::rdf::Liveness::getAllReachingDefs(), llvm::SelectionDAG::getConstant(), llvm::MCDwarfLineTableHeader::getFile(), getParentPad(), llvm::yaml::ScalarNode::getValue(), llvm::MCInst::insert(), insertParsePoints(), isObjectStart(), isOnlyReachableViaThisEdge(), isProfitableChain(), IsSingleInstrConstant(), isSortedByValueNo(), llvm::MCAsmLexer::Lex(), llvm::BlockFrequencyInfoImplBase::LoopData::LoopData(), llvm::SelectionDAGBuilder::LowerAsSTATEPOINT(), LowerInterruptReturn(), MaybePredicatedInst(), llvm::SplitEditor::overlapIntv(), PrepareCall(), previousIsLoop(), llvm::sampleprof::SampleProfileReaderGCC::readOneFunctionProfile(), llvm::AArch64TargetLowering::ReconstructShuffle(), llvm::IntervalMapImpl::Path::replaceRoot(), rewritesSort(), llvm::LoopPredicationPass::run(), sinkInstruction(), StripSymbolNames(), swapAntiDependences(), tryToVectorizeHorReductionOrInstOperands(), llvm::MCAsmLexer::UnLex(), llvm::WriteBitcodeToFile(), and writeFunctionTypeMetadataRecords().

◆ insert() [2/5]

template<typename T>
iterator llvm::SmallVectorImpl< T >::insert ( iterator  I,
const T Elt 
)
inline

Definition at line 512 of file SmallVector.h.

◆ insert() [3/5]

template<typename T>
iterator llvm::SmallVectorImpl< T >::insert ( iterator  I,
size_type  NumToInsert,
const T Elt 
)
inline

Definition at line 541 of file SmallVector.h.

◆ insert() [4/5]

template<typename T>
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 llvm::SmallVectorImpl< T >::insert ( iterator  I,
ItTy  From,
ItTy  To 
)
inline

Definition at line 596 of file SmallVector.h.

◆ insert() [5/5]

template<typename T>
void llvm::SmallVectorImpl< T >::insert ( iterator  I,
std::initializer_list< T IL 
)
inline

Definition at line 652 of file SmallVector.h.

◆ operator!=()

template<typename T>
bool llvm::SmallVectorImpl< T >::operator!= ( const SmallVectorImpl< T > &  RHS) const
inline

Definition at line 671 of file SmallVector.h.

◆ operator<()

template<typename T>
bool llvm::SmallVectorImpl< T >::operator< ( const SmallVectorImpl< T > &  RHS) const
inline

Definition at line 675 of file SmallVector.h.

◆ operator=() [1/2]

template<typename T >
SmallVectorImpl< T > & llvm::SmallVectorImpl< T >::operator= ( const SmallVectorImpl< T > &  RHS)

◆ operator=() [2/2]

template<typename T >
SmallVectorImpl< T > & llvm::SmallVectorImpl< T >::operator= ( SmallVectorImpl< T > &&  RHS)

Definition at line 783 of file SmallVector.h.

◆ operator==()

template<typename T>
bool llvm::SmallVectorImpl< T >::operator== ( const SmallVectorImpl< T > &  RHS) const
inline

Definition at line 667 of file SmallVector.h.

◆ pop_back_val()

template<typename T>
LLVM_NODISCARD T llvm::SmallVectorImpl< T >::pop_back_val ( )
inline

Definition at line 385 of file SmallVector.h.

Referenced by addAllGlobalValueUsers(), addBlockAndPredsToSet(), AddReachableCodeToWorklist(), llvm::ARMFrameLowering::adjustForSegmentedStacks(), allUsersAreInFunction(), allUsersAreInFunctions(), analyzeLoopUnrollCost(), llvm::internal::appendLoopsToWorklist(), appendLoopsToWorklist(), llvm::DomTreeBuilder::SemiNCAInfo< DomTreeT >::ApplyNextUpdate(), llvm::SSAUpdaterImpl< UpdaterT >::BuildBlockList(), buildClonedLoops(), buildMultiplyTree(), llvm::IDFCalculator< NodeTy, IsPostDom >::calculate(), llvm::calculateClrEHStateNumbers(), canTRE(), castRequiresQueuePtr(), checkClobberSanity(), llvm::SSAUpdaterImpl< UpdaterT >::CheckIfPHIMatches(), checkScale(), llvm::TypeFinder::clear(), cloneLoopNest(), collectFuncletMembers(), llvm::colorEHFunclets(), combineOrCmpEqZeroToCtlzSrl(), combineRedundantDWordShuffle(), llvm::FunctionComparator::compare(), computeBlocksDominatingExits(), llvm::computeDeadSymbols(), ComputeImportForModule(), llvm::computeMinimumValueSizes(), llvm::slpvectorizer::BoUpSLP::computeMinimumValueSizes(), ComputePostOrders(), ConstHasGlobalValuePredicate(), llvm::createObjCARCOptPass(), deleteDeadInstruction(), DeleteTriviallyDeadInstructions(), despeculateCountZeros(), llvm::ARMFrameLowering::determineCalleeSaves(), determinePointerReadAttrs(), llvm::JumpThreadingPass::DuplicateCondBranchOnPHIIntoPred(), llvm::LiveRangeEdit::eliminateDeadDefs(), findBaseOffset(), findBasePointer(), llvm::objcarc::FindDependencies(), llvm::FindFunctionBackedges(), findRefEdges(), findRetainForStoreStrongContraction(), FitWeights(), llvm::ScalarEvolution::forgetLoop(), llvm::ScalarEvolution::forgetValue(), llvm::formLCSSAForInstructions(), llvm::FunctionComparator::functionHash(), getBaseType(), GetConstantInt(), getCoroBeginPredBlocks(), llvm::DominatorTreeBase< BasicBlock, false >::getDescendants(), llvm::DomTreeNodeBase< BasicBlock >::getDFSNumOut(), getInductionVariable(), llvm::MemoryDependenceResults::getInvariantGroupPointerDependency(), getLoopLatchExitBlock(), llvm::LoopInfoBase< BasicBlock, Loop >::getLoopsInPreorder(), llvm::LoopInfoBase< BasicBlock, Loop >::getLoopsInReverseSiblingPreorder(), getNotRelocatableInstructions(), getOrExecSource(), getRangeForAffineARHelper(), llvm::SystemZRegisterInfo::getRegAllocationHints(), llvm::RecurrenceDescriptor::getSourceExtensionKind(), getTryAncestor(), llvm::GetUnderlyingObjects(), llvm::getUnderlyingObjectsForCodeGen(), getUnwindDestToken(), getUnwindDestTokenHelper(), getVCmpInst(), llvm::slpvectorizer::BoUpSLP::getVectorElementSize(), hasOutsideLoopUser(), llvm::SDNode::hasPredecessorHelper(), hasStoreUsersOnly(), hasTiedDef(), llvm::HexagonMCShuffle(), llvm::DebugHandlerBase::identifyScopeMarkers(), llvm::LazyCallGraph::RefSCC::insertIncomingRefEdge(), InstructionStoresToFI(), llvm::MachineTraceMetrics::Ensemble::invalidate(), is_ns_word_char(), isAllocSiteRemovable(), isAlwaysFoldable(), llvm::LazyCallGraph::SCC::isAncestorOf(), llvm::LazyCallGraph::RefSCC::isAncestorOf(), llvm::CodeExtractor::isBlockValidForExtraction(), isDefInSubRange(), isEphemeralValueOf(), isFullCopyOf(), isFuncOrArgAttr(), isLeakCheckerRoot(), isNonEscapingGlobalNoAliasWithLoad(), isObjectSizeLessThanOrEq(), isObjectStart(), isOnlyCopiedFromConstantGlobal(), isOnlyReachableViaThisEdge(), isOpcodeHandled(), llvm::isPotentiallyReachableFromMany(), isSimpleIVUser(), IsStoredObjCPointer(), isStrideMul(), isSubregOf(), isSuccOrder(), isTargetConstant(), isUniformlyReached(), IsValueFullyAvailableInBlock(), markAliveBlocks(), MarkBlocksLiveIn(), markTails(), matchBinaryPredicate(), mayLoadFromGOTOrConstantPool(), memoryIsNotModifiedBetween(), mergeCleanupPad(), MoveAndTeeForMultiUse(), okayForPHIOfOps(), operator<<(), packCmovGroup(), llvm::PHITransAddr::PHITranslateWithInsertion(), llvm::BasicAAResult::pointsToConstantMemory(), llvm::GISelWorkList< N >::pop_back_val(), llvm::SparseSet< unsigned, llvm::VirtReg2IndexFunctor >::pop_back_val(), llvm::ValueEnumerator::print(), llvm::WebAssemblyInstPrinter::printInst(), llvm::AlignmentFromAssumptionsPass::processAssumption(), propagateMetadata(), PushDefUseChildren(), PushLoopPHIs(), rebuildLoopAfterUnswitch(), recomputeLoopBlockSet(), llvm::RecursivelyDeleteTriviallyDeadInstructions(), llvm::DemandedBitsWrapperPass::releaseMemory(), llvm::safestack::StackColoring::removeAllMarkers(), llvm::LazyCallGraph::removeDeadFunction(), llvm::SelectionDAG::RemoveDeadNodes(), llvm::LazyCallGraph::RefSCC::removeInternalRefEdge(), llvm::InstCombineWorklist::RemoveOne(), removePhis(), RemoveUnusedGlue(), reportFastISelFailure(), reportMayClobberedLoad(), rewriteNonInstructionUses(), llvm::LoopUnrollPass::run(), llvm::DomTreeBuilder::SemiNCAInfo< DomTreeT >::runDFS(), llvm::LoopVectorizePass::runImpl(), llvm::SUnit::setDepthDirty(), llvm::SUnit::setHeightDirty(), SimplifyLoopInst(), AllocaSlices::SliceBuilder::SliceBuilder(), SortNonLocalDepInfoCache(), llvm::LazyCallGraph::RefSCC::switchInternalEdgeToCall(), llvm::LazyCallGraph::RefSCC::switchInternalEdgeToRef(), llvm::JumpThreadingPass::ThreadEdge(), transformToIndexedCompare(), truncateIVUse(), llvm::UnrollLoop(), llvm::MachineTraceMetrics::Ensemble::updateDepths(), updateLiveness(), usedAsAddr(), verifyCTRBranch(), llvm::SCEVTraversal< SV >::visitAll(), llvm::InstCombiner::visitAnd(), visitDomSubTree(), llvm::DomTreeBuilder::SemiNCAInfo< DomTreeT >::VisitInsertion(), llvm::LazyCallGraph::visitReferences(), and wrapConstantAsMetadata().

◆ reserve()

template<typename T>
void llvm::SmallVectorImpl< T >::reserve ( size_type  N)
inline

Definition at line 380 of file SmallVector.h.

Referenced by llvm::InstCombineWorklist::AddInitialGroup(), llvm::DwarfCompileUnit::attachRangesOrLowHighPC(), buildClonedLoopBlocks(), buildClonedLoops(), buildMultiplyTree(), llvm::LiveRangeCalc::calculateValues(), CC_MipsO32_FP64(), llvm::LTOCodeGenerator::compile(), llvm::EHStreamer::computeActionsTable(), llvm::computeDeadSymbols(), computeWeight(), llvm::ConstantFoldGetElementPtr(), llvm::ConstantFoldInsertElementInstruction(), llvm::TypedInit::convertInitializerBitRange(), llvm::ListInit::convertInitializerTo(), llvm::TypedInit::convertInitListSlice(), llvm::ListInit::convertInitListSlice(), llvm::createLICMPass(), definesFullReg(), llvm::ConnectedVNInfoEqClasses::Distribute(), llvm::DWARFGdbIndex::dump(), EmitAddTreeOfValues(), llvm::EHStreamer::emitExceptionTable(), emitIntrinsicWithChainAndGlue(), emitIntrinsicWithGlue(), EvaluateOperation(), ExpandBVWithShuffles(), extractVector(), findInitTrampoline(), llvm::FindInsertedValue(), foldSelectICmpAndOr(), llvm::AttributeList::get(), getArrayElements(), getCompareCC(), getComparePred(), getExpandedMinMaxOps(), llvm::MachineInstrExpressionTrait::getHashValue(), llvm::TargetTransformInfoImplCRTPBase< AMDGPUTTIImpl >::getIntrinsicCost(), llvm::SelectionDAG::getMergeValues(), getMetadataTypeOrder(), llvm::MDNode::getMostGenericRange(), llvm::ScalarEvolution::getMulExpr(), getStartOrEndSlot(), getSuccPad(), llvm::yaml::ScalarNode::getValue(), llvm::IntEqClasses::grow(), llvm::Constant::handleOperandChange(), handleSymverAliases(), llvm::InlineFunction(), insertVector(), llvm::DomTreeBuilder::SemiNCAInfo< DomTreeT >::LegalizeUpdates(), makeStatepointExplicit(), false::IntervalSorter::operator()(), operator<<(), OptimizeAwayTrappingUsesOfValue(), llvm::MetadataLoader::MetadataLoaderImpl::parseMetadata(), llvm::DWARFDebugLoc::parseOneLocationList(), llvm::CallGraph::print(), rebuildLoopAfterUnswitch(), relocationViaAlloca(), llvm::IndexedMap< unsigned, llvm::VirtReg2IndexFunctor >::reserve(), llvm::ListInit::resolveReferences(), llvm::DagInit::resolveReferences(), rotateSign(), llvm::SlotIndexes::runOnMachineFunction(), selectJumpTableArmEncoding(), SimplifyCall(), simplifyShuffleOperandRecursively(), StackMallocSizeClass(), llvm::StripDebugInfo(), unswitchTrivialSwitch(), llvm::MetadataLoader::MetadataLoaderImpl::upgradeDebugIntrinsics(), llvm::upgradeInstructionLoopAttachment(), upgradeLoopArgument(), llvm::InstCombiner::visitLandingPadInst(), wrapConstantAsMetadata(), llvm::WriteBitcodeToFile(), llvm::WriteIndexToFile(), llvm::WriteThinLinkBitcodeToFile(), and llvm::LLVMContextImpl::~LLVMContextImpl().

◆ resize() [1/2]

template<typename T>
void llvm::SmallVectorImpl< T >::resize ( size_type  N)
inline

Definition at line 355 of file SmallVector.h.

Referenced by llvm::AttributeList::addAttributes(), addData(), llvm::AttributeList::addParamAttribute(), AssignProtectedObjSet(), llvm::BitTracker::RegisterCell::cat(), llvm::CCState::CCState(), llvm::zlib::compress(), llvm::EHStreamer::computeCallSiteTable(), concatSubVector(), llvm::ConstantFoldGetElementPtr(), llvm::convertUTF8ToUTF16String(), llvm::createGreedyRegisterAllocator(), llvm::createShadowStackGCLoweringPass(), llvm::createStoreClusterDAGMutation(), 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::InstructionSelector::executeMatchTable(), llvm::extractConstantMask(), llvm::UnwindOpcodeAssembler::Finalize(), llvm::SchedDFSImpl::finalize(), llvm::SplitEditor::finish(), llvm::SelectionDAG::FoldConstantArithmetic(), llvm::rdf::Liveness::getAllReachingDefs(), getConstantPart(), llvm::RegsForValue::getCopyFromRegs(), llvm::pdb::DIARawSymbol::getDataBytes(), getFPReg(), llvm::pdb::DIADataStream::getItemAtIndex(), llvm::LLVMContext::getMDKindNames(), llvm::MDNode::getMostGenericRange(), llvm::pdb::DIADataStream::getNext(), getNoopInput(), llvm::LLVMContextImpl::getOperandBundleTags(), llvm::MCContext::getOrCreateLSDASymbol(), getScalarIntrinsicDeclaration(), llvm::DependenceInfo::getSplitIteration(), getStartOrEndSlot(), llvm::LLVMContextImpl::getSyncScopeNames(), getTargetConstantBitsFromNode(), getVPermMask(), group2Shuffle(), hasTiedDef(), hasValueBeenRAUWed(), llvm::TargetSchedModel::init(), llvm::codeview::TypeSerializer::insertRecord(), isOperator(), isProfitableChain(), lookupFunction(), llvm::BlockFrequencyInfoImplBase::LoopData::LoopData(), LoopIsOuterMostWithPredecessor(), llvm::SparseSolver< LatticeKey, LatticeVal, KeyInfo >::MarkBlockExecutable(), llvm::Regex::match(), matchPair(), maybePrintComdat(), llvm::LegalizerInfo::moreToWiderTypesAndLessToWidest(), llvm::IntervalMapImpl::Path::moveLeft(), llvm::object::ExportEntry::moveNext(), llvm::object::ExportEntry::nodeOffset(), llvm::Triple::normalize(), llvm::RegisterBankInfo::OperandsMapper::OperandsMapper(), false::IntervalSorter::operator()(), llvm::raw_ostream::operator<<(), parseBuildVersionCommand(), llvm::DWARFDebugLocDWO::parseOneLocationList(), llvm::PredicateInfo::PredicateInfo(), llvm::LiveIntervals::print(), PrintCFIEscape(), llvm::JumpThreadingPass::ProcessBranchOnPHI(), PropagateConstantsIntoArguments(), llvm::coverage::RawCoverageMappingReader::read(), llvm::safestack::StackColoring::removeAllMarkers(), llvm::AttributeList::removeAttributes(), reorderSubVector(), llvm::IndexedMap< unsigned, llvm::VirtReg2IndexFunctor >::resize(), rewritesSort(), llvm::RegisterClassInfo::runOnMachineFunction(), llvm::MachineTraceMetrics::runOnMachineFunction(), llvm::SelectionDAGISel::SelectCodeCommon(), selectI64Imm(), llvm::StructType::setName(), StackMallocSizeClass(), llvm::codeview::TypeRecordBuilder::truncate(), llvm::zlib::uncompress(), wrapConstantAsMetadata(), and llvm::ValueSymbolTable::~ValueSymbolTable().

◆ resize() [2/2]

template<typename T>
void llvm::SmallVectorImpl< T >::resize ( size_type  N,
const T NV 
)
inline

Definition at line 368 of file SmallVector.h.

◆ set_size()

template<typename T>
void llvm::SmallVectorImpl< T >::set_size ( size_type  N)
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 689 of file SmallVector.h.

Referenced by llvm::sys::path::remove_filename(), and llvm::sys::path::replace_extension().

◆ swap()

template<typename T >
void llvm::SmallVectorImpl< T >::swap ( SmallVectorImpl< T > &  RHS)

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