|
LLVM
10.0.0
|
This class implements a map that also provides access to all stored values in a deterministic order. More...
#include "llvm/ADT/MapVector.h"
Public Types | |
| using | value_type = typename VectorType::value_type |
| using | size_type = typename VectorType::size_type |
| using | iterator = typename VectorType::iterator |
| using | const_iterator = typename VectorType::const_iterator |
| using | reverse_iterator = typename VectorType::reverse_iterator |
| using | const_reverse_iterator = typename VectorType::const_reverse_iterator |
Public Member Functions | |
| VectorType | takeVector () |
| Clear the MapVector and return the underlying vector. More... | |
| size_type | size () const |
| void | reserve (size_type NumEntries) |
Grow the MapVector so that it can contain at least NumEntries items before resizing again. More... | |
| iterator | begin () |
| const_iterator | begin () const |
| iterator | end () |
| const_iterator | end () const |
| reverse_iterator | rbegin () |
| const_reverse_iterator | rbegin () const |
| reverse_iterator | rend () |
| const_reverse_iterator | rend () const |
| bool | empty () const |
| std::pair< KeyT, ValueT > & | front () |
| const std::pair< KeyT, ValueT > & | front () const |
| std::pair< KeyT, ValueT > & | back () |
| const std::pair< KeyT, ValueT > & | back () const |
| void | clear () |
| void | swap (MapVector &RHS) |
| ValueT & | operator[] (const KeyT &Key) |
| ValueT | lookup (const KeyT &Key) const |
| std::pair< iterator, bool > | insert (const std::pair< KeyT, ValueT > &KV) |
| std::pair< iterator, bool > | insert (std::pair< KeyT, ValueT > &&KV) |
| size_type | count (const KeyT &Key) const |
| iterator | find (const KeyT &Key) |
| const_iterator | find (const KeyT &Key) const |
| void | pop_back () |
| Remove the last element from the vector. More... | |
| VectorType::iterator | erase (typename VectorType::iterator Iterator) |
| Remove the element given by Iterator. More... | |
| size_type | erase (const KeyT &Key) |
| Remove all elements with the key value Key. More... | |
| template<class Predicate > | |
| void | remove_if (Predicate Pred) |
| Remove the elements that match the predicate. More... | |
| template<class Function > | |
| void | remove_if (Function Pred) |
This class implements a map that also provides access to all stored values in a deterministic order.
The values are kept in a std::vector and the mapping is done with DenseMap from Keys to indexes in that vector.
Definition at line 37 of file MapVector.h.
| using llvm::MapVector< KeyT, ValueT, MapType, VectorType >::const_iterator = typename VectorType::const_iterator |
Definition at line 50 of file MapVector.h.
| using llvm::MapVector< KeyT, ValueT, MapType, VectorType >::const_reverse_iterator = typename VectorType::const_reverse_iterator |
Definition at line 52 of file MapVector.h.
| using llvm::MapVector< KeyT, ValueT, MapType, VectorType >::iterator = typename VectorType::iterator |
Definition at line 49 of file MapVector.h.
| using llvm::MapVector< KeyT, ValueT, MapType, VectorType >::reverse_iterator = typename VectorType::reverse_iterator |
Definition at line 51 of file MapVector.h.
| using llvm::MapVector< KeyT, ValueT, MapType, VectorType >::size_type = typename VectorType::size_type |
Definition at line 47 of file MapVector.h.
| using llvm::MapVector< KeyT, ValueT, MapType, VectorType >::value_type = typename VectorType::value_type |
Definition at line 46 of file MapVector.h.
|
inline |
Definition at line 85 of file MapVector.h.
Referenced by deleteDeadInstruction(), and eliminateDeadStores().
|
inline |
Definition at line 86 of file MapVector.h.
|
inline |
Definition at line 69 of file MapVector.h.
Referenced by llvm::DbgValueHistoryMap::begin(), llvm::DbgLabelInstrMap::begin(), llvm::IRPosition::getAttrs(), getDwarfRegNum(), llvm::MapVector< AssertingVH< Instruction >, AssertingVH< Value > >::insert(), llvm::ScheduleDAGInstrs::insertBarrierChain(), and llvm::LiveDebugVariables::splitRegister().
|
inline |
Definition at line 70 of file MapVector.h.
|
inline |
Definition at line 88 of file MapVector.h.
Referenced by llvm::DbgValueHistoryMap::clear(), llvm::DbgLabelInstrMap::clear(), llvm::ScheduleDAGInstrs::Value2SUsMap::clear(), llvm::VerifierSupport::DebugInfoCheckFailed(), llvm::IRPosition::getAttrs(), getUnderlyingObjects(), INITIALIZE_PASS(), and llvm::StackMaps::serializeToStackMapSection().
|
inline |
Definition at line 142 of file MapVector.h.
Referenced by createRdxShuffleMask(), INITIALIZE_PASS(), operator<<(), reportMayClobberedLoad(), llvm::slpvectorizer::BoUpSLP::vectorizeTree(), and llvm::InnerLoopVectorizer::widenPHIInstruction().
|
inline |
Definition at line 79 of file MapVector.h.
Referenced by llvm::InterleavedAccessInfo::analyzeInterleaving(), deleteDeadInstruction(), eliminateDeadStores(), llvm::DbgValueHistoryMap::empty(), llvm::DbgLabelInstrMap::empty(), INITIALIZE_PASS(), postDominates(), and llvm::StackMaps::serializeToStackMapSection().
|
inline |
Definition at line 71 of file MapVector.h.
Referenced by llvm::ScheduleDAGInstrs::addChainDependencies(), ARM64EmitUnwindInfo(), llvm::LoopVectorizationCostModel::calculateRegisterUsage(), deleteDeadInstruction(), llvm::legacy::FunctionPassManagerImpl::dumpPassStructure(), llvm::DbgValueHistoryMap::end(), llvm::DbgLabelInstrMap::end(), llvm::MapVector< AssertingVH< Instruction >, AssertingVH< Value > >::erase(), llvm::slpvectorizer::BoUpSLP::eraseInstructions(), llvm::IRPosition::getAttrs(), getDwarfRegNum(), getUnderlyingObjects(), llvm::MapVector< AssertingVH< Instruction >, AssertingVH< Value > >::insert(), llvm::ScheduleDAGInstrs::insertBarrierChain(), llvm::LoopVectorizationCostModel::selectInterleaveCount(), llvm::lto::thinBackend(), and llvm::InnerLoopVectorizer::widenIntOrFpInduction().
|
inline |
Definition at line 72 of file MapVector.h.
|
inline |
Remove the element given by Iterator.
Returns an iterator to the element following the one which was removed, which may be end().
Definition at line 173 of file MapVector.h.
Referenced by computeFunctionSummary(), llvm::MapVector< AssertingVH< Instruction >, AssertingVH< Value > >::erase(), and llvm::slpvectorizer::BoUpSLP::vectorizeTree().
|
inline |
Remove all elements with the key value Key.
Returns the number of elements removed.
Definition at line 192 of file MapVector.h.
|
inline |
Definition at line 147 of file MapVector.h.
Referenced by llvm::ScheduleDAGInstrs::addChainDependencies(), ARM64EmitUnwindInfo(), llvm::LoopVectorizationCostModel::calculateRegisterUsage(), deleteDeadInstruction(), llvm::MapVector< AssertingVH< Instruction >, AssertingVH< Value > >::erase(), llvm::slpvectorizer::BoUpSLP::eraseInstructions(), getDwarfRegNum(), getUnderlyingObjects(), llvm::LoopVectorizationCostModel::selectInterleaveCount(), llvm::lto::thinBackend(), and llvm::InnerLoopVectorizer::widenIntOrFpInduction().
|
inline |
Definition at line 153 of file MapVector.h.
|
inline |
Definition at line 83 of file MapVector.h.
|
inline |
Definition at line 84 of file MapVector.h.
|
inline |
Definition at line 117 of file MapVector.h.
Referenced by findBasePointer(), llvm::IRPosition::getAttrs(), getDwarfRegNum(), llvm::LiveDebugVariables::splitRegister(), and llvm::slpvectorizer::BoUpSLP::vectorizeTree().
|
inline |
Definition at line 129 of file MapVector.h.
|
inline |
Definition at line 110 of file MapVector.h.
Referenced by ARM64EmitUnwindInfo(), llvm::VPRecipeBuilder::tryToOptimizeInduction(), llvm::VPlanTransforms::VPInstructionsToVPRecipes(), and llvm::InnerLoopVectorizer::widenPHIInstruction().
|
inline |
Definition at line 98 of file MapVector.h.
Referenced by llvm::ScheduleDAGInstrs::Value2SUsMap::insert().
|
inline |
Remove the last element from the vector.
Definition at line 160 of file MapVector.h.
Referenced by deleteDeadInstruction().
|
inline |
Definition at line 74 of file MapVector.h.
Referenced by llvm::InterleavedAccessInfo::analyzeInterleaving().
|
inline |
Definition at line 75 of file MapVector.h.
| void llvm::MapVector< KeyT, ValueT, MapType, VectorType >::remove_if | ( | Predicate | Pred | ) |
Remove the elements that match the predicate.
Erase all elements that match Pred in a single pass. Takes linear time.
Referenced by llvm::MapVector< AssertingVH< Instruction >, AssertingVH< Value > >::erase(), and llvm::ScheduleDAGInstrs::insertBarrierChain().
| void llvm::MapVector< KeyT, ValueT, MapType, VectorType >::remove_if | ( | Function | Pred | ) |
Definition at line 209 of file MapVector.h.
|
inline |
Definition at line 76 of file MapVector.h.
Referenced by llvm::InterleavedAccessInfo::analyzeInterleaving().
|
inline |
Definition at line 77 of file MapVector.h.
|
inline |
Grow the MapVector so that it can contain at least NumEntries items before resizing again.
Definition at line 64 of file MapVector.h.
|
inline |
Definition at line 60 of file MapVector.h.
Referenced by llvm::LoopVectorizationCostModel::calculateRegisterUsage(), llvm::IRPosition::getAttrs(), llvm::StackMaps::recordStatepoint(), and reportMayClobberedLoad().
|
inline |
Definition at line 93 of file MapVector.h.
|
inline |
Clear the MapVector and return the underlying vector.
Definition at line 55 of file MapVector.h.
Referenced by computeFunctionSummary().
1.8.13