class ValueMap
Declaration
template <typename KeyT,
typename ValueT,
typename Config = ValueMapConfig<KeyT>>
class ValueMap { /* full declaration omitted */ };
Description
See the file comment.
Declared at: llvm/include/llvm/IR/ValueMap.h:85
Templates
- KeyT
- ValueT
- Config = ValueMapConfig<KeyT>
Member Variables
- private llvm::ValueMap::MapT Map
- private Optional<llvm::ValueMap::MDMapT> MDMap
- private llvm::ValueMap::ExtraData Data
Method Overview
- public llvm::ValueMap::value_type & FindAndConstruct(const KeyT & Key)
- public llvm::ValueMap::MDMapT & MD()
- public ValueMap<KeyT, ValueT, Config>(const llvm::ValueMap::ExtraData & Data, unsigned int NumInitBuckets = 64)
- public ValueMap<KeyT, ValueT, Config>(const ValueMap<KeyT, ValueT, Config> &)
- public ValueMap<KeyT, ValueT, Config>(ValueMap<KeyT, ValueT, Config> &&)
- public ValueMap<KeyT, ValueT, Config>(unsigned int NumInitBuckets = 64)
- private llvm::ValueMap::ValueMapCVH Wrap(KeyT key) const
- public inline llvm::ValueMap::iterator begin()
- public inline llvm::ValueMap::const_iterator begin() const
- public void clear()
- public llvm::ValueMap::size_type count(const KeyT & Val) const
- public bool empty() const
- public inline llvm::ValueMap::const_iterator end() const
- public inline llvm::ValueMap::iterator end()
- public void erase(llvm::ValueMap::iterator I)
- public bool erase(const KeyT & Val)
- public llvm::ValueMap::iterator find(const KeyT & Val)
- public llvm::ValueMap::const_iterator find(const KeyT & Val) const
- public Optional<llvm::ValueMap::MDMapT> & getMDMap()
- public Optional<llvm::Metadata *> getMappedMD(const llvm::Metadata * MD) const
- public const void * getPointerIntoBucketsArray() const
- public bool hasMD() const
- public template <typename InputIt>void insert(InputIt I, InputIt E)
- public std::pair<iterator, bool> insert(std::pair<KeyT, ValueT> && KV)
- public std::pair<iterator, bool> insert(const std::pair<KeyT, ValueT> & KV)
- public bool isPointerIntoBucketsArray(const void * Ptr) const
- public ValueT lookup(const KeyT & Val) const
- public void reserve(size_t Size)
- public llvm::ValueMap::size_type size() const
Methods
¶llvm::ValueMap::value_type& FindAndConstruct(
const KeyT& Key)
llvm::ValueMap::value_type& FindAndConstruct(
const KeyT& Key)
Declared at: llvm/include/llvm/IR/ValueMap.h:203
Parameters
- const KeyT& Key
¶llvm::ValueMap::MDMapT& MD()
llvm::ValueMap::MDMapT& MD()
Declared at: llvm/include/llvm/IR/ValueMap.h:115
¶ValueMap<KeyT, ValueT, Config>(
const llvm::ValueMap::ExtraData& Data,
unsigned int NumInitBuckets = 64)
ValueMap<KeyT, ValueT, Config>(
const llvm::ValueMap::ExtraData& Data,
unsigned int NumInitBuckets = 64)
Declared at: llvm/include/llvm/IR/ValueMap.h:105
Parameters
- const llvm::ValueMap::ExtraData& Data
- unsigned int NumInitBuckets = 64
¶ValueMap<KeyT, ValueT, Config>(
const ValueMap<KeyT, ValueT, Config>&)
ValueMap<KeyT, ValueT, Config>(
const ValueMap<KeyT, ValueT, Config>&)
Declared at: llvm/include/llvm/IR/ValueMap.h:109
Parameters
- const ValueMap<KeyT, ValueT, Config>&
¶ValueMap<KeyT, ValueT, Config>(
ValueMap<KeyT, ValueT, Config>&&)
ValueMap<KeyT, ValueT, Config>(
ValueMap<KeyT, ValueT, Config>&&)
Declared at: llvm/include/llvm/IR/ValueMap.h:110
Parameters
- ValueMap<KeyT, ValueT, Config>&&
¶ValueMap<KeyT, ValueT, Config>(
unsigned int NumInitBuckets = 64)
ValueMap<KeyT, ValueT, Config>(
unsigned int NumInitBuckets = 64)
Declared at: llvm/include/llvm/IR/ValueMap.h:103
Parameters
- unsigned int NumInitBuckets = 64
¶llvm::ValueMap::ValueMapCVH Wrap(KeyT key) const
llvm::ValueMap::ValueMapCVH Wrap(KeyT key) const
Declared at: llvm/include/llvm/IR/ValueMap.h:229
Parameters
- KeyT key
¶inline llvm::ValueMap::iterator begin()
inline llvm::ValueMap::iterator begin()
Declared at: llvm/include/llvm/IR/ValueMap.h:135
¶inline llvm::ValueMap::const_iterator begin()
const
inline llvm::ValueMap::const_iterator begin()
const
Declared at: llvm/include/llvm/IR/ValueMap.h:137
¶void clear()
void clear()
Declared at: llvm/include/llvm/IR/ValueMap.h:146
¶llvm::ValueMap::size_type count(
const KeyT& Val) const
llvm::ValueMap::size_type count(
const KeyT& Val) const
Description
Return 1 if the specified key is in the map, 0 otherwise.
Declared at: llvm/include/llvm/IR/ValueMap.h:152
Parameters
- const KeyT& Val
¶bool empty() const
bool empty() const
Declared at: llvm/include/llvm/IR/ValueMap.h:140
¶inline llvm::ValueMap::const_iterator end() const
inline llvm::ValueMap::const_iterator end() const
Declared at: llvm/include/llvm/IR/ValueMap.h:138
¶inline llvm::ValueMap::iterator end()
inline llvm::ValueMap::iterator end()
Declared at: llvm/include/llvm/IR/ValueMap.h:136
¶void erase(llvm::ValueMap::iterator I)
void erase(llvm::ValueMap::iterator I)
Declared at: llvm/include/llvm/IR/ValueMap.h:199
Parameters
- llvm::ValueMap::iterator I
¶bool erase(const KeyT& Val)
bool erase(const KeyT& Val)
Declared at: llvm/include/llvm/IR/ValueMap.h:191
Parameters
- const KeyT& Val
¶llvm::ValueMap::iterator find(const KeyT& Val)
llvm::ValueMap::iterator find(const KeyT& Val)
Declared at: llvm/include/llvm/IR/ValueMap.h:156
Parameters
- const KeyT& Val
¶llvm::ValueMap::const_iterator find(
const KeyT& Val) const
llvm::ValueMap::const_iterator find(
const KeyT& Val) const
Declared at: llvm/include/llvm/IR/ValueMap.h:159
Parameters
- const KeyT& Val
¶Optional<llvm::ValueMap::MDMapT>& getMDMap()
Optional<llvm::ValueMap::MDMapT>& getMDMap()
Declared at: llvm/include/llvm/IR/ValueMap.h:120
¶Optional<llvm::Metadata*> getMappedMD(
const llvm::Metadata* MD) const
Optional<llvm::Metadata*> getMappedMD(
const llvm::Metadata* MD) const
Description
Get the mapped metadata, if it's in the map.
Declared at: llvm/include/llvm/IR/ValueMap.h:123
Parameters
- const llvm::Metadata* MD
¶const void* getPointerIntoBucketsArray() const
const void* getPointerIntoBucketsArray() const
Description
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 ValueMap to reallocate.
Declared at: llvm/include/llvm/IR/ValueMap.h:221
¶bool hasMD() const
bool hasMD() const
Declared at: llvm/include/llvm/IR/ValueMap.h:114
¶template <typename InputIt>
void insert(InputIt I, InputIt E)
template <typename InputIt>
void insert(InputIt I, InputIt E)
Description
insert - Range insertion of pairs.
Declared at: llvm/include/llvm/IR/ValueMap.h:186
Templates
- InputIt
Parameters
- InputIt I
- InputIt E
¶std::pair<iterator, bool> insert(
std::pair<KeyT, ValueT>&& KV)
std::pair<iterator, bool> insert(
std::pair<KeyT, ValueT>&& KV)
Declared at: llvm/include/llvm/IR/ValueMap.h:178
Parameters
- std::pair<KeyT, ValueT>&& KV
¶std::pair<iterator, bool> insert(
const std::pair<KeyT, ValueT>& KV)
std::pair<iterator, bool> insert(
const std::pair<KeyT, ValueT>& KV)
Declared at: llvm/include/llvm/IR/ValueMap.h:173
Parameters
- const std::pair<KeyT, ValueT>& KV
¶bool isPointerIntoBucketsArray(
const void* Ptr) const
bool isPointerIntoBucketsArray(
const void* Ptr) const
Description
isPointerIntoBucketsArray - Return true if the specified pointer points somewhere into the ValueMap's array of buckets (i.e. either to a key or value in the ValueMap).
Declared at: llvm/include/llvm/IR/ValueMap.h:214
Parameters
- const void* Ptr
¶ValueT lookup(const KeyT& Val) const
ValueT lookup(const KeyT& Val) const
Description
lookup - Return the entry for the specified key, or a default constructed value if no such entry exists.
Declared at: llvm/include/llvm/IR/ValueMap.h:165
Parameters
- const KeyT& Val
¶void reserve(size_t Size)
void reserve(size_t Size)
Description
Grow the map so that it has at least Size buckets. Does not shrink
Declared at: llvm/include/llvm/IR/ValueMap.h:144
Parameters
- size_t Size
¶llvm::ValueMap::size_type size() const
llvm::ValueMap::size_type size() const
Declared at: llvm/include/llvm/IR/ValueMap.h:141