llvm::ImutKeyValueInfo

Traits class used by ImmutableMap. While both the first and second elements in a pair are used to generate profile information, only the first element (the key) is used by isEqual and isLess.

Synopsis

Declared in <llvm/ADT/ImmutableMap.h>

template<
    typename T,
    typename S>
struct ImutKeyValueInfo;

Type Aliases

NameDescription
data_type The type of a stored map value (second element of the pair).
data_type_ref A reference to a map value.
key_type The key type used for ordering and equality.
key_type_ref A reference to a map key.
value_type The type of a stored map entry (key and value pair).
value_type_ref A reference to a stored map entry.

Static Member Functions

NameDescription
DataOfValue Returns the value (second element) of a stored map entry.
KeyOfValue Returns the key (first element) of a stored map entry.
Profile Adds profile data for a map entry to ID, using both key and value.
isDataEqual Returns true if the stored values L and R are equal.
isEqual Returns true if L and R are equal keys.
isLess Returns true if L is ordered before R in the tree.