|
LLVM
3.7.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 <APInt.h>
Inherits llvm::SmallVectorTemplateBase< T, isPodLike< T >::value >.
Inherited by llvm::SmallVector< T, N >, and llvm::SmallVector< T, 0 >.
Public Types | |
| typedef SuperClass::iterator | iterator |
| typedef SuperClass::size_type | size_type |
Public Types inherited from llvm::SmallVectorTemplateCommon< T > | |
| typedef size_t | size_type |
| typedef ptrdiff_t | difference_type |
| typedef T | value_type |
| typedef T * | iterator |
| typedef const T * | const_iterator |
| typedef std::reverse_iterator < const_iterator > | const_reverse_iterator |
| typedef std::reverse_iterator < iterator > | reverse_iterator |
| typedef T & | reference |
| typedef const T & | const_reference |
| typedef T * | pointer |
| typedef const T * | const_pointer |
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 It2 | move (It1 I, It1 E, It2 Dest) |
| Use move-assignment to move the range [I, E) onto the objects starting with "Dest". More... | |
| static It2 | move_backward (It1 I, It1 E, It2 Dest) |
| Use move-assignment to move the range [I, E) onto the objects ending at "Dest", moving objects in reverse order. More... | |
| 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.
| typedef SuperClass::iterator llvm::SmallVectorImpl< T >::iterator |
Definition at line 351 of file SmallVector.h.
| typedef SuperClass::size_type llvm::SmallVectorImpl< T >::size_type |
Definition at line 352 of file SmallVector.h.
|
inlineexplicitprotected |
Definition at line 356 of file SmallVector.h.
|
inline |
Definition at line 361 of file SmallVector.h.
|
inline |
Add the specified range to the end of the SmallVector.
Definition at line 416 of file SmallVector.h.
Referenced by llvm::opt::ArgList::AddAllArgValues(), llvm::DbgVariable::addMMIEntry(), llvm::FoldingSetNodeID::AddNodeID(), llvm::FoldingSetNodeID::AddPointer(), llvm::RecurrenceDescriptor::AddReductionVar(), llvm::FoldingSetNodeID::AddString(), llvm::SmallString< 256 >::append(), llvm::sys::path::append(), llvm::SmallVectorImpl< std::pair< int, int64_t > >::append(), llvm::RegsForValue::append(), llvm::SmallString< 256 >::assign(), llvm::SmallVectorImpl< std::pair< int, int64_t > >::assign(), llvm::RegPressureTracker::closeBottom(), llvm::RegPressureTracker::closeTop(), llvm::MDNode::concatenate(), ConcatenateVectors(), ConstantFoldGetElementPtrImpl(), constexprToEdges(), containsConstantSomewhere(), llvm::DecodeEXTRQIMask(), llvm::DecodeINSERTQIMask(), llvm::MCObjectStreamer::EmitBytes(), llvm::MCObjectStreamer::EmitFill(), llvm::MCWinCOFFStreamer::EmitInstToData(), llvm::MCObjectStreamer::EmitInstToFragment(), llvm::FindInsertedValue(), llvm::SSAUpdaterTraits< SSAUpdater >::FindPredecessorBlocks(), llvm::LiveRange::flushSegmentSet(), llvm::X86InstrInfo::foldMemoryOperandImpl(), llvm::AttributeSet::get(), llvm::ScalarEvolution::getAddExpr(), llvm::ScalarEvolution::getAddRecExpr(), llvm::DominatorTreeBase< BasicBlock >::getDescendants(), getHostID(), llvm::ScalarEvolution::getMulExpr(), llvm::SelectionDAG::getNode(), getNoopInput(), llvm::object::MachOObjectFile::getRelocationTypeName(), llvm::object::ELFFile< ELFT >::getRelocationTypeName(), llvm::object::COFFObjectFile::getRelocationTypeName(), llvm::ScalarEvolution::getSMaxExpr(), llvm::ConstantDataArray::getString(), llvm::ScalarEvolution::getUDivExactExpr(), llvm::ScalarEvolution::getUMaxExpr(), getUncompressedData(), llvm::opt::InputArgList::InputArgList(), llvm::SmallVectorImpl< std::pair< int, int64_t > >::insert(), llvm::isPotentiallyReachableFromMany(), IsValueFullyAvailableInBlock(), LowerBITCAST(), llvm::SITargetLowering::LowerFormalArguments(), MoveBelowOrigChain(), llvm::R600TargetLowering::PerformDAGCombine(), llvm::BitstreamCursor::readRecord(), llvm::opt::Arg::render(), llvm::opt::Arg::renderAsInput(), llvm::sys::path::replace_extension(), llvm::replaceDbgDeclareForAlloca(), ReplaceINTRINSIC_W_CHAIN(), llvm::EngineBuilder::setMAttrs(), SimplifyAddOperands(), llvm::simplifyLoop(), llvm::SmallVector< llvm::cl::parser::OptionInfo, 8 >::SmallVector(), SplitAddRecs(), llvm::APInt::toString(), llvm::InstCombiner::visitGetElementPtrInst(), WriteAttributeGroupTable(), WriteConstants(), WriteDIExpression(), WriteModuleMetadata(), and WriteModuleMetadataStore().
|
inline |
Add the specified range to the end of the SmallVector.
Definition at line 428 of file SmallVector.h.
|
inline |
Definition at line 438 of file SmallVector.h.
|
inline |
Definition at line 442 of file SmallVector.h.
Referenced by llvm::SmallString< 256 >::assign(), BuildSplatI(), CollectShuffleElements(), CollectSingleShuffleElements(), llvm::SelectionDAG::getConstant(), llvm::SelectionDAG::getConstantFP(), llvm::SelectionDAGBuilder::getValueImpl(), lowerVectorShuffleAsUnpack(), llvm::SmallVector< llvm::cl::parser::OptionInfo, 8 >::operator=(), and llvm::SmallVector< llvm::cl::parser::OptionInfo, 8 >::SmallVector().
|
inline |
Definition at line 450 of file SmallVector.h.
|
inline |
Definition at line 371 of file SmallVector.h.
Referenced by llvm::PMDataManager::add(), llvm::LiveIntervals::addKillFlags(), llvm::BPFInstrInfo::AnalyzeBranch(), llvm::HexagonInstrInfo::AnalyzeBranch(), llvm::SparcInstrInfo::AnalyzeBranch(), llvm::MSP430InstrInfo::AnalyzeBranch(), llvm::ARMBaseInstrInfo::AnalyzeBranch(), llvm::SystemZInstrInfo::AnalyzeBranch(), llvm::SystemZCCState::AnalyzeCallOperands(), llvm::MipsCCState::AnalyzeCallOperands(), llvm::MipsCCState::AnalyzeCallResult(), llvm::SystemZCCState::AnalyzeFormalArguments(), llvm::MipsCCState::AnalyzeFormalArguments(), llvm::MipsCCState::AnalyzeReturn(), llvm::SmallVectorImpl< std::pair< int, int64_t > >::assign(), llvm::SSAUpdaterImpl< UpdaterT >::BuildBlockList(), buildSetsFrom(), llvm::IDFCalculator::calculate(), llvm::CC_ARM_AAPCS_Custom_Aggregate(), llvm::MipsCCState::CheckReturn(), CleanupPointerRootUsers(), llvm::StatepointLoweringState::clear(), llvm::IntEqClasses::clear(), llvm::StringTableBuilder::clear(), llvm::IndexedMap< unsigned, llvm::VirtReg2IndexFunctor >::clear(), llvm::SpillPlacement::Node::clear(), llvm::ArrayRecycler< llvm::MachineOperand >::clear(), llvm::SchedDFSResult::clear(), llvm::FunctionLoweringInfo::clear(), llvm::SparseSet< unsigned, llvm::VirtReg2IndexFunctor >::clear(), llvm::LiveRange::clear(), llvm::FoldingSetNodeID::clear(), llvm::SparseMultiSet< VReg2SUnit, VirtReg2IndexFunctor >::clear(), llvm::CCState::clearByValRegsInfo(), llvm::FastISel::CallLoweringInfo::clearIns(), llvm::FastISel::CallLoweringInfo::clearOuts(), collectDebugValues(), combineX86ShufflesRecursively(), llvm::ScalarEvolution::computeAccessFunctions(), llvm::ComputeASanStackFrameLayout(), constexprToEdges(), llvm::convertUTF8ToUTF16String(), llvm::DecodePSHUFBMask(), llvm::RuntimeDyldELF::deregisterEHFrames(), emitComments(), llvm::ConstantPool::emitEntries(), llvm::MachineModuleInfo::EndFunction(), ExpandBVWithShuffles(), llvm::ARMTargetLowering::ExpandInlineAsm(), llvm::X86TargetLowering::ExpandInlineAsm(), llvm::finalizeBundle(), llvm::ScalarEvolution::findArrayDimensions(), findConsecutiveLoad(), FindMostPopularDest(), llvm::SplitEditor::finish(), llvm::BitstreamCursor::freeState(), llvm::ScalarEvolution::getAddExpr(), getAdjustedPtr(), llvm::RegsForValue::getCopyFromRegs(), llvm::TargetSubtargetInfo::getCriticalPathRCs(), llvm::DIARawSymbol::getDataBytes(), llvm::DominatorTreeBase< BasicBlock >::getDescendants(), getHostID(), getMemmoveLoadsAndStores(), llvm::DIADataStream::getNext(), llvm::MemoryDependenceAnalysis::getNonLocalPointerDependency(), llvm::ScalarEvolution::getUDivExpr(), getUnderlyingObjectsForInstr(), llvm::Loop::getUniqueExitBlocks(), llvm::yaml::ScalarNode::getValue(), insertParsePoints(), insertVector(), llvm::TargetLowering::LowerCallTo(), llvm::Regex::match(), llvm::MCContext::MCContext(), MoveBelowOrigChain(), llvm::sys::path::native(), llvm::IntervalPressure::openBottom(), llvm::RegionPressure::openBottom(), llvm::IntervalPressure::openTop(), llvm::RegionPressure::openTop(), llvm::BlockFrequencyInfoImplBase::packageLoop(), llvm::SpillPlacement::prepare(), llvm::BitstreamCursor::ReadBlockInfoBlock(), llvm::RuntimeDyldELF::registerEHFrames(), llvm::BranchProbabilityInfo::releaseMemory(), llvm::LiveIntervals::releaseMemory(), llvm::SlotIndexes::releaseMemory(), llvm::LiveRange::RenumberValues(), llvm::UnwindOpcodeAssembler::Reset(), llvm::IntervalPressure::reset(), llvm::RegionPressure::reset(), llvm::HexagonShuffler::reset(), llvm::LiveRangeCalc::reset(), llvm::BumpPtrAllocatorImpl< AllocatorT, SlabSize, SizeThreshold >::Reset(), llvm::MCStreamer::reset(), llvm::MCContext::reset(), llvm::SchedRemainder::reset(), llvm::SchedBoundary::reset(), llvm::TypeFinder::run(), llvm::RegisterClassInfo::runOnMachineFunction(), llvm::MachineDominatorTree::runOnMachineFunction(), llvm::SpillPlacement::scanActiveBundles(), llvm::SelectionDAGISel::SelectCodeCommon(), llvm::FileRemover::setFile(), llvm::EngineBuilder::setMAttrs(), SimplifyAddOperands(), llvm::SplitCriticalEdge(), llvm::MachineBasicBlock::SplitCriticalEdge(), llvm::cl::TokenizeGNUCommandLine(), llvm::cl::TokenizeWindowsCommandLine(), llvm::BlockFrequencyInfoImplBase::updateLoopWithIrreducible(), llvm::MachineBasicBlock::updateTerminator(), WriteAttributeGroupTable(), WriteAttributeTable(), writeComdats(), WriteConstants(), WriteDIBasicType(), WriteDICompileUnit(), WriteDICompositeType(), WriteDIDerivedType(), WriteDIEnumerator(), WriteDIExpression(), WriteDIFile(), WriteDIGlobalVariable(), WriteDIImportedEntity(), WriteDILexicalBlock(), WriteDILexicalBlockFile(), WriteDILocalVariable(), WriteDILocation(), WriteDIModule(), WriteDINamespace(), WriteDIObjCProperty(), WriteDISubprogram(), WriteDISubrange(), WriteDISubroutineType(), WriteDITemplateTypeParameter(), WriteDITemplateValueParameter(), WriteFunction(), WriteGenericDINode(), WriteInstruction(), WriteMetadataAttachment(), WriteModuleInfo(), WriteModuleMetadata(), WriteModuleMetadataStore(), WriteTypeTable(), WriteValueAsMetadata(), WriteValueSymbolTable(), and llvm::GCOVBlock::~GCOVBlock().
|
inline |
Definition at line 652 of file SmallVector.h.
Referenced by llvm::IDFCalculator::calculate(), createImportedModule(), DeleteTriviallyDeadInstructions(), isAllocSiteRemovable(), LinearizeExprTree(), llvm::SCEVExpander::replaceCongruentIVs(), and llvm::MachineModuleInfo::setVariableDbgInfo().
|
inline |
Definition at line 455 of file SmallVector.h.
Referenced by llvm::RegPressureTracker::closeBottom(), llvm::RegPressureTracker::closeTop(), completeEphemeralValues(), DecomposeGEPExpression(), llvm::ARMFrameLowering::determineCalleeSaves(), determineMissingVNIs(), llvm::ConnectedVNInfoEqClasses::Distribute(), llvm::opt::ArgList::eraseArg(), llvm::cl::ExpandResponseFiles(), llvm::ScalarEvolution::findArrayDimensions(), llvm::ScalarEvolution::getAddExpr(), llvm::ScalarEvolution::getMulExpr(), getNaturalGEPWithType(), llvm::ScalarEvolution::getSMaxExpr(), llvm::ScalarEvolution::getUMaxExpr(), isVectorPromotionViable(), llvm::LiveRange::join(), lowerV16I8VectorShuffle(), lowerV8I16GeneralSingleInputVectorShuffle(), llvm::LiveRange::MergeValueNumberInto(), OptimizeAndOrXor(), llvm::MachineInstr::print(), relocationViaAlloca(), llvm::Inliner::removeDeadFunctions(), RemoveInstInputs(), llvm::LiveRange::removeSegment(), llvm::LiveRange::removeValNo(), replaceConstantExprOp(), llvm::BumpPtrAllocatorImpl< AllocatorT, SlabSize, SizeThreshold >::Reset(), llvm::Inliner::runOnSCC(), SimplifyBranchOnICmpChain(), unique_unsorted(), llvm::BlockFrequencyInfoImplBase::updateLoopWithIrreducible(), VerifySubExpr(), and llvm::InstCombiner::visitLandingPadInst().
|
inline |
Definition at line 467 of file SmallVector.h.
|
inline |
Definition at line 481 of file SmallVector.h.
Referenced by llvm::DwarfFile::addScopeVariable(), llvm::MipsInstrInfo::AnalyzeBranch(), analyzeParsePointLiveness(), llvm::ComputeASanStackFrameLayout(), llvm::DwarfCompileUnit::constructScopeDIE(), llvm::TargetLoweringObjectFileELF::emitPersonalityValue(), llvm::UnwindOpcodeAssembler::EmitRaw(), llvm::BitstreamWriter::EmitRecord(), llvm::cl::ExpandResponseFiles(), findBasePointers(), findConsecutiveLoad(), llvm::AttributeSet::get(), llvm::SelectionDAG::getConstant(), llvm::yaml::ScalarNode::getValue(), llvm::SmallVectorImpl< std::pair< int, int64_t > >::insert(), insertParsePoints(), llvm::BlockFrequencyInfoImplBase::LoopData::LoopData(), LowerInterruptReturn(), llvm::SelectionDAGBuilder::LowerStatepoint(), makeStatepointExplicitImpl(), prependCompressionHeader(), llvm::AArch64TargetLowering::ReconstructShuffle(), llvm::LiveRange::removeSegment(), llvm::IntervalMapImpl::Path::replaceRoot(), and llvm::WriteBitcodeToFile().
|
inline |
Definition at line 511 of file SmallVector.h.
|
inline |
Definition at line 540 of file SmallVector.h.
|
inline |
Definition at line 592 of file SmallVector.h.
|
inline |
Definition at line 648 of file SmallVector.h.
|
inline |
Definition at line 667 of file SmallVector.h.
|
inline |
Definition at line 671 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(), llvm::sys::path::end(), and size.
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(), llvm::sys::path::end(), and size.
|
inline |
Definition at line 663 of file SmallVector.h.
|
inline |
Definition at line 406 of file SmallVector.h.
Referenced by addBlockAndPredsToSet(), AddReachableCodeToWorklist(), AreAnyUnderlyingObjectsAnAlloca(), llvm::SSAUpdaterImpl< UpdaterT >::BuildBlockList(), buildMultiplyTree(), buildSetsFrom(), llvm::IDFCalculator::calculate(), llvm::SSAUpdaterImpl< UpdaterT >::CheckIfPHIMatches(), combineRedundantDWordShuffle(), ComputePostOrders(), constexprToEdges(), ConstHasGlobalValuePredicate(), containsConstantSomewhere(), DeleteDeadInstruction(), DeleteTriviallyDeadInstructions(), determinePointerReadAttrs(), llvm::LiveRangeEdit::eliminateDeadDefs(), findCallees(), llvm::objcarc::FindDependencies(), llvm::FindFunctionBackedges(), llvm::ScalarEvolution::forgetLoop(), llvm::ScalarEvolution::forgetValue(), llvm::DominatorTreeBase< BasicBlock >::getDescendants(), getUnderlyingObjects(), llvm::GetUnderlyingObjects(), llvm::SDNode::hasPredecessorHelper(), llvm::HexagonMCShuffle(), llvm::LazyCallGraph::SCC::insertIncomingEdge(), llvm::MachineTraceMetrics::Ensemble::invalidate(), isAllocSiteRemovable(), llvm::LazyCallGraph::SCC::isDescendantOf(), isEphemeralValueOf(), isLeakCheckerRoot(), isObjectSizeLessThanOrEq(), isOnlyCopiedFromConstantGlobal(), llvm::isPotentiallyReachableFromMany(), IsStoredObjCPointer(), IsValueFullyAvailableInBlock(), llvm::SpillPlacement::iterate(), markAliveBlocks(), llvm::SIInstrInfo::moveToVALU(), llvm::PHITransAddr::PHITranslateWithInsertion(), llvm::RecursivelyDeleteTriviallyDeadInstructions(), llvm::SelectionDAG::RemoveDeadNodes(), rewriteNonInstructionUses(), llvm::SUnit::setDepthDirty(), llvm::SUnit::setHeightDirty(), llvm::simplifyLoop(), llvm::UnrollLoop(), updateLiveness(), and verifyCTRBranch().
|
inline |
Definition at line 401 of file SmallVector.h.
Referenced by AddOperand(), llvm::DwarfCompileUnit::attachRangesOrLowHighPC(), llvm::RegPressureTracker::closeBottom(), llvm::RegPressureTracker::closeTop(), combineX86ShufflesRecursively(), llvm::EHStreamer::computeActionsTable(), llvm::MDNode::concatenate(), ConstantFoldGetElementPtrImpl(), llvm::ConstantFoldInsertElementInstruction(), CreateGCRelocates(), llvm::DecodePSHUFBMask(), llvm::DecodeVPERMILPMask(), llvm::EHStreamer::emitExceptionTable(), emitIntrinsicWithChainAndGlue(), emitIntrinsicWithGlue(), ExpandBVWithShuffles(), extractVector(), llvm::StringTableBuilder::finalize(), findBasePointer(), findBasePointers(), llvm::FindInsertedValue(), llvm::MachineInstrExpressionTrait::getHashValue(), llvm::TargetTransformInfoImplCRTPBase< AMDGPUTTIImpl >::getIntrinsicCost(), llvm::SelectionDAG::getMergeValues(), llvm::MDNode::getMostGenericRange(), llvm::ScalarEvolution::getMulExpr(), llvm::yaml::ScalarNode::getValue(), llvm::IntEqClasses::grow(), llvm::raw_svector_ostream::init(), llvm::ScheduleDAGTopologicalSort::InitDAGTopologicalSorting(), llvm::SmallVectorImpl< std::pair< int, int64_t > >::insert(), insertParsePoints(), insertVector(), makeStatepointExplicit(), llvm::MapValue(), OptimizeAwayTrappingUsesOfValue(), llvm::CallGraph::print(), relocationViaAlloca(), llvm::RemapInstruction(), llvm::IndexedMap< unsigned, llvm::VirtReg2IndexFunctor >::reserve(), llvm::raw_svector_ostream::resync(), llvm::SlotIndexes::runOnMachineFunction(), SimplifyCall(), simplifyShuffleOperandRecursively(), llvm::InstCombiner::visitLandingPadInst(), llvm::WriteBitcodeToFile(), WriteDIExpression(), and llvm::LLVMContextImpl::~LLVMContextImpl().
|
inline |
Definition at line 376 of file SmallVector.h.
Referenced by llvm::Calculate(), llvm::BitTracker::RegisterCell::cat(), llvm::CCState::CCState(), llvm::zlib::compress(), llvm::EHStreamer::computeCallSiteTable(), ConstantFoldGetElementPtrImpl(), llvm::convertUTF8ToUTF16String(), llvm::DependenceAnalysis::depends(), llvm::ConnectedVNInfoEqClasses::Distribute(), llvm::MCWinCOFFStreamer::EmitCOFFSecRel32(), llvm::MCWinCOFFStreamer::EmitCOFFSectionIndex(), llvm::MCObjectStreamer::EmitGPRel32Value(), llvm::MCObjectStreamer::EmitGPRel64Value(), llvm::MCObjectStreamer::EmitValueImpl(), llvm::MachineTraceMetrics::Ensemble::Ensemble(), llvm::UnwindOpcodeAssembler::Finalize(), llvm::SchedDFSImpl::finalize(), llvm::SplitEditor::finish(), llvm::SelectionDAG::FoldConstantArithmetic(), llvm::RegsForValue::getCopyFromRegs(), llvm::DIARawSymbol::getDataBytes(), llvm::DIADataStream::getItemAtIndex(), llvm::LLVMContext::getMDKindNames(), llvm::MDNode::getMostGenericRange(), llvm::DIADataStream::getNext(), getNoopInput(), llvm::DependenceAnalysis::getSplitIteration(), getVPermMask(), llvm::TargetSchedModel::init(), llvm::SchedRemainder::init(), llvm::SchedBoundary::init(), is128BitLaneRepeatedShuffleMask(), llvm::LiveRange::join(), llvm::BlockFrequencyInfoImplBase::LoopData::LoopData(), lowerVectorShuffleByMerging128BitLanes(), llvm::Regex::match(), llvm::IntervalMapImpl::Path::moveLeft(), llvm::object::ExportEntry::moveNext(), llvm::Triple::normalize(), llvm::raw_ostream::operator<<(), llvm::DWARFDebugLoc::parse(), llvm::DWARFDebugLocDWO::parse(), llvm::promoteLoopAccessesToScalars(), llvm::coverage::RawCoverageMappingReader::read(), llvm::SchedBoundary::reset(), llvm::IndexedMap< unsigned, llvm::VirtReg2IndexFunctor >::resize(), llvm::MachineTraceMetrics::runOnMachineFunction(), llvm::RegisterClassInfo::runOnMachineFunction(), llvm::SelectionDAGISel::SelectCodeCommon(), llvm::StructType::setName(), llvm::StatepointLoweringState::startNewStatepoint(), and llvm::zlib::uncompress().
|
inline |
Definition at line 389 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 685 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(), size, and std::swap().
Referenced by createUniqueEntity(), ExpandBVWithShuffles(), llvm::sys::fs::make_absolute(), llvm::LazyCallGraph::SCC::removeIntraSCCEdge(), llvm::LiveIntervals::shrinkToUses(), and std::swap().
1.8.6