Home | History | Annotate | Download | only in ADT

Lines Matching refs:ValueMap

1 //===- llvm/ADT/ValueMap.h - Safe map from Values to data -------*- C++ -*-===//
10 // This file defines the ValueMap class. ValueMap maps Value* or any subclass
17 // You can override a ValueMap's Config parameter to control exactly what
19 // legal to call back into the ValueMap from a Config's callbacks. Config
21 // implementations of all the methods ValueMap uses. See ValueMapConfig for
47 /// ValueMap<>. User Configs should inherit from this class to be as compatible
48 /// as possible with future versions of ValueMap.
51 /// If FollowRAUW is true, the ValueMap will update mappings on RAUW. If it's
52 /// false, the ValueMap will leave the original mapping in place.
68 /// and onDelete) and not inside other ValueMap methods. NULL means that no
76 class ValueMap {
83 ValueMap(const ValueMap&); // DO NOT IMPLEMENT
84 ValueMap& operator=(const ValueMap&); // DO NOT IMPLEMENT
90 explicit ValueMap(unsigned NumInitBuckets = 64)
92 explicit ValueMap(const ExtraData &Data, unsigned NumInitBuckets = 64)
95 ~ValueMap() {}
163 /// somewhere into the ValueMap's array of buckets (i.e. either to a key or
164 /// value in the ValueMap).
171 /// determine whether an insertion caused the ValueMap to reallocate.
185 return ValueMapCVH(key, const_cast<ValueMap*>(this));
189 // This CallbackVH updates its ValueMap when the contained Value changes,
193 friend class ValueMap<KeyT, ValueT, Config>;
195 typedef ValueMap<KeyT, ValueT, Config> ValueMapT;
220 "Invalid RAUW on key of ValueMap<>");