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

This is the part of SmallVectorTemplateBase which does not depend on whether the type T is a POD. More...

#include "llvm/ADT/SmallVector.h"

Inherits llvm::SmallVectorBase.

Collaboration diagram for llvm::SmallVectorTemplateCommon< T, typename >:
Collaboration graph
[legend]

Public Types

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

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

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

Friends

template<typename , unsigned >
struct SmallVectorStorage
 

Additional Inherited Members

- Protected Attributes inherited from llvm::SmallVectorBase
void * BeginX
 
void * EndX
 
void * CapacityX
 

Detailed Description

template<typename T, typename = void>
class llvm::SmallVectorTemplateCommon< T, typename >

This is the part of SmallVectorTemplateBase which does not depend on whether the type T is a POD.

The extra dummy template argument is used by ArrayRef to avoid unnecessarily requiring T to be complete.

Definition at line 68 of file SmallVector.h.

Member Typedef Documentation

◆ const_iterator

template<typename T, typename = void>
using llvm::SmallVectorTemplateCommon< T, typename >::const_iterator = const T *

Definition at line 104 of file SmallVector.h.

◆ const_pointer

template<typename T, typename = void>
using llvm::SmallVectorTemplateCommon< T, typename >::const_pointer = const T *

Definition at line 112 of file SmallVector.h.

◆ const_reference

template<typename T, typename = void>
using llvm::SmallVectorTemplateCommon< T, typename >::const_reference = const T &

Definition at line 110 of file SmallVector.h.

◆ const_reverse_iterator

template<typename T, typename = void>
using llvm::SmallVectorTemplateCommon< T, typename >::const_reverse_iterator = std::reverse_iterator<const_iterator>

Definition at line 106 of file SmallVector.h.

◆ difference_type

template<typename T, typename = void>
using llvm::SmallVectorTemplateCommon< T, typename >::difference_type = ptrdiff_t

Definition at line 101 of file SmallVector.h.

◆ iterator

template<typename T, typename = void>
using llvm::SmallVectorTemplateCommon< T, typename >::iterator = T *

Definition at line 103 of file SmallVector.h.

◆ pointer

template<typename T, typename = void>
using llvm::SmallVectorTemplateCommon< T, typename >::pointer = T *

Definition at line 111 of file SmallVector.h.

◆ reference

template<typename T, typename = void>
using llvm::SmallVectorTemplateCommon< T, typename >::reference = T &

Definition at line 109 of file SmallVector.h.

◆ reverse_iterator

template<typename T, typename = void>
using llvm::SmallVectorTemplateCommon< T, typename >::reverse_iterator = std::reverse_iterator<iterator>

Definition at line 107 of file SmallVector.h.

◆ size_type

template<typename T, typename = void>
using llvm::SmallVectorTemplateCommon< T, typename >::size_type = size_t

Definition at line 100 of file SmallVector.h.

◆ value_type

template<typename T, typename = void>
using llvm::SmallVectorTemplateCommon< T, typename >::value_type = T

Definition at line 102 of file SmallVector.h.

Constructor & Destructor Documentation

◆ SmallVectorTemplateCommon()

template<typename T, typename = void>
llvm::SmallVectorTemplateCommon< T, typename >::SmallVectorTemplateCommon ( size_t  Size)
inlineprotected

Definition at line 80 of file SmallVector.h.

Member Function Documentation

◆ back() [1/2]

template<typename T, typename = void>
reference llvm::SmallVectorTemplateCommon< T, typename >::back ( )
inline

Definition at line 167 of file SmallVector.h.

Referenced by llvm::DbgVariable::addMMIEntry(), llvm::MachineInstr::addRegisterDead(), llvm::MachineInstr::addRegisterKilled(), llvm::object::ExportEntry::address(), AdjustStackOffset(), advanceToNextLeafType(), llvm::SIMachineFunctionInfo::allocateSGPRSpillToVGPR(), llvm::A57ChainingConstraint::apply(), buildGEP(), buildMultiplyTree(), llvm::LiveRangeCalc::calculateValues(), llvm::yaml::Output::canElideEmptySequence(), llvm::SpecificBumpPtrAllocator< llvm::LazyCallGraph::SCC >::DestroyAll(), llvm::ARMFrameLowering::determineCalleeSaves(), llvm::InstrEmitter::EmitDbgValue(), emitNullTerminatedSymbolName(), llvm::UnwindOpcodeAssembler::EmitRaw(), llvm::LiveRange::endIndex(), llvm::BitstreamCursor::EnterSubBlock(), llvm::SparseSet< unsigned, llvm::VirtReg2IndexFunctor >::erase(), ExposePointerBase(), extendSegmentsToUses(), firstRealType(), llvm::object::ExportEntry::flags(), GetBranchWeights(), llvm::safestack::StackLayout::getFrameSize(), getSpecialRegForName(), llvm::ImutAVLTreeGenericIterator< ImutInfo >::getVisitState(), llvm::LiveVariables::HandleVirtRegDef(), instIsBreakpoint(), IsNonLocalValue(), IsSafeAndProfitableToMove(), llvm::IntervalMapImpl::Path::leaf(), llvm::IntervalMapImpl::Path::leafOffset(), llvm::IntervalMapImpl::Path::leafSize(), llvm::PPCInstrInfo::loadRegFromStackSlot(), llvm::yaml::Output::mapTag(), llvm::object::ExportEntry::moveNext(), nextRealType(), llvm::object::ExportEntry::nodeOffset(), llvm::ImutAVLTreeGenericIterator< ImutInfo >::operator*(), llvm::ImutAVLTreeGenericIterator< ImutInfo >::operator++(), llvm::ImutAVLTreeGenericIterator< ImutInfo >::operator--(), llvm::object::ExportEntry::other(), llvm::DWARFDebugLoc::parse(), llvm::DWARFDebugLocDWO::parse(), ParseFunctionArgs(), llvm::yaml::Output::postflightKey(), llvm::yaml::Output::preflightKey(), llvm::sampleprof::SampleProfileReaderText::read(), llvm::BitstreamCursor::ReadBlockEnd(), RefineErrorLoc(), regOverlapsSet(), RequiresVFPRegListValidation(), llvm::returnTypeIsEligibleForTailCall(), RewriteIntelBracExpression(), setRequiredFeatureString(), llvm::ImutAVLTreeGenericIterator< ImutInfo >::skipToParent(), SortBlocks(), llvm::PPCInstrInfo::storeRegToStackSlot(), and llvm::MCStreamer::SwitchSection().

◆ back() [2/2]

template<typename T, typename = void>
const_reference llvm::SmallVectorTemplateCommon< T, typename >::back ( ) const
inline

Definition at line 171 of file SmallVector.h.

◆ begin() [1/2]

template<typename T, typename = void>
LLVM_ATTRIBUTE_ALWAYS_INLINE iterator llvm::SmallVectorTemplateCommon< T, typename >::begin ( )
inline

Definition at line 116 of file SmallVector.h.

Referenced by llvm::SpillPlacement::Node::addLink(), llvm::DbgVariable::addMMIEntry(), llvm::FoldingSetNodeID::AddNodeID(), llvm::MipsInstrInfo::analyzeBranch(), llvm::SmallString< 256 >::append(), llvm::RegsForValue::append(), llvm::SmallString< 256 >::assign(), llvm::LiveRangeEdit::begin(), llvm::HexagonShuffler::begin(), llvm::SparseSet< unsigned, llvm::VirtReg2IndexFunctor >::begin(), llvm::opt::ArgList::begin(), llvm::LiveRange::begin(), llvm::RegBankSelect::RepairingPlacement::begin(), llvm::LiveRangeCalc::calculateValues(), canGoAfterDWARF(), combineTargetShuffle(), llvm::safestack::StackLayout::computeLayout(), computeRelativePath(), createUniqueEntity(), llvm::createX86OptimizeLEAs(), CriticalPathStep(), llvm::SpecificBumpPtrAllocator< llvm::LazyCallGraph::SCC >::DestroyAll(), llvm::MachineRegisterInfo::disableCalleeSavedRegister(), llvm::MCWasmStreamer::EmitIdent(), llvm::MCELFStreamer::EmitIdent(), llvm::MCWinCOFFStreamer::EmitInstToData(), llvm::MCObjectStreamer::EmitInstToFragment(), llvm::UnwindOpcodeAssembler::EmitRaw(), llvm::rdf::DeadCodeElimination::erase(), llvm::cl::ExpandResponseFiles(), llvm::opt::ArgList::filtered(), llvm::SSAUpdaterImpl< UpdaterT >::FindAvailableVals(), findBuildAggregate(), llvm::SSAUpdaterImpl< UpdaterT >::FindExistingPHI(), llvm::SlotIndexes::findMBBIndex(), llvm::RegScavenger::forward(), GetAEABIUnwindPersonalityName(), llvm::opt::ArgList::getAllArgValues(), llvm::rdf::Liveness::getAllReachingDefs(), llvm::opt::Arg::getAsString(), llvm::DebugLocStream::getBytes(), getDRegFromQReg(), llvm::BlockFrequencyInfoImplBase::LoopData::getHeaderIndex(), llvm::BasicTTIImplBase< AMDGPUTTIImpl >::getIntrinsicInstrCost(), llvm::MachineTraceMetrics::Ensemble::getLoopFor(), llvm::DOTGraphTraits< BoUpSLP * >::getNodeLabel(), getNumAllocatableRegsForConstraints(), llvm::RegScavenger::getScavengingFrameIndices(), getStartOrEndSlot(), llvm::yaml::ScalarNode::getValue(), llvm::LiveVariables::HandleVirtRegDef(), hasValueBeenRAUWed(), llvm::ExtractValueInst::idx_begin(), llvm::InsertValueInst::idx_begin(), INITIALIZE_PASS(), llvm::SlotIndexes::insertMBBInMaps(), llvm::MipsAnalyzeImmediate::Inst::Inst(), is_ns_word_char(), isACalleeSavedRegister(), llvm::BlockFrequencyInfoImplBase::LoopData::isHeader(), isObjectStart(), isOperandKill(), IsSafeAndProfitableToMove(), llvm::RegScavenger::isScavengingFrameIndex(), isTerminalReg(), LLVMGetRelocationTypeName(), llvm::MipsSEInstrInfo::loadImmediate(), LoopIsOuterMostWithPredecessor(), lowerV16I8VectorShuffle(), lowerV8I16GeneralSingleInputVectorShuffle(), llvm::MaybePredicatedInst(), llvm::SlotIndexes::MBBIndexBegin(), llvm::BlockFrequencyInfoImplBase::LoopData::members_begin(), MergeAliasResults(), llvm::DebugLocEntry::MergeValues(), llvm::sys::path::native(), llvm::ObjectMemoryBuffer::ObjectMemoryBuffer(), false::IntervalSorter::operator()(), llvm::SmallVectorImpl< std::pair< llvm::RelocationValueRef, llvm::RelocationEntry > >::operator<(), llvm::SmallVectorImpl< std::pair< llvm::RelocationValueRef, llvm::RelocationEntry > >::operator==(), llvm::MetadataLoader::MetadataLoaderImpl::parseMetadata(), llvm::MetadataLoader::MetadataLoaderImpl::parseMetadataAttachment(), llvm::MachineInstr::print(), llvm::BumpPtrAllocatorImpl< MallocAllocator, 65536 >::PrintStats(), llvm::sampleprof::SampleProfileReaderGCC::readOneFunctionProfile(), llvm::SSAUpdaterImpl< UpdaterT >::RecordMatchingPHIs(), llvm::HexagonInstrInfo::reduceLoopCount(), regOverlapsSet(), llvm::sys::path::remove_filename(), RemoveInstInputs(), llvm::opt::Arg::render(), llvm::opt::Arg::renderAsInput(), llvm::sys::path::replace_extension(), llvm::sys::path::replace_path_prefix(), llvm::ARMTargetLowering::ReplaceNodeResults(), llvm::IntervalMapImpl::Path::replaceRoot(), RequiresVFPRegListValidation(), llvm::ARMFrameLowering::ResolveFrameIndexReference(), RewriteIntelBracExpression(), rewritesSort(), llvm::GlobalDCEPass::run(), llvm::GVNHoist::run(), llvm::SlotIndexes::runOnMachineFunction(), llvm::HexagonShuffler::shuffle(), llvm::MachineBasicBlock::SplitCriticalEdge(), llvm::APInt::toString(), llvm::SpillPlacement::Node::update(), llvm::BlockFrequencyInfoImplBase::updateLoopWithIrreducible(), llvm::LiveRange::vni_begin(), llvm::WriteBitcodeToFile(), llvm::ManagedStringPool::~ManagedStringPool(), and llvm::MCWasmStreamer::~MCWasmStreamer().

◆ begin() [2/2]

template<typename T, typename = void>
LLVM_ATTRIBUTE_ALWAYS_INLINE const_iterator llvm::SmallVectorTemplateCommon< T, typename >::begin ( ) const
inline

Definition at line 118 of file SmallVector.h.

◆ capacity()

template<typename T, typename = void>
size_t llvm::SmallVectorTemplateCommon< T, typename >::capacity ( ) const
inline

Return the total number of elements in the currently allocated buffer.

Definition at line 140 of file SmallVector.h.

◆ capacity_ptr() [1/2]

template<typename T, typename = void>
iterator llvm::SmallVectorTemplateCommon< T, typename >::capacity_ptr ( )
inlineprotected

Definition at line 125 of file SmallVector.h.

◆ capacity_ptr() [2/2]

template<typename T, typename = void>
const_iterator llvm::SmallVectorTemplateCommon< T, typename >::capacity_ptr ( ) const
inlineprotected

Definition at line 126 of file SmallVector.h.

◆ data() [1/2]

template<typename T, typename = void>
pointer llvm::SmallVectorTemplateCommon< T, typename >::data ( )
inline

◆ data() [2/2]

template<typename T, typename = void>
const_pointer llvm::SmallVectorTemplateCommon< T, typename >::data ( ) const
inline

Return a pointer to the vector's buffer, even if empty().

Definition at line 145 of file SmallVector.h.

◆ end() [1/2]

template<typename T, typename = void>
LLVM_ATTRIBUTE_ALWAYS_INLINE iterator llvm::SmallVectorTemplateCommon< T, typename >::end ( )
inline

Definition at line 120 of file SmallVector.h.

Referenced by llvm::SpillPlacement::Node::addLink(), llvm::DbgVariable::addMMIEntry(), llvm::FoldingSetNodeID::AddNodeID(), llvm::SlotIndexes::advanceMBBIndex(), llvm::SmallString< 256 >::append(), llvm::RegsForValue::append(), llvm::SmallString< 256 >::assign(), llvm::opt::ArgList::begin(), llvm::LiveRangeCalc::calculateValues(), canGoAfterDWARF(), llvm::safestack::StackLayout::computeLayout(), llvm::rdf::Liveness::computePhiInfo(), computeRelativePath(), llvm::createX86OptimizeLEAs(), CriticalPathStep(), llvm::SpecificBumpPtrAllocator< llvm::LazyCallGraph::SCC >::DestroyAll(), llvm::ARMFrameLowering::determineCalleeSaves(), llvm::MachineRegisterInfo::disableCalleeSavedRegister(), llvm::MCWasmStreamer::EmitIdent(), llvm::MCELFStreamer::EmitIdent(), llvm::MCWinCOFFStreamer::EmitInstToData(), llvm::MCObjectStreamer::EmitInstToFragment(), llvm::UnwindOpcodeAssembler::EmitRaw(), llvm::LiveRangeEdit::end(), llvm::HexagonShuffler::end(), llvm::SparseSet< unsigned, llvm::VirtReg2IndexFunctor >::end(), llvm::opt::ArgList::end(), llvm::LiveRange::end(), llvm::RegBankSelect::RepairingPlacement::end(), llvm::rdf::DeadCodeElimination::erase(), llvm::SSAUpdaterImpl< UpdaterT >::FindAvailableVals(), findBuildAggregate(), llvm::SSAUpdaterImpl< UpdaterT >::FindExistingPHI(), llvm::RegScavenger::forward(), GetAEABIUnwindPersonalityName(), llvm::opt::ArgList::getAllArgValues(), llvm::rdf::Liveness::getAllReachingDefs(), llvm::opt::Arg::getAsString(), llvm::DebugLocStream::getBytes(), llvm::BasicTTIImplBase< AMDGPUTTIImpl >::getIntrinsicInstrCost(), getNaturalGEPWithType(), llvm::DOTGraphTraits< BoUpSLP * >::getNodeLabel(), getNumAllocatableRegsForConstraints(), llvm::RegScavenger::getScavengingFrameIndices(), getStartOrEndSlot(), llvm::yaml::ScalarNode::getValue(), llvm::RegisterBankInfo::OperandsMapper::getVRegs(), llvm::LiveVariables::HandleVirtRegDef(), hasValueBeenRAUWed(), llvm::ExtractValueInst::idx_end(), llvm::InsertValueInst::idx_end(), INITIALIZE_PASS(), llvm::SlotIndexes::insertMBBInMaps(), llvm::MipsAnalyzeImmediate::Inst::Inst(), is_ns_word_char(), isACalleeSavedRegister(), isObjectStart(), isOperandKill(), IsSafeAndProfitableToMove(), llvm::RegScavenger::isScavengingFrameIndex(), isTerminalReg(), LLVMGetRelocationTypeName(), llvm::MipsSEInstrInfo::loadImmediate(), llvm::BlockFrequencyInfoImplBase::LoopData::LoopData(), LoopIsOuterMostWithPredecessor(), lowerV16I8VectorShuffle(), lowerV8I16GeneralSingleInputVectorShuffle(), llvm::SlotIndexes::MBBIndexEnd(), llvm::BlockFrequencyInfoImplBase::LoopData::members_end(), llvm::DebugLocEntry::MergeValues(), llvm::sys::path::native(), llvm::ObjectMemoryBuffer::ObjectMemoryBuffer(), llvm::RegisterBankInfo::OperandsMapper::OperandsMapper(), false::IntervalSorter::operator()(), llvm::SmallVectorImpl< std::pair< llvm::RelocationValueRef, llvm::RelocationEntry > >::operator<(), llvm::MetadataLoader::MetadataLoaderImpl::parseMetadata(), llvm::MetadataLoader::MetadataLoaderImpl::parseMetadataAttachment(), previousIsLoop(), ProvisionalValue(), llvm::sampleprof::SampleProfileReaderGCC::readOneFunctionProfile(), llvm::SSAUpdaterImpl< UpdaterT >::RecordMatchingPHIs(), llvm::HexagonInstrInfo::reduceLoopCount(), RemoveInstInputs(), llvm::opt::Arg::render(), llvm::opt::Arg::renderAsInput(), llvm::ARMTargetLowering::ReplaceNodeResults(), llvm::ARMFrameLowering::ResolveFrameIndexReference(), rewritesSort(), llvm::GVNHoist::run(), llvm::Legalizer::runOnMachineFunction(), llvm::SlotIndexes::runOnMachineFunction(), llvm::HexagonShuffler::shuffle(), llvm::MachineBasicBlock::SplitCriticalEdge(), llvm::APInt::toString(), llvm::SpillPlacement::Node::update(), llvm::BlockFrequencyInfoImplBase::updateLoopWithIrreducible(), llvm::LiveRange::vni_end(), llvm::ManagedStringPool::~ManagedStringPool(), and llvm::MCWasmStreamer::~MCWasmStreamer().

◆ end() [2/2]

template<typename T, typename = void>
LLVM_ATTRIBUTE_ALWAYS_INLINE const_iterator llvm::SmallVectorTemplateCommon< T, typename >::end ( ) const
inline

Definition at line 122 of file SmallVector.h.

◆ front() [1/2]

template<typename T, typename = void>
reference llvm::SmallVectorTemplateCommon< T, typename >::front ( )
inline

◆ front() [2/2]

template<typename T, typename = void>
const_reference llvm::SmallVectorTemplateCommon< T, typename >::front ( ) const
inline

Definition at line 162 of file SmallVector.h.

◆ grow_pod()

template<typename T, typename = void>
void llvm::SmallVectorTemplateCommon< T, typename >::grow_pod ( size_t  MinSizeInBytes,
size_t  TSize 
)
inlineprotected

Definition at line 82 of file SmallVector.h.

◆ isSmall()

template<typename T, typename = void>
bool llvm::SmallVectorTemplateCommon< T, typename >::isSmall ( ) const
inlineprotected

Return true if this is a smallvector which has not had dynamic memory allocated for it.

Definition at line 88 of file SmallVector.h.

◆ max_size()

template<typename T, typename = void>
size_type llvm::SmallVectorTemplateCommon< T, typename >::max_size ( ) const
inline

Definition at line 137 of file SmallVector.h.

◆ operator[]() [1/2]

template<typename T, typename = void>
LLVM_ATTRIBUTE_ALWAYS_INLINE reference llvm::SmallVectorTemplateCommon< T, typename >::operator[] ( size_type  idx)
inline

Definition at line 148 of file SmallVector.h.

◆ operator[]() [2/2]

template<typename T, typename = void>
LLVM_ATTRIBUTE_ALWAYS_INLINE const_reference llvm::SmallVectorTemplateCommon< T, typename >::operator[] ( size_type  idx) const
inline

Definition at line 153 of file SmallVector.h.

◆ rbegin() [1/2]

template<typename T, typename = void>
reverse_iterator llvm::SmallVectorTemplateCommon< T, typename >::rbegin ( )
inline

◆ rbegin() [2/2]

template<typename T, typename = void>
const_reverse_iterator llvm::SmallVectorTemplateCommon< T, typename >::rbegin ( ) const
inline

Definition at line 131 of file SmallVector.h.

◆ rend() [1/2]

template<typename T, typename = void>
reverse_iterator llvm::SmallVectorTemplateCommon< T, typename >::rend ( )
inline

◆ rend() [2/2]

template<typename T, typename = void>
const_reverse_iterator llvm::SmallVectorTemplateCommon< T, typename >::rend ( ) const
inline

Definition at line 133 of file SmallVector.h.

◆ resetToSmall()

template<typename T, typename = void>
void llvm::SmallVectorTemplateCommon< T, typename >::resetToSmall ( )
inlineprotected

Put this vector in a state of being small.

Definition at line 93 of file SmallVector.h.

◆ setEnd()

template<typename T, typename = void>
void llvm::SmallVectorTemplateCommon< T, typename >::setEnd ( T P)
inlineprotected

Definition at line 97 of file SmallVector.h.

◆ size()

template<typename T, typename = void>
LLVM_ATTRIBUTE_ALWAYS_INLINE size_type llvm::SmallVectorTemplateCommon< T, typename >::size ( ) const
inline

Definition at line 136 of file SmallVector.h.

Referenced by llvm::RegsForValue::AddInlineAsmOperands(), llvm::DbgVariable::addMMIEntry(), addNegOperand(), llvm::bfi_detail::IrreducibleGraph::addNodesInLoop(), addOptionalImmOperand(), llvm::AggressiveAntiDepBreaker::AggressiveAntiDepBreaker(), llvm::StatepointLoweringState::allocateStackSlot(), llvm::AllocationOrder::AllocationOrder(), AnalyzeArguments(), llvm::analyzeStandardArguments(), llvm::sys::path::append(), llvm::opt::ArgList::append(), llvm::RegsForValue::append(), llvm::IntervalMapImpl::Path::atBegin(), llvm::ImutAVLTreeGenericIterator< ImutInfo >::atBeginning(), llvm::IntervalMapImpl::Path::atLastEntry(), llvm::DwarfCompileUnit::attachRangesOrLowHighPC(), llvm::yaml::Output::blockScalarString(), buildFromShuffleMostly(), buildGEP(), buildMultiplyTree(), BuildSubAggregate(), llvm::LiveRangeCalc::calculateValues(), llvm::yaml::Output::canElideEmptySequence(), canGoAfterDWARF(), canWidenShuffleElements(), CC_MipsO32_FP64(), llvm::ARMTargetLowering::CCAssignFnForReturn(), llvm::HexagonMCChecker::check(), llvm::HexagonShuffler::check(), CheckBaseRegAndIndexReg(), CheckForLiveRegDef(), checkHVXPipes(), llvm::ArrayRecycler< llvm::MachineOperand >::clear(), collectInsertionElements(), llvm::collectPGOFuncNameStrings(), combineTargetShuffle(), completeEphemeralValues(), llvm::IntEqClasses::compress(), llvm::safestack::StackLayout::computeLayout(), llvm::concatenateVectors(), llvm::LiveRange::containsOneValue(), ConvertI1VectorToInteger(), createAndInstr(), llvm::createDeadArgHackingPass(), llvm::createGreedyRegisterAllocator(), createPrivateNonConstGlobalForString(), createUniqueEntity(), llvm::LiveRange::createValueCopy(), llvm::DecodeVPERMILPMask(), llvm::DecodeVPPERMMask(), llvm::ARMFrameLowering::determineCalleeSaves(), llvm::MCFragment::dump(), llvm::PMDataManager::dumpUsedSet(), llvm::EmitAnyX86InstComments(), llvm::MCObjectStreamer::EmitBytes(), llvm::MCWinCOFFStreamer::EmitCOFFSecRel32(), llvm::MCWinCOFFStreamer::EmitCOFFSectionIndex(), emitDarwinBCHeaderAndTrailer(), llvm::MCObjectStreamer::EmitDTPRel32Value(), llvm::MCObjectStreamer::EmitDTPRel64Value(), llvm::PPCFrameLowering::emitEpilogue(), llvm::MCObjectStreamer::emitFill(), EmitGenDwarfInfo(), llvm::MCObjectStreamer::EmitGPRel32Value(), llvm::MCObjectStreamer::EmitGPRel64Value(), llvm::MCWasmStreamer::EmitIdent(), llvm::MCELFStreamer::EmitIdent(), llvm::MCWinCOFFStreamer::EmitInstToData(), EmitNops(), emitNullTerminatedSymbolName(), llvm::PPCFrameLowering::emitPrologue(), llvm::UnwindOpcodeAssembler::EmitRaw(), llvm::MCObjectStreamer::EmitRelocDirective(), llvm::MCObjectStreamer::EmitTPRel32Value(), llvm::MCObjectStreamer::EmitTPRel64Value(), llvm::MCObjectStreamer::EmitValueImpl(), encodeBase64StringEntry(), encodeBitmaskPerm(), llvm::CodeViewContext::encodeDefRange(), llvm::CodeViewContext::encodeInlineLineTable(), llvm::LiveRangeEdit::eraseVirtReg(), llvm::InstructionSelector::executeMatchTable(), ExpandResponseFile(), llvm::cl::ExpandResponseFiles(), llvm::finalizeBundle(), findHoistingInsertPosAndDeps(), llvm::SparseMultiSet< VReg2SUnit, VirtReg2IndexFunctor >::findIndex(), llvm::MachineInstr::findTiedOperandIdx(), llvm::MCAssembler::Finish(), llvm::SplitEditor::finish(), llvm::FmtAlign::format(), ForwardSwitchConditionToPHI(), FunctionNumber(), GetAEABIUnwindPersonalityName(), getAttrFromCode(), GetBranchWeights(), getCombinerObjective(), llvm::DebugLocStream::getComments(), getComparePred(), getCompareSourceReg(), llvm::RegsForValue::getCopyToRegs(), getDRegFromQReg(), getFauxShuffleMask(), getFPReg(), getFrameIndexOperandNum(), llvm::RuntimeDyldELF::getGOTEntrySize(), llvm::NVPTXMachineFunctionInfo::getImageHandleSymbol(), llvm::NVPTXMachineFunctionInfo::getImageHandleSymbolIndex(), llvm::CCState::getInRegsParamInfo(), llvm::CCState::getInRegsParamsCount(), llvm::RegisterClassInfo::getLastCalleeSavedAlias(), llvm::DebugLocStream::getLists(), getMemcpyLoadsAndStores(), getMemmoveLoadsAndStores(), getMemsetStores(), llvm::LiveRange::getNextValue(), getNodeRegMask(), getNoopInput(), getNumAllocatableRegsForConstraints(), llvm::ExtractValueInst::getNumIndices(), llvm::InsertValueInst::getNumIndices(), llvm::RegBankSelect::RepairingPlacement::getNumInsertPoints(), llvm::LiveRange::getNumValNums(), llvm::opt::Arg::getNumValues(), llvm::SparseSolver::getOrInitValueState(), llvm::MachineTraceMetrics::getProcResourceCycles(), llvm::MachineTraceMetrics::Ensemble::getProcResourceDepths(), llvm::MachineTraceMetrics::Ensemble::getProcResourceHeights(), getShuffleInput(), llvm::DbgVariable::getSingleExpression(), llvm::pdb::DbiStreamBuilder::getSourceFileNameIndex(), getSpecialRegForName(), getStartOrEndSlot(), getUnconditionalBrDisp(), llvm::yaml::ScalarNode::getValue(), getX86SSEConditionCode(), llvm::IntEqClasses::grow(), llvm::IndexedMap< unsigned, llvm::VirtReg2IndexFunctor >::grow(), llvm::LiveVariables::HandleVirtRegDef(), llvm::DbgVariable::hasComplexAddress(), hasOnlySelectUsers(), hasValueBeenRAUWed(), llvm::IntervalMapImpl::Path::height(), llvm::detail::IEEEFloat::IEEEFloat(), llvm::IndexedMap< unsigned, llvm::VirtReg2IndexFunctor >::inBounds(), INITIALIZE_PASS(), llvm::InlineFunction(), llvm::LazyCallGraph::RefSCC::insertTrivialCallEdge(), llvm::LazyCallGraph::RefSCC::insertTrivialRefEdge(), llvm::MipsAnalyzeImmediate::Inst::Inst(), instIsBreakpoint(), isAssociative(), isCompareZero(), llvm::IsCPSRDead< MCInst >(), isDebug(), isFunctionEntryBlock(), llvm::DwarfDebug::isLexicalScopeDIENull(), llvm::IsMemoryAssignmentError(), isRegOrImmWithInputMods(), isReInterleaveMask(), IsSafeAndProfitableToMove(), IsSmallMemAccess(), isSupportedType(), isTerminalReg(), isWeak(), llvm::LiveRange::join(), LinearizeExprTree(), LLVMGetRelocationTypeName(), llvm::MipsSEInstrInfo::loadImmediate(), llvm::PPCInstrInfo::loadRegFromStackSlot(), llvm::BlockFrequencyInfoImplBase::LoopData::LoopData(), llvm::ARMCallLowering::lowerCall(), lowerV16I32VectorShuffle(), lowerV16I8VectorShuffle(), lowerV8F32VectorShuffle(), lowerV8I16GeneralSingleInputVectorShuffle(), lowerV8I32VectorShuffle(), lowerVectorShuffleWithUndefHalf(), llvm::sys::fs::make_absolute(), llvm::opt::InputArgList::MakeIndex(), makeStatepointExplicitImpl(), llvm::yaml::Output::mapTag(), matchBinaryPermuteVectorShuffle(), llvm::MaybePredicatedInst(), mayLoadFromGOTOrConstantPool(), llvm::BitTracker::RegisterCell::meet(), MergeAliasResults(), llvm::LegalizerHelper::narrowScalar(), llvm::sys::path::native(), llvm::RuntimePointerChecking::needsChecking(), llvm::CCState::nextInRegsParam(), llvm::object::ExportEntry::nodeOffset(), okayForPHIOfOps(), llvm::RegisterBankInfo::OperandsMapper::OperandsMapper(), llvm::FoldingSetNodeID::operator<(), llvm::operator<<(), llvm::object::ExportEntry::operator==(), llvm::BitTracker::RegisterCell::operator==(), llvm::FoldingSetNodeID::operator==(), AllocaSlices::partition_iterator::operator==(), llvm::SmallVectorImpl< std::pair< llvm::RelocationValueRef, llvm::RelocationEntry > >::operator==(), llvm::IndexedMap< unsigned, llvm::VirtReg2IndexFunctor >::operator[](), llvm::SplitEditor::overlapIntv(), llvm::DWARFDebugLoc::parse(), llvm::DWARFDebugLocDWO::parse(), llvm::MetadataLoader::MetadataLoaderImpl::parseMetadata(), llvm::MetadataLoader::MetadataLoaderImpl::parseMetadataAttachment(), previousEqual(), llvm::safestack::StackLayout::print(), llvm::opt::Arg::print(), llvm::AVROperand::print(), llvm::MachineDominatorTree::print(), llvm::LiveIntervals::print(), llvm::MachineInstr::print(), PrintCFIEscape(), llvm::BumpPtrAllocatorImpl< MallocAllocator, 65536 >::PrintStats(), ProvisionalValue(), llvm::sampleprof::SampleProfileReaderText::read(), llvm::sampleprof::SampleProfileReaderGCC::readOneFunctionProfile(), llvm::readPGOFuncNameStrings(), recognizeIdentityMask(), llvm::CodeViewContext::recordInlinedCallSiteId(), llvm::StackMaps::recordStatepoint(), redirectValuesFromPredecessorsToPhi(), RefineErrorLoc(), registerDefinedBetween(), llvm::RuntimeDyldELF::registerEHFrames(), regOverlapsSet(), llvm::sys::path::remove_dots(), llvm::sys::path::remove_filename(), removeDuplicateGCPtrs(), RemoveInstInputs(), removePhis(), llvm::sys::path::replace_extension(), llvm::sys::path::replace_path_prefix(), RequiresVFPRegListValidation(), llvm::ARMFrameLowering::ResolveFrameIndexReference(), llvm::RuntimeDyldImpl::resolveRelocationList(), resolveTargetShuffleInputsAndMask(), RewriteIntelBracExpression(), rewritesSort(), rotateSign(), llvm::GVNHoist::run(), llvm::Legalizer::runOnMachineFunction(), llvm::RegisterClassInfo::runOnMachineFunction(), llvm::FastISel::selectPatchpoint(), llvm::EngineBuilder::selectTarget(), setRequiredFeatureString(), llvm::IntervalMapImpl::Path::setSize(), llvm::IndexedMap< unsigned, llvm::VirtReg2IndexFunctor >::size(), llvm::LiveRangeEdit::size(), llvm::HexagonShuffler::size(), llvm::opt::ArgList::size(), llvm::SparseSet< unsigned, llvm::VirtReg2IndexFunctor >::size(), llvm::LiveRange::size(), llvm::SparseMultiSet< VReg2SUnit, VirtReg2IndexFunctor >::size(), llvm::IntervalMapImpl::Path::size(), AllocaSlices::SliceBuilder::SliceBuilder(), llvm::StatepointLoweringState::startNewStatepoint(), llvm::PPCInstrInfo::storeRegToStackSlot(), llvm::raw_svector_ostream::str(), llvm::TailDuplicator::tailDuplicateAndUpdate(), llvm::Twine::toNullTerminatedStringRef(), llvm::detail::IEEEFloat::toString(), llvm::APInt::toString(), llvm::Twine::toStringRef(), TrackDefUses(), llvm::codeview::TypeRecordBuilder::truncate(), truncateToSize(), llvm::IntEqClasses::uncompress(), updateOperand(), updatePhysDepsUpwards(), validThroughout(), llvm::sroa::AllocaSliceRewriter::visit(), llvm::WriteBitcodeToFile(), llvm::MCObjectWriter::writeBytes(), llvm::WriteIndexToFile(), llvm::MCAssembler::writeSectionData(), llvm::BitcodeWriter::writeSymtab(), llvm::WriteThinLinkBitcodeToFile(), llvm::opt::Arg::~Arg(), llvm::MCWasmStreamer::~MCWasmStreamer(), and llvm::ValueSymbolTable::~ValueSymbolTable().

Friends And Related Function Documentation

◆ SmallVectorStorage

template<typename T, typename = void>
template<typename , unsigned >
friend struct SmallVectorStorage
friend

Definition at line 70 of file SmallVector.h.


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