|
LLVM
10.0.0
|
#include "llvm/ADT/DenseMap.h"
Inherits llvm::DebugEpochBase.
Public Types | |
| using | size_type = unsigned |
| using | key_type = KeyT |
| using | mapped_type = ValueT |
| using | value_type = BucketT |
| using | iterator = DenseMapIterator< KeyT, ValueT, KeyInfoT, BucketT > |
| using | const_iterator = DenseMapIterator< KeyT, ValueT, KeyInfoT, BucketT, true > |
Public Member Functions | |
| iterator | begin () |
| iterator | end () |
| const_iterator | begin () const |
| const_iterator | end () const |
| LLVM_NODISCARD bool | empty () const |
| unsigned | size () const |
| void | reserve (size_type NumEntries) |
Grow the densemap so that it can contain at least NumEntries items before resizing again. More... | |
| void | clear () |
| size_type | count (const_arg_type_t< KeyT > Val) const |
| Return 1 if the specified key is in the map, 0 otherwise. More... | |
| iterator | find (const_arg_type_t< KeyT > Val) |
| const_iterator | find (const_arg_type_t< KeyT > Val) const |
| template<class LookupKeyT > | |
| iterator | find_as (const LookupKeyT &Val) |
| Alternate version of find() which allows a different, and possibly less expensive, key type. More... | |
| template<class LookupKeyT > | |
| const_iterator | find_as (const LookupKeyT &Val) const |
| ValueT | lookup (const_arg_type_t< KeyT > Val) const |
| lookup - Return the entry for the specified key, or a default constructed value if no such entry exists. More... | |
| std::pair< iterator, bool > | insert (const std::pair< KeyT, ValueT > &KV) |
| std::pair< iterator, bool > | insert (std::pair< KeyT, ValueT > &&KV) |
| template<typename... Ts> | |
| std::pair< iterator, bool > | try_emplace (KeyT &&Key, Ts &&... Args) |
| template<typename... Ts> | |
| std::pair< iterator, bool > | try_emplace (const KeyT &Key, Ts &&... Args) |
| template<typename LookupKeyT > | |
| std::pair< iterator, bool > | insert_as (std::pair< KeyT, ValueT > &&KV, const LookupKeyT &Val) |
| Alternate version of insert() which allows a different, and possibly less expensive, key type. More... | |
| template<typename InputIt > | |
| void | insert (InputIt I, InputIt E) |
| insert - Range insertion of pairs. More... | |
| bool | erase (const KeyT &Val) |
| void | erase (iterator I) |
| value_type & | FindAndConstruct (const KeyT &Key) |
| ValueT & | operator[] (const KeyT &Key) |
| value_type & | FindAndConstruct (KeyT &&Key) |
| ValueT & | operator[] (KeyT &&Key) |
| bool | isPointerIntoBucketsArray (const void *Ptr) const |
| isPointerIntoBucketsArray - Return true if the specified pointer points somewhere into the DenseMap's array of buckets (i.e. More... | |
| const void * | getPointerIntoBucketsArray () const |
| getPointerIntoBucketsArray() - Return an opaque pointer into the buckets array. More... | |
| size_t | getMemorySize () const |
| Return the approximate size (in bytes) of the actual map. More... | |
Public Member Functions inherited from llvm::DebugEpochBase | |
| DebugEpochBase () | |
| void | incrementEpoch () |
| Calling incrementEpoch invalidates all handles pointing into the calling instance. More... | |
| ~DebugEpochBase () | |
| The destructor calls incrementEpoch to make use-after-free bugs more likely to crash deterministically. More... | |
Protected Member Functions | |
| DenseMapBase ()=default | |
| void | destroyAll () |
| void | initEmpty () |
| unsigned | getMinBucketToReserveForEntries (unsigned NumEntries) |
Returns the number of buckets to allocate to ensure that the DenseMap can accommodate NumEntries without need to grow(). More... | |
| void | moveFromOldBuckets (BucketT *OldBucketsBegin, BucketT *OldBucketsEnd) |
| template<typename OtherBaseT > | |
| void | copyFrom (const DenseMapBase< OtherBaseT, KeyT, ValueT, KeyInfoT, BucketT > &other) |
Static Protected Member Functions | |
| static unsigned | getHashValue (const KeyT &Val) |
| template<typename LookupKeyT > | |
| static unsigned | getHashValue (const LookupKeyT &Val) |
| static const KeyT | getEmptyKey () |
| static const KeyT | getTombstoneKey () |
Definition at line 59 of file DenseMap.h.
| using llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT, BucketT >::const_iterator = DenseMapIterator<KeyT, ValueT, KeyInfoT, BucketT, true> |
Definition at line 71 of file DenseMap.h.
| using llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT, BucketT >::iterator = DenseMapIterator<KeyT, ValueT, KeyInfoT, BucketT> |
Definition at line 69 of file DenseMap.h.
| using llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT, BucketT >::key_type = KeyT |
Definition at line 65 of file DenseMap.h.
| using llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT, BucketT >::mapped_type = ValueT |
Definition at line 66 of file DenseMap.h.
| using llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT, BucketT >::size_type = unsigned |
Definition at line 64 of file DenseMap.h.
| using llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT, BucketT >::value_type = BucketT |
Definition at line 67 of file DenseMap.h.
|
protecteddefault |
|
inline |
Definition at line 73 of file DenseMap.h.
Referenced by llvm::json::Object::begin(), llvm::ValueMap< const Function *, FuncInfo >::begin(), llvm::LoopVectorizationCostModel::collectInstsToScalarize(), FindMostPopularDest(), llvm::Value::isSwiftError(), llvm::ValueEnumerator::print(), llvm::orc::JITDylib::removeGenerator(), and llvm::cflaa::CFLGraph::value_mappings().
|
inline |
Definition at line 85 of file DenseMap.h.
|
inline |
Definition at line 110 of file DenseMap.h.
Referenced by llvm::opt::ArgList::ArgList(), llvm::BlockFrequencyInfoImpl< llvm::BitTracker >::calculate(), llvm::PredIteratorCache::clear(), llvm::objcarc::ProvenanceAnalysis::clear(), llvm::BlotMapVector< KeyT, ValueT >::clear(), llvm::json::Object::clear(), llvm::AssumptionCache::clear(), llvm::ValueMap< const Function *, FuncInfo >::clear(), llvm::LoopBlocksDFS::clear(), llvm::SDDbgInfo::clear(), llvm::GCModuleInfo::clear(), llvm::FunctionLoweringInfo::clear(), llvm::xray::Graph< VertexAttribute, EdgeAttribute, VI >::clear(), hasTiedDef(), llvm::MachineSSAUpdater::Initialize(), llvm::SSAUpdater::Initialize(), INITIALIZE_PASS(), insertDeleteInstructions(), llvm::isAllocaPromotable(), llvm::orc::MaterializationResponsibility::notifyEmitted(), llvm::SlotIndexes::releaseMemory(), ReorganizeVector(), llvm::MCStreamer::reset(), llvm::SplitEditor::reset(), llvm::NVPTXAsmPrinter::runOnMachineFunction(), llvm::LiveDebugVariables::splitRegister(), llvm::TailDuplicator::tailDuplicateAndUpdate(), llvm::RegionInfoBase< RegionTraits< Function > >::updateRegionTree(), VisitGlobalVariableForEmission(), llvm::LLVMContextImpl::~LLVMContextImpl(), and llvm::ScalarEvolution::~ScalarEvolution().
|
inlineprotected |
Definition at line 391 of file DenseMap.h.
|
inline |
Return 1 if the specified key is in the map, 0 otherwise.
Definition at line 145 of file DenseMap.h.
Referenced by llvm::orc::MaterializationResponsibility::addDependencies(), llvm::pdb::PDBFileBuilder::addNamedStream(), llvm::VPlan::addVPValue(), llvm::HexagonSubtarget::CallMutation::apply(), computeImportForFunction(), computeImportForReferencedGlobals(), llvm::EHStreamer::computePadMap(), llvm::xray::Graph< VertexAttribute, EdgeAttribute, VI >::count(), llvm::PPCRegisterInfo::eliminateFrameIndex(), llvm::xray::Graph< VertexAttribute, EdgeAttribute, VI >::InOutEdgeView< isConst, isOut >::empty(), findArgumentCopyElisionCandidates(), llvm::LoopBlocksTraversal::finishPostorder(), llvm::PPCRegisterInfo::getMappedIdxOpcForImmOpc(), llvm::orc::AbsoluteSymbolsMaterializationUnit::getName(), llvm::orc::ReExportsMaterializationUnit::getName(), llvm::VPlan::getOrAddVPValue(), getUnwindDestToken(), getUnwindDestTokenHelper(), llvm::VPlan::getVPValue(), HandleInlinedEHPad(), llvm::SlotIndexes::hasIndex(), llvm::LoopBlocksDFS::hasPreorder(), hasUseAfterLoop(), llvm::MachineSSAUpdater::HasValueForBlock(), llvm::SSAUpdater::HasValueForBlock(), llvm::HexagonCVIResource::HexagonCVIResource(), llvm::FunctionLoweringInfo::isExportedInst(), llvm::ARMBaseInstrInfo::isFpMLxInstruction(), llvm::PPCRegisterInfo::needsFrameBaseReg(), llvm::orc::ObjectLinkingLayerJITLinkContext::notifyResolved(), llvm::Attributor::registerAA(), llvm::orc::JITDylib::removeGenerator(), llvm::MemoryDependenceResults::removeInstruction(), llvm::scc_iterator< GraphT, GT >::ReplaceNode(), llvm::HexagonMCChecker::reportBranchErrors(), selectIncomingValueForBlock(), llvm::BlockFrequencyInfoImpl< llvm::BitTracker >::setBlockFreq(), stashEntryDbgValues(), and tryToElideArgumentCopy().
|
inlineprotected |
Definition at line 330 of file DenseMap.h.
|
inline |
Definition at line 96 of file DenseMap.h.
Referenced by CompactSwizzlableVector(), llvm::StackProtector::copyToMachineFrameInfo(), llvm::BlotMapVector< KeyT, ValueT >::empty(), llvm::json::Object::empty(), llvm::ValueMap< const Function *, FuncInfo >::empty(), genNeg(), llvm::orc::LazyReexportsMaterializationUnit::getName(), llvm::orc::ReExportsMaterializationUnit::getName(), llvm::orc::ObjectLinkingLayerJITLinkContext::notifyResolved(), ReorganizeVector(), llvm::SlotIndexes::runOnMachineFunction(), llvm::LoopVectorizationCostModel::runtimeChecksRequired(), llvm::LoopVectorizationCostModel::selectInterleaveCount(), llvm::lto::thinBackend(), llvm::orc::DynamicLibrarySearchGenerator::tryToGenerate(), llvm::orc::ReexportsGenerator::tryToGenerate(), and llvm::orc::MaterializationResponsibility::~MaterializationResponsibility().
|
inline |
Definition at line 82 of file DenseMap.h.
Referenced by llvm::BasicAAResult::alias(), llvm::ValueMapCallbackVH< KeyT, ValueT, Config >::allUsesReplacedWith(), llvm::AssumptionCache::assumptionsFor(), llvm::xray::Graph< VertexAttribute, EdgeAttribute, VI >::at(), llvm::xray::Graph< VertexAttribute, EdgeAttribute, VI >::InOutEdgeView< isConst, isOut >::begin(), llvm::BlotMapVector< KeyT, ValueT >::blot(), llvm::xray::Graph< VertexAttribute, EdgeAttribute, VI >::InOutEdgeView< isConst, isOut >::cbegin(), llvm::xray::Graph< VertexAttribute, EdgeAttribute, VI >::InOutEdgeView< isConst, isOut >::cend(), collectCallSiteParameters(), llvm::LoopVectorizationCostModel::collectInstsToScalarize(), llvm::ObjectSizeOffsetEvaluator::compute(), llvm::EHStreamer::computeCallSiteTable(), llvm::StackProtector::copyToMachineFrameInfo(), llvm::ValueMap< const Function *, FuncInfo >::count(), llvm::orc::MaterializationResponsibility::delegate(), llvm::MachineFunction::DeleteMachineInstr(), llvm::json::Object::end(), llvm::FunctionLoweringInfo::StatepointSpillMap::end(), llvm::ValueMap< const Function *, FuncInfo >::end(), llvm::xray::Graph< VertexAttribute, EdgeAttribute, VI >::InOutEdgeView< isConst, isOut >::end(), llvm::ValueMap< const Function *, FuncInfo >::erase(), llvm::opt::ArgList::eraseArg(), llvm::BlotMapVector< KeyT, ValueT >::find(), findStartOfTree(), llvm::ARMAsmBackendDarwin::generateCompactUnwindEncoding(), llvm::ValueEnumerator::getAttributeGroupID(), llvm::ValueEnumerator::getAttributeListID(), llvm::SparseSolver< LatticeKey, LatticeVal, KeyInfo >::getExistingValueState(), llvm::GCModuleInfo::getFunctionInfo(), llvm::SlotIndexes::getIndexAfter(), llvm::SlotIndexes::getIndexBefore(), llvm::ValueEnumerator::getInstructionID(), llvm::SlotIndexes::getInstructionIndex(), getMappedReg(), llvm::orc::LazyReexportsMaterializationUnit::getName(), llvm::orc::ReExportsMaterializationUnit::getName(), llvm::cflaa::CFLGraph::getNode(), llvm::cflaa::CFLGraph::ValueInfo::getNumLevels(), llvm::AbstractDependenceGraphBuilder< DataDependenceGraph >::getOrdinal(), llvm::ARMFunctionInfo::getOriginalCPIdx(), llvm::PassRegistry::getPassInfo(), llvm::DataDependenceGraph::getPiBlock(), llvm::LoopBlocksDFS::getPostorder(), llvm::SCEVUnionPredicate::getPredicatesForExpr(), getRegsUsedByPHIs(), getSCCNum(), llvm::SDDbgInfo::getSDDbgValues(), llvm::R600InstrInfo::getSrcs(), llvm::ValueEnumerator::getTypeID(), getUnsigned(), getUnwindDestToken(), getUnwindDestTokenHelper(), llvm::NVPTXAsmPrinter::getVirtualRegisterName(), llvm::LoopBlocksDFS::hasPostorder(), llvm::SCEVUnionPredicate::implies(), llvm::SlotIndexes::insertMachineInstrInMaps(), llvm::FunctionLoweringInfo::InvalidatePHILiveOutRegInfo(), llvm::isAllocaPromotable(), llvm::AsmPrinter::isBlockOnlyReachableByFallthrough(), llvm::isEqual(), llvm::ProfileSummaryInfo::isFunctionEntryCold(), llvm::Value::isSwiftError(), loadObj(), llvm::ValueMap< const Function *, FuncInfo >::lookup(), llvm::codeview::DebugChecksumsSubsection::mapChecksumOffset(), MergeAliasResults(), llvm::orc::ObjectLinkingLayerJITLinkContext::modifyPassConfig(), llvm::orc::EHFrameRegistrationPlugin::notifyRemovingModule(), llvm::orc::MaterializationResponsibility::notifyResolved(), llvm::orc::AsynchronousSymbolQuery::notifySymbolMetRequiredState(), llvm::operator==(), packCmovGroup(), parseGlobalValue(), llvm::PeelSingleBlockLoop(), llvm::ValueEnumerator::print(), llvm::FileInfo::print(), llvm::GCNRPTracker::printLiveRegs(), pushDepHeight(), llvm::GVNHoist::rank(), llvm::safestack::StackColoring::removeAllMarkers(), llvm::orc::JITDylib::removeGenerator(), llvm::MemoryDependenceResults::removeInstruction(), llvm::SlotIndexes::removeMachineInstrFromMaps(), llvm::SlotIndexes::removeSingleMachineInstrFromMaps(), ReorganizeVector(), llvm::SlotIndexes::replaceMachineInstrInMaps(), llvm::replaceSymbolicStrideSCEV(), replaceUndefValuesInPhi(), reportMismatch(), llvm::SelectionDAGISel::runOnMachineFunction(), selectIncomingValueForBlock(), llvm::xray::Graph< VertexAttribute, EdgeAttribute, VI >::InOutEdgeView< isConst, isOut >::size(), AllocaSlices::SliceBuilder::SliceBuilder(), llvm::thinLTOInternalizeModule(), llvm::thinLTOResolvePrevailingInModule(), tryToElideArgumentCopy(), and llvm::cflaa::CFLGraph::value_mappings().
|
inline |
Definition at line 92 of file DenseMap.h.
|
inline |
Definition at line 272 of file DenseMap.h.
Referenced by llvm::ValueMapCallbackVH< KeyT, ValueT, Config >::allUsesReplacedWith(), llvm::BlotMapVector< KeyT, ValueT >::blot(), llvm::ObjectSizeOffsetEvaluator::compute(), llvm::orc::MaterializationResponsibility::delegate(), llvm::ValueMapCallbackVH< KeyT, ValueT, Config >::deleted(), deleteDeadInstruction(), llvm::json::Object::erase(), llvm::ValueMap< const Function *, FuncInfo >::erase(), llvm::opt::ArgList::eraseArg(), llvm::orc::LazyReexportsMaterializationUnit::getName(), llvm::orc::AbsoluteSymbolsMaterializationUnit::getName(), llvm::orc::ReExportsMaterializationUnit::getName(), llvm::MemoryDependenceResults::getNonLocalPointerDependency(), llvm::ScalarEvolution::hasOperand(), llvm::isAllocaPromotable(), llvm::orc::ObjectLinkingLayerJITLinkContext::modifyPassConfig(), llvm::orc::EHFrameRegistrationPlugin::notifyRemovingModule(), llvm::ValueEnumerator::purgeFunction(), pushDepHeight(), regOverlapsSet(), llvm::ValueHandleBase::RemoveFromUseList(), llvm::orc::JITDylib::removeGenerator(), llvm::MemoryDependenceResults::removeInstruction(), llvm::SlotIndexes::removeMachineInstrFromMaps(), llvm::SlotIndexes::removeSingleMachineInstrFromMaps(), llvm::orc::MaterializationResponsibility::replace(), llvm::SlotIndexes::replaceMachineInstrInMaps(), and llvm::scc_iterator< GraphT, GT >::ReplaceNode().
|
inline |
Definition at line 283 of file DenseMap.h.
|
inline |
Definition at line 150 of file DenseMap.h.
Referenced by llvm::BasicAAResult::alias(), llvm::ValueMapCallbackVH< KeyT, ValueT, Config >::allUsesReplacedWith(), llvm::SwingSchedulerDAG::applyInstrChange(), llvm::xray::Graph< VertexAttribute, EdgeAttribute, VI >::at(), llvm::xray::Graph< VertexAttribute, EdgeAttribute, VI >::InOutEdgeView< isConst, isOut >::begin(), llvm::BlotMapVector< KeyT, ValueT >::blot(), llvm::xray::Graph< VertexAttribute, EdgeAttribute, VI >::InOutEdgeView< isConst, isOut >::cbegin(), llvm::xray::Graph< VertexAttribute, EdgeAttribute, VI >::InOutEdgeView< isConst, isOut >::cend(), collectCallSiteParameters(), llvm::PMTopLevelManager::collectLastUses(), llvm::ObjectSizeOffsetEvaluator::compute(), llvm::EHStreamer::computeCallSiteTable(), llvm::SelectionDAGBuilder::CopyToExportRegsIfNeeded(), llvm::StackProtector::copyToMachineFrameInfo(), llvm::orc::MaterializationResponsibility::delegate(), llvm::MachineFunction::DeleteMachineInstr(), llvm::PPCRegisterInfo::eliminateFrameIndex(), llvm::xray::Graph< VertexAttribute, EdgeAttribute, VI >::InOutEdgeView< isConst, isOut >::end(), llvm::opt::ArgList::eraseArg(), llvm::BlotMapVector< KeyT, ValueT >::find(), llvm::FunctionLoweringInfo::StatepointSpillMap::find(), findStartOfTree(), llvm::SSAUpdater::FindValueForBlock(), llvm::SwingSchedulerDAG::fixupRegisterOverlaps(), llvm::ARMAsmBackendDarwin::generateCompactUnwindEncoding(), llvm::GraphDiff< llvm::BasicBlock *, IsPostDom >::getAddedChildren(), llvm::ValueEnumerator::getAttributeGroupID(), llvm::ValueEnumerator::getAttributeListID(), llvm::SelectionDAGBuilder::getCopyFromRegs(), llvm::SparseSolver< LatticeKey, LatticeVal, KeyInfo >::getExistingValueState(), llvm::GCModuleInfo::getFunctionInfo(), llvm::SlotIndexes::getIndexAfter(), llvm::SlotIndexes::getIndexBefore(), llvm::ValueEnumerator::getInstructionID(), llvm::SlotIndexes::getInstructionIndex(), llvm::PPCRegisterInfo::getMappedIdxOpcForImmOpc(), getMappedReg(), llvm::orc::LazyReexportsMaterializationUnit::getName(), llvm::TargetLibraryInfo::getName(), llvm::orc::ReExportsMaterializationUnit::getName(), llvm::cflaa::CFLGraph::getNode(), llvm::cflaa::CFLGraph::ValueInfo::getNumLevels(), llvm::AbstractDependenceGraphBuilder< DataDependenceGraph >::getOrdinal(), llvm::ARMFunctionInfo::getOriginalCPIdx(), llvm::PassRegistry::getPassInfo(), llvm::DataDependenceGraph::getPiBlock(), llvm::LoopBlocksDFS::getPostorder(), llvm::SCEVUnionPredicate::getPredicatesForExpr(), getRegsUsedByPHIs(), getSCCNum(), llvm::SDDbgInfo::getSDDbgValues(), llvm::R600InstrInfo::getSrcs(), llvm::ValueEnumerator::getTypeID(), getUnderlyingArgRegs(), getUnsigned(), getUnwindDestToken(), getUnwindDestTokenHelper(), llvm::NVPTXAsmPrinter::getVirtualRegisterName(), llvm::LoopBlocksDFS::hasPostorder(), hasSameExtUse(), llvm::GraphDiff< llvm::BasicBlock *, IsPostDom >::ignoreChild(), llvm::SCEVUnionPredicate::implies(), INITIALIZE_PASS(), llvm::SlotIndexes::insertMachineInstrInMaps(), llvm::FunctionLoweringInfo::InvalidatePHILiveOutRegInfo(), llvm::isAllocaPromotable(), llvm::AsmPrinter::isBlockOnlyReachableByFallthrough(), isCopyFeedingInvariantStore(), llvm::isEqual(), llvm::ProfileSummaryInfo::isFunctionEntryCold(), loadObj(), llvm::codeview::DebugChecksumsSubsection::mapChecksumOffset(), MergeAliasResults(), llvm::orc::ObjectLinkingLayerJITLinkContext::modifyPassConfig(), llvm::orc::EHFrameRegistrationPlugin::notifyRemovingModule(), llvm::orc::MaterializationResponsibility::notifyResolved(), llvm::orc::AsynchronousSymbolQuery::notifySymbolMetRequiredState(), llvm::operator==(), packCmovGroup(), parseGlobalValue(), llvm::ValueEnumerator::print(), llvm::FileInfo::print(), llvm::GCNRPTracker::printLiveRegs(), pushDepHeight(), llvm::GVNHoist::rank(), llvm::safestack::StackColoring::removeAllMarkers(), RemoveFromReverseMap(), llvm::orc::JITDylib::removeGenerator(), llvm::MemoryDependenceResults::removeInstruction(), llvm::SlotIndexes::removeMachineInstrFromMaps(), llvm::SlotIndexes::removeSingleMachineInstrFromMaps(), ReorganizeVector(), llvm::SlotIndexes::replaceMachineInstrInMaps(), llvm::scc_iterator< GraphT, GT >::ReplaceNode(), llvm::replaceSymbolicStrideSCEV(), replaceUndefValuesInPhi(), reportMismatch(), llvm::SelectionDAGISel::runOnMachineFunction(), selectIncomingValueForBlock(), llvm::xray::Graph< VertexAttribute, EdgeAttribute, VI >::InOutEdgeView< isConst, isOut >::size(), AllocaSlices::SliceBuilder::SliceBuilder(), llvm::TailDuplicator::tailDuplicateAndUpdate(), llvm::thinLTOInternalizeModule(), llvm::thinLTOResolvePrevailingInModule(), tryToElideArgumentCopy(), UpdateCPSRUse(), and updateForIncomingValueLocation().
|
inline |
Definition at line 156 of file DenseMap.h.
|
inline |
Alternate version of find() which allows a different, and possibly less expensive, key type.
The DenseMapInfo is responsible for supplying methods getHashValue(LookupKeyT) and isEqual(LookupKeyT, KeyT) for each key type used.
Definition at line 169 of file DenseMap.h.
Referenced by llvm::AssumptionCache::assumptionsFor(), llvm::ValueMap< const Function *, FuncInfo >::count(), llvm::ValueMap< const Function *, FuncInfo >::erase(), llvm::json::Object::find(), llvm::ValueMap< const Function *, FuncInfo >::find(), and llvm::ValueMap< const Function *, FuncInfo >::lookup().
|
inline |
Definition at line 176 of file DenseMap.h.
|
inline |
Definition at line 291 of file DenseMap.h.
Referenced by llvm::SSAUpdaterImpl< UpdaterT >::BuildBlockList(), llvm::ValueMap< const Function *, FuncInfo >::FindAndConstruct(), llvm::xray::Graph< VertexAttribute, EdgeAttribute, VI >::insert(), and llvm::xray::Graph< VertexAttribute, EdgeAttribute, VI >::operator[]().
|
inline |
Definition at line 303 of file DenseMap.h.
|
inlinestaticprotected |
Definition at line 423 of file DenseMap.h.
|
inlinestaticprotected |
Definition at line 414 of file DenseMap.h.
|
inlinestaticprotected |
Definition at line 419 of file DenseMap.h.
|
inline |
Return the approximate size (in bytes) of the actual map.
This is just the raw memory used by DenseMap. If entries are pointers to objects, the size of the referenced objects are not included.
Definition at line 642 of file DenseMap.h.
|
inlineprotected |
Returns the number of buckets to allocate to ensure that the DenseMap can accommodate NumEntries without need to grow().
Definition at line 356 of file DenseMap.h.
|
inline |
getPointerIntoBucketsArray() - Return an opaque pointer into the buckets array.
In conjunction with the previous method, this can be used to determine whether an insertion caused the DenseMap to reallocate.
Definition at line 325 of file DenseMap.h.
Referenced by llvm::ValueMap< const Function *, FuncInfo >::getPointerIntoBucketsArray(), and llvm::Value::isSwiftError().
|
inlinestaticprotected |
Definition at line 429 of file DenseMap.h.
|
inlineprotected |
Definition at line 343 of file DenseMap.h.
|
inline |
Definition at line 195 of file DenseMap.h.
Referenced by llvm::CompileUnit::addLabelLowPc(), llvm::DataDependenceGraph::addNode(), llvm::opt::ArgList::append(), llvm::ARMBaseInstrInfo::ARMBaseInstrInfo(), llvm::LoopVectorizationCostModel::collectInstsToScalarize(), computeImportForFunction(), llvm::createSampleProfileLoaderPass(), llvm::orc::MaterializationResponsibility::defineMaterializing(), llvm::SplitEditor::dump(), findArgumentCopyElisionCandidates(), findStackProtectorIntrinsic(), llvm::xray::BlockIndexer::flush(), gatherIncomingValuesToPhi(), llvm::AArch64InstrInfo::genAlternativeCodeSequence(), genNeg(), llvm::FunctionLoweringInfo::getCatchPadExceptionPointerVReg(), llvm::MemoryDependenceResults::getInvariantGroupPointerDependency(), getLocalId(), llvm::MemoryDependenceResults::getNonLocalPointerDependency(), getOpenCLAlignment(), getRegsUsedByPHIs(), llvm::MCObjectFileInfo::getStackSizesSection(), llvm::HexagonEvaluator::HexagonEvaluator(), INITIALIZE_PASS(), llvm::MIRParserImpl::initializeConstantPool(), llvm::MIRParserImpl::initializeFrameInfo(), llvm::MIRParserImpl::initializeJumpTableInfo(), llvm::BlotMapVector< KeyT, ValueT >::insert(), llvm::ValueMap< const Function *, FuncInfo >::insert(), llvm::xray::Graph< VertexAttribute, EdgeAttribute, VI >::insert(), llvm::gsym::GsymCreator::insertFile(), llvm::SlotIndexes::insertMachineInstrInMaps(), llvm::AsmPrinter::isBlockOnlyReachableByFallthrough(), isLoadConditional(), isNonEscapingLocalObject(), loadObj(), MergeAliasResults(), llvm::xray::mergeProfilesByThread(), llvm::orc::ObjectLinkingLayerJITLinkContext::modifyPassConfig(), llvm::BlotMapVector< KeyT, ValueT >::operator[](), llvm::xray::Graph< VertexAttribute, EdgeAttribute, VI >::operator[](), llvm::ValueEnumerator::print(), pushDepHeight(), llvm::TargetInstrInfo::reassociateOps(), llvm::ARMFunctionInfo::recordCPEClone(), llvm::PassRegistry::registerPass(), regOverlapsSet(), llvm::objcarc::ProvenanceAnalysis::related(), llvm::orc::JITDylib::removeGenerator(), llvm::MemoryDependenceResults::removeInstruction(), llvm::SlotIndexes::removeSingleMachineInstrFromMaps(), llvm::SlotIndexes::replaceMachineInstrInMaps(), llvm::DevirtSCCRepeatedPass< PassT >::run(), llvm::SelectionDAGISel::runOnMachineFunction(), llvm::SlotIndexes::runOnMachineFunction(), selectIncomingValueForBlock(), llvm::sampleprof::SampleProfileWriterExtBinaryBase::setToCompressSection(), shouldConvert(), AllocaSlices::SliceBuilder::SliceBuilder(), SortNonLocalDepInfoCache(), llvm::orc::ImplSymbolMap::trackImpls(), llvm::LoopBlocksTraversal::visitPreorder(), and llvm::MemorySSA::~MemorySSA().
|
inline |
Definition at line 202 of file DenseMap.h.
|
inline |
insert - Range insertion of pairs.
Definition at line 267 of file DenseMap.h.
|
inline |
Alternate version of insert() which allows a different, and possibly less expensive, key type.
The DenseMapInfo is responsible for supplying methods getHashValue(LookupKeyT) and isEqual(LookupKeyT, KeyT) for each key type used.
Definition at line 249 of file DenseMap.h.
|
inline |
isPointerIntoBucketsArray - Return true if the specified pointer points somewhere into the DenseMap's array of buckets (i.e.
either to a key or value in the DenseMap).
Definition at line 318 of file DenseMap.h.
Referenced by llvm::ValueMap< const Function *, FuncInfo >::isPointerIntoBucketsArray(), llvm::Value::isSwiftError(), and llvm::ValueHandleBase::RemoveFromUseList().
|
inline |
lookup - Return the entry for the specified key, or a default constructed value if no such entry exists.
Definition at line 185 of file DenseMap.h.
Referenced by llvm::addClonedBlockToLoopInfo(), llvm::SSAUpdaterImpl< UpdaterT >::BuildBlockList(), dropDeadSymbols(), llvm::ARMAsmPrinter::EmitJumpTableTBInst(), llvm::ARMAsmBackendDarwin::generateCompactUnwindEncoding(), llvm::DebugCounter::getCounterInfo(), llvm::Attributor::getDataLayout(), llvm::ValueEnumerator::getMetadataOrNullID(), getMetadataTypeOrder(), getNewDefiningAccessForClone(), getNewSource(), llvm::MachObjectWriter::getSectionAddress(), llvm::MCStreamer::GetSymbolOrder(), getUnderlyingObjects(), INITIALIZE_PASS(), llvm::DenseMapInfo< const Expression * >::isEqual(), llvm::orc::ObjectLinkingLayerJITLinkContext::lookup(), pushDepHeight(), llvm::GVNHoist::rank(), and llvm::MemorySSAUpdater::updateForClonedLoop().
|
inlineprotected |
Definition at line 365 of file DenseMap.h.
|
inline |
Definition at line 299 of file DenseMap.h.
|
inline |
Definition at line 311 of file DenseMap.h.
|
inline |
Grow the densemap so that it can contain at least NumEntries items before resizing again.
Definition at line 103 of file DenseMap.h.
Referenced by llvm::LoopBlocksDFS::LoopBlocksDFS(), llvm::SelectionDAG::updateDivergence(), and llvm::updateIndexWPDForExports().
|
inline |
Definition at line 99 of file DenseMap.h.
Referenced by llvm::MCStreamer::AssignFragment(), findArgumentCopyElisionCandidates(), getMetadataTypeOrder(), llvm::orc::ReExportsMaterializationUnit::getName(), getOpenCLAlignment(), llvm::MCObjectFileInfo::getStackSizesSection(), llvm::isEqual(), isFuncletReturnInstr(), llvm::Value::isSwiftError(), llvm::orc::EHFrameRegistrationPlugin::notifyRemovingAllModules(), llvm::operator==(), llvm::ValueEnumerator::print(), llvm::orc::JITDylib::removeGenerator(), llvm::json::Object::size(), and llvm::ValueMap< const Function *, FuncInfo >::size().
|
inline |
Definition at line 210 of file DenseMap.h.
Referenced by llvm::slpvectorizer::BoUpSLP::eraseInstructions(), llvm::slpvectorizer::BoUpSLP::getTreeCost(), MergeAliasResults(), and llvm::json::Object::try_emplace().
|
inline |
Definition at line 229 of file DenseMap.h.
1.8.13