LLVM
8.0.1
|
Base class for DenseSet and DenseSmallSet. More...
#include "llvm/ADT/DenseSet.h"
Classes | |
class | ConstIterator |
class | Iterator |
Public Types | |
using | key_type = ValueT |
using | value_type = ValueT |
using | size_type = unsigned |
using | iterator = Iterator |
using | const_iterator = ConstIterator |
Public Member Functions | |
DenseSetImpl (unsigned InitialReserve=0) | |
DenseSetImpl (std::initializer_list< ValueT > Elems) | |
bool | empty () const |
size_type | size () const |
size_t | getMemorySize () const |
void | resize (size_t Size) |
Grow the DenseSet so that it has at least Size buckets. More... | |
void | reserve (size_t Size) |
Grow the DenseSet so that it can contain at least NumEntries items before resizing again. More... | |
void | clear () |
size_type | count (const_arg_type_t< ValueT > V) const |
Return 1 if the specified key is in the set, 0 otherwise. More... | |
bool | erase (const ValueT &V) |
void | swap (DenseSetImpl &RHS) |
iterator | begin () |
iterator | end () |
const_iterator | begin () const |
const_iterator | end () const |
iterator | find (const_arg_type_t< ValueT > V) |
const_iterator | find (const_arg_type_t< ValueT > V) const |
template<class LookupKeyT > | |
iterator | find_as (const LookupKeyT &Val) |
Alternative 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 |
void | erase (Iterator I) |
void | erase (ConstIterator CI) |
std::pair< iterator, bool > | insert (const ValueT &V) |
std::pair< iterator, bool > | insert (ValueT &&V) |
template<typename LookupKeyT > | |
std::pair< iterator, bool > | insert_as (const ValueT &V, const LookupKeyT &LookupKey) |
Alternative version of insert that uses a different (and possibly less expensive) key type. More... | |
template<typename LookupKeyT > | |
std::pair< iterator, bool > | insert_as (ValueT &&V, const LookupKeyT &LookupKey) |
template<typename InputIt > | |
void | insert (InputIt I, InputIt E) |
Base class for DenseSet and DenseSmallSet.
MapTy should be either
DenseMap<ValueT, detail::DenseSetEmpty, ValueInfoT, detail::DenseSetPair<ValueT>>
or the equivalent SmallDenseMap type. ValueInfoT must implement the DenseMapInfo "concept".
Definition at line 55 of file DenseSet.h.
using llvm::detail::DenseSetImpl< ValueT, MapTy, ValueInfoT >::const_iterator = ConstIterator |
Definition at line 158 of file DenseSet.h.
using llvm::detail::DenseSetImpl< ValueT, MapTy, ValueInfoT >::iterator = Iterator |
Definition at line 157 of file DenseSet.h.
using llvm::detail::DenseSetImpl< ValueT, MapTy, ValueInfoT >::key_type = ValueT |
Definition at line 64 of file DenseSet.h.
using llvm::detail::DenseSetImpl< ValueT, MapTy, ValueInfoT >::size_type = unsigned |
Definition at line 66 of file DenseSet.h.
using llvm::detail::DenseSetImpl< ValueT, MapTy, ValueInfoT >::value_type = ValueT |
Definition at line 65 of file DenseSet.h.
|
inlineexplicit |
Definition at line 68 of file DenseSet.h.
|
inline |
Definition at line 70 of file DenseSet.h.
|
inline |
Definition at line 160 of file DenseSet.h.
Referenced by llvm::ConstantUniqueMap< llvm::ConstantExpr >::begin(), and llvm::orc::JITDylib::dump().
|
inline |
Definition at line 163 of file DenseSet.h.
|
inline |
Definition at line 87 of file DenseSet.h.
Referenced by llvm::TypeFinder::clear(), llvm::FunctionLoweringInfo::clear(), and llvm::DWARFDebugAranges::generate().
|
inline |
Return 1 if the specified key is in the set, 0 otherwise.
Definition at line 92 of file DenseSet.h.
Referenced by llvm::LiveVariables::addNewBlock(), addToListsIfDependent(), ContainsReg(), llvm::Instruction::copyMetadata(), llvm::orc::JITDylib::dump(), getRegsUsedByPHIs(), llvm::slpvectorizer::BoUpSLP::getTreeCost(), isNotExclusivelyConstantDerived(), llvm::detail::operator==(), and relocationViaAlloca().
|
inline |
Definition at line 75 of file DenseSet.h.
Referenced by llvm::orc::JITDylib::dump(), llvm::orc::FailedToMaterialize::FailedToMaterialize(), llvm::orc::ReExportsMaterializationUnit::getName(), llvm::slpvectorizer::BoUpSLP::getTreeCost(), llvm::DivergenceAnalysis::hasDetectedDivergence(), llvm::orc::JITDylib::legacyLookup(), llvm::orc::NullResolver::lookup(), llvm::orc::JITDylib::lookupFlags(), llvm::orc::ReexportsGenerator::operator()(), llvm::DivergenceAnalysis::print(), llvm::orc::JITDylib::remove(), llvm::orc::SymbolsCouldNotBeRemoved::SymbolsCouldNotBeRemoved(), and llvm::orc::SymbolsNotFound::SymbolsNotFound().
|
inline |
Definition at line 161 of file DenseSet.h.
Referenced by llvm::createSIDebuggerInsertNopsPass(), llvm::ConstantUniqueMap< llvm::ConstantExpr >::end(), llvm::ConstantUniqueMap< llvm::ConstantExpr >::getOrCreate(), llvm::PBQP::ValuePool< AllowedRegVector >::getValue(), llvm::DivergenceAnalysis::isAlwaysUniform(), llvm::DivergenceAnalysis::isDivergent(), llvm::ConstantUniqueMap< llvm::ConstantExpr >::remove(), and llvm::ConstantUniqueMap< llvm::ConstantExpr >::replaceOperandsInPlace().
|
inline |
Definition at line 164 of file DenseSet.h.
|
inline |
Definition at line 96 of file DenseSet.h.
Referenced by llvm::orc::buildSimpleReexportsAliasMap(), llvm::orc::JITDylib::legacyLookup(), llvm::orc::JITDylib::lookupFlags(), llvm::ConstantUniqueMap< llvm::ConstantExpr >::remove(), llvm::LegacyDivergenceAnalysis::removeValue(), and llvm::SetVector< llvm::SUnit *>::set_subtract().
|
inline |
Definition at line 185 of file DenseSet.h.
|
inline |
Definition at line 186 of file DenseSet.h.
|
inline |
Definition at line 166 of file DenseSet.h.
Referenced by llvm::createSIDebuggerInsertNopsPass(), llvm::DivergenceAnalysis::isAlwaysUniform(), llvm::DivergenceAnalysis::isDivergent(), and llvm::ConstantUniqueMap< llvm::ConstantExpr >::remove().
|
inline |
Definition at line 167 of file DenseSet.h.
|
inline |
Alternative 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 177 of file DenseSet.h.
Referenced by llvm::ConstantUniqueMap< llvm::ConstantExpr >::getOrCreate(), llvm::PBQP::ValuePool< AllowedRegVector >::getValue(), and llvm::ConstantUniqueMap< llvm::ConstantExpr >::replaceOperandsInPlace().
|
inline |
Definition at line 181 of file DenseSet.h.
|
inline |
Definition at line 77 of file DenseSet.h.
|
inline |
Definition at line 188 of file DenseSet.h.
Referenced by addDefsUsesToList(), llvm::LiveVariables::addNewBlock(), llvm::DivergenceAnalysis::addUniformOverride(), llvm::TypeFinder::clear(), ContainsReg(), llvm::Instruction::copyMetadata(), llvm::createSIDebuggerInsertNopsPass(), llvm::orc::JITDylib::dump(), llvm::orc::MaterializationResponsibility::failMaterialization(), llvm::AccelTableBase::finalize(), llvm::DWARFDebugAranges::generate(), getBaseType(), getCHRConditionValuesForRegion(), llvm::orc::ReExportsMaterializationUnit::getName(), getPointerOperands(), getPostIncrementOperand(), getRegsUsedByPHIs(), llvm::orc::JITSymbolResolverAdapter::getResponsibilitySet(), llvm::orc::getResponsibilitySetWithLegacyFn(), getSelectsInScope(), llvm::slpvectorizer::BoUpSLP::getTreeCost(), llvm::PBQP::ValuePool< AllowedRegVector >::getValue(), insertRelocationStores(), insertRematerializationStores(), insertUndefLaneMask(), llvm::orc::JITSymbolResolverAdapter::lookup(), llvm::orc::JITDylib::lookupFlags(), llvm::DivergenceAnalysis::markDivergent(), llvm::orc::DynamicLibrarySearchGenerator::operator()(), llvm::orc::ReexportsGenerator::operator()(), optimizeVcndVcmpPair(), recomputeLiveInValues(), llvm::orc::JITDylib::remove(), and llvm::orc::CtorDtorRunner::run().
|
inline |
Definition at line 193 of file DenseSet.h.
|
inline |
Definition at line 212 of file DenseSet.h.
|
inline |
Alternative version of insert that uses a different (and possibly less expensive) key type.
Definition at line 201 of file DenseSet.h.
Referenced by llvm::ConstantUniqueMap< llvm::ConstantExpr >::freeConstants(), llvm::FunctionType::get(), llvm::StructType::get(), and llvm::ConstantUniqueMap< llvm::ConstantExpr >::replaceOperandsInPlace().
|
inline |
Definition at line 206 of file DenseSet.h.
|
inline |
Grow the DenseSet so that it can contain at least NumEntries
items before resizing again.
Definition at line 85 of file DenseSet.h.
Referenced by llvm::orc::ExecutionSession::lookup().
|
inline |
Grow the DenseSet so that it has at least Size buckets.
Will not shrink the Size of the set.
Definition at line 81 of file DenseSet.h.
|
inline |
Definition at line 76 of file DenseSet.h.
Referenced by llvm::orc::AsynchronousSymbolQuery::AsynchronousSymbolQuery(), llvm::orc::buildSimpleReexportsAliasMap(), llvm::AccelTableBase::finalize(), isNotExclusivelyConstantDerived(), and llvm::detail::operator==().
|
inline |
Definition at line 100 of file DenseSet.h.