See the file comment.

Synopsis

Declared in <llvm/IR/ValueMap.h>

template<
    typename KeyT,
    typename ValueT,
    typename Config = ValueMapConfig<KeyT>>
class ValueMap;

Type Aliases

Name

Description

const_iterator

Const iterator over map entries.

iterator

Mutable iterator over map entries.

key_type

The map's key type.

mapped_type

The map's mapped value type.

size_type

Unsigned type used for map sizes.

value_type

The map's value type (key/value pair).

Member Functions

Name

Description

ValueMap [constructor]

Constructors

operator=

Assignment operators

FindAndConstruct

Return a reference to the entry for Key, inserting a default if absent.

MD

Return the metadata map, creating it if absent.

begin

begin overloads

clear

Remove all entries from the map, including metadata and atom maps.

count

Return 1 if the specified key is in the map, 0 otherwise.

empty

Return true if the map contains no entries.

end

end overloads

erase

erase overloads

find

Find Val in the map, or return end() if absent.

getMDMap

Return a reference to the optional metadata map.

getMappedMD

Get the mapped metadata, if it's in the map.

getPointerIntoBucketsArray

Return an opaque pointer into the buckets array.

hasMD

Return true if this map has a metadata map.

insert

insert overloads

isPointerIntoBucketsArray

Return true if Ptr points into this map's buckets array.

lookup

Return the entry for the specified key, or a default‐constructed value.

operator[]

Return a reference to the value for Key, inserting a default if absent.

reserve

Grow the map so that it has at least Size buckets. Does not shrink.

size

Return the number of entries in the map.

Data Members

Name

Description

AtomMap

Map {(InlinedAt, old atom number) ‐> new atom number}.

Friends

Name

Description

llvm::ValueMapCallbackVH

CallbackVH that updates its ValueMap when the contained Value changes.

Created with MrDocs