|
LLVM
3.7.0
|
A templated base class for SmallPtrSet which provides the typesafe interface that is common across all small sizes.
More...
#include <SmallPtrSet.h>
Public Types | |
| typedef SmallPtrSetIterator < PtrType > | iterator |
| typedef SmallPtrSetIterator < PtrType > | const_iterator |
Public Types inherited from llvm::SmallPtrSetImplBase | |
| typedef unsigned | size_type |
Public Member Functions | |
| std::pair< iterator, bool > | insert (PtrType Ptr) |
| Inserts Ptr if and only if there is no element in the container equal to Ptr. More... | |
| bool | erase (PtrType Ptr) |
| erase - If the set contains the specified pointer, remove it and return true, otherwise return false. More... | |
| size_type | count (PtrType Ptr) const |
| count - Return 1 if the specified pointer is in the set, 0 otherwise. More... | |
| template<typename IterT > | |
| void | insert (IterT I, IterT E) |
| iterator | begin () const |
| iterator | end () const |
Public Member Functions inherited from llvm::SmallPtrSetImplBase | |
| bool LLVM_ATTRIBUTE_UNUSED_RESULT | empty () const |
| size_type | size () const |
| void | clear () |
Protected Member Functions | |
| SmallPtrSetImpl (const void **SmallStorage, const SmallPtrSetImpl &that) | |
| SmallPtrSetImpl (const void **SmallStorage, unsigned SmallSize, SmallPtrSetImpl &&that) | |
| SmallPtrSetImpl (const void **SmallStorage, unsigned SmallSize) | |
Protected Member Functions inherited from llvm::SmallPtrSetImplBase | |
| SmallPtrSetImplBase (const void **SmallStorage, const SmallPtrSetImplBase &that) | |
| SmallPtrSetImplBase (const void **SmallStorage, unsigned SmallSize, SmallPtrSetImplBase &&that) | |
| SmallPtrSetImplBase (const void **SmallStorage, unsigned SmallSize) | |
| ~SmallPtrSetImplBase () | |
| std::pair< const void *const *, bool > | insert_imp (const void *Ptr) |
| insert_imp - This returns true if the pointer was new to the set, false if it was already in the set. More... | |
| bool | erase_imp (const void *Ptr) |
| erase_imp - If the set contains the specified pointer, remove it and return true, otherwise return false. More... | |
| bool | count_imp (const void *Ptr) const |
| void | swap (SmallPtrSetImplBase &RHS) |
| swap - Swaps the elements of two sets. More... | |
| void | CopyFrom (const SmallPtrSetImplBase &RHS) |
| CopyFrom - implement operator= from a smallptrset that has the same pointer type, but may have a different small size. More... | |
| void | MoveFrom (unsigned SmallSize, SmallPtrSetImplBase &&RHS) |
Additional Inherited Members | |
Static Protected Member Functions inherited from llvm::SmallPtrSetImplBase | |
| static void * | getTombstoneMarker () |
| static void * | getEmptyMarker () |
Protected Attributes inherited from llvm::SmallPtrSetImplBase | |
| const void ** | SmallArray |
| SmallArray - Points to a fixed size set of buckets, used in 'small mode'. More... | |
| const void ** | CurArray |
| CurArray - This is the current set of buckets. More... | |
| unsigned | CurArraySize |
| CurArraySize - The allocated size of CurArray, always a power of two. More... | |
| unsigned | NumElements |
| unsigned | NumTombstones |
A templated base class for SmallPtrSet which provides the typesafe interface that is common across all small sizes.
This is particularly useful for passing around between interface boundaries to avoid encoding a particular small size in the interface boundary.
Definition at line 242 of file SmallPtrSet.h.
| typedef SmallPtrSetIterator<PtrType> llvm::SmallPtrSetImpl< PtrType >::const_iterator |
Definition at line 258 of file SmallPtrSet.h.
| typedef SmallPtrSetIterator<PtrType> llvm::SmallPtrSetImpl< PtrType >::iterator |
Definition at line 257 of file SmallPtrSet.h.
|
inlineprotected |
Definition at line 248 of file SmallPtrSet.h.
|
inlineprotected |
Definition at line 250 of file SmallPtrSet.h.
|
inlineexplicitprotected |
Definition at line 253 of file SmallPtrSet.h.
|
inline |
Definition at line 286 of file SmallPtrSet.h.
Referenced by llvm::MemoryDepChecker::areDepsSafe(), llvm::ObjectSizeOffsetEvaluator::compute(), llvm::findPHICopyInsertPoint(), FindPredecessorAutoreleaseWithSafePath(), FindPredecessorRetainWithSafePath(), PeepholePPC64ZExtGather(), and llvm::LLVMContextImpl::~LLVMContextImpl().
|
inline |
count - Return 1 if the specified pointer is in the set, 0 otherwise.
Definition at line 276 of file SmallPtrSet.h.
Referenced by llvm::RecurrenceDescriptor::AddReductionVar(), llvm::CodeMetrics::analyzeBasicBlock(), llvm::PreservedAnalyses::areAllPreserved(), llvm::RecurrenceDescriptor::areAllUsesIn(), bothUsedInPHI(), llvm::ForwardDominanceFrontierBase< BlockT >::calculate(), CanPropagatePredecessorsForPHIs(), checkForCyclesHelper(), llvm::DomTreeNodeBase< NodeT >::compare(), completeEphemeralValues(), ComputePostOrders(), llvm::LoopBase< BasicBlock, Loop >::contains(), determinePointerReadAttrs(), DominatesMergePoint(), llvm::FindFunctionBackedges(), llvm::DominatorTreeBase< BasicBlock >::findNearestCommonDominator(), llvm::findPHICopyInsertPoint(), FoldTwoEntryPHINode(), llvm::RecurrenceDescriptor::hasMultipleUsesOf(), hasOutsideLoopUser(), llvm::SDNode::hasPredecessorHelper(), llvm::LazyCallGraph::SCC::insertIncomingEdge(), InsertRootInitializers(), llvm::PreservedAnalyses::intersect(), isEphemeralValueOf(), llvm::LiveVariables::isLiveOut(), isProfitableToFoldUnconditional(), IsSafeAndProfitableToMove(), isSimplifiedLoopNest(), llvm::SelectionDAG::LegalizeOp(), LinearizeExprTree(), llvm::PreservedAnalyses::preserved(), llvm::removeUnreachableBlocks(), llvm::LiveVariables::runOnMachineFunction(), SafeToMergeTerminators(), llvm::InstCombiner::SliceUpIllegalIntegerPHI(), StripSymbolNames(), llvm::AssumptionCacheTracker::verifyAnalysis(), and llvm::InstCombiner::visitLandingPadInst().
|
inline |
Definition at line 289 of file SmallPtrSet.h.
Referenced by llvm::ObjectSizeOffsetEvaluator::compute(), PeepholePPC64ZExtGather(), and sink().
|
inline |
erase - If the set contains the specified pointer, remove it and return true, otherwise return false.
Definition at line 271 of file SmallPtrSet.h.
Referenced by llvm::MemoryDepChecker::areDepsSafe(), checkForCyclesHelper(), ComputePostOrders(), llvm::FindFunctionBackedges(), llvm::PreservedAnalyses::intersect(), llvm::ARMBaseInstrInfo::optimizeSelect(), and llvm::LoopBase< BasicBlock, Loop >::removeBlockFromLoop().
|
inline |
Inserts Ptr if and only if there is no element in the container equal to Ptr.
The bool component of the returned pair is true if and only if the insertion takes place, and the iterator component of the pair points to the element equal to Ptr.
Definition at line 264 of file SmallPtrSet.h.
Referenced by accumulateAndSortLibcalls(), AddAliasScopeMetadata(), llvm::LoopBase< BasicBlock, Loop >::addBlockEntry(), llvm::AArch64FunctionInfo::addLOHDirective(), AddReachableCodeToWorklist(), llvm::RecurrenceDescriptor::AddReductionVar(), llvm::IVUsers::AddUsersImpl(), llvm::PreservedAnalyses::all(), AllUsesOfValueWillTrapIfNull(), analyzeGlobalAux(), AreAnyUnderlyingObjectsAnAlloca(), llvm::IDFCalculator::calculate(), llvm::ForwardDominanceFrontierBase< BlockT >::calculate(), llvm::VirtRegAuxInfo::calculateSpillWeightAndHint(), canTrapImpl(), checkForCyclesHelper(), llvm::collectUsedGlobalVariables(), llvm::DomTreeNodeBase< NodeT >::compare(), completeEphemeralValues(), ComputePostOrders(), ConstantFoldConstantExpressionImpl(), constexprToEdges(), ConstHasGlobalValuePredicate(), contains(), llvm::MachineBasicBlock::CorrectExtraCFGEdges(), cxxDtorIsEmpty(), DeadPHICycle(), DominatesMergePoint(), llvm::AsmPrinter::EmitJumpTableInfo(), enqueueUsersInWorklist(), llvm::Eval(), extendSegmentsToUses(), llvm::CodeExtractor::extractCodeRegion(), llvm::DIBuilder::finalize(), findCallees(), llvm::objcarc::FindDependencies(), llvm::FindFunctionBackedges(), findLoopInstr(), llvm::DominatorTreeBase< BasicBlock >::findNearestCommonDominator(), findNonImmUse(), llvm::findPHICopyInsertPoint(), findReachableBlocks(), FindUsedValues(), findUsedValues(), FoldBlockIntoPredecessor(), llvm::ScalarEvolution::forgetLoop(), llvm::ScalarEvolution::forgetValue(), getAdjustedPtr(), llvm::LexicalScopes::getMachineBasicBlocks(), llvm::MemoryDependenceAnalysis::getNonLocalCallDependency(), GetStringLengthH(), getUnderlyingObjects(), llvm::GetUnderlyingObjects(), HandleInlinedInvoke(), hasConcreteDef(), hasConcreteDefImpl(), llvm::SDNode::hasPredecessorHelper(), llvm::PMTopLevelManager::initializeAllAnalysisInfo(), InlineCallIfPossible(), llvm::SmallPtrSetImpl< llvm::BasicBlock * >::insert(), llvm::LazyCallGraph::SCC::insertIncomingEdge(), InsertRootInitializers(), isDereferenceablePointer(), isEphemeralValueOf(), isHighCostExpansion(), llvm::LiveVariables::isLiveOut(), isObjectSizeLessThanOrEq(), isSafeToMove(), isSimpleEnoughValueToCommit(), isSimplifiedLoopNest(), llvm::StructType::isSized(), IsStoredObjCPointer(), iterateChainSucc(), llvm::LazyCallGraph::LazyCallGraph(), llvm::SelectionDAG::Legalize(), llvm::SelectionDAG::LegalizeOp(), LinearizeExprTree(), LoadUsesSimpleEnoughForHeapSRA(), llvm::LoopBase< BasicBlock, Loop >::LoopBase(), markAliveBlocks(), MarkBlocksLiveIn(), llvm::SelectionDAG::MorphNodeTo(), llvm::ARMBaseInstrInfo::optimizeSelect(), PeepholePPC64ZExtGather(), PHIsEqualValue(), llvm::PreservedAnalyses::preserve(), printNodes(), llvm::promoteLoopAccessesToScalars(), pushIVUsers(), llvm::RecursivelyDeleteDeadPHINode(), llvm::LiveRange::RenumberValues(), llvm::LazyCallGraphPrinterPass::run(), searchForVNI(), simplifyOneLoop(), llvm::InstCombiner::SliceUpIllegalIntegerPHI(), llvm::SmallPtrSet< llvm::BasicBlock *, 16 >::SmallPtrSet(), sortOpts(), llvm::Value::stripAndAccumulateInBoundsConstantOffsets(), stripAndComputeConstantOffsets(), llvm::IVStrideUse::transformToPostInc(), updateLiveness(), ValueIsOnlyUsedLocallyOrStoredToOneGlobal(), llvm::AssumptionCacheTracker::verifyAnalysis(), llvm::LoopBase< N, M >::verifyLoop(), llvm::InstCombiner::visitLandingPadInst(), and llvm::InstCombiner::visitPHINode().
|
inline |
Definition at line 281 of file SmallPtrSet.h.
1.8.6