Home
last modified time | relevance | path

Searched refs:ImmutableMapRef (Results 1 – 4 of 4) sorted by relevance

/llvm-project/llvm/include/llvm/ADT/
H A DImmutableMap.h203 class ImmutableMapRef {
223 ImmutableMapRef(const TreeTy *R, FactoryTy *F) in ImmutableMapRef() function
226 ImmutableMapRef(const ImmutableMap<KeyT, ValT> &X, in ImmutableMapRef() function
230 static inline ImmutableMapRef getEmptyMap(FactoryTy *F) { in getEmptyMap()
231 return ImmutableMapRef(nullptr, F); in getEmptyMap()
242 ImmutableMapRef add(key_type_ref K, data_type_ref D) const { in add()
245 return ImmutableMapRef(NewT, Factory); in add()
248 ImmutableMapRef remove(key_type_ref K) const { in remove()
250 return ImmutableMapRef(NewT, Factory); in remove()
261 bool operator==(const ImmutableMapRef &RHS) const {
[all …]
/llvm-project/llvm/unittests/ADT/
H A DImmutableMapTest.cpp50 using int_int_map = ImmutableMapRef<int, int>; in TEST()
51 ImmutableMapRef<int, int>::FactoryTy f; in TEST()
64 ImmutableMapRef<int, int>::FactoryTy f; in TEST()
66 ImmutableMapRef<int, int> S = ImmutableMapRef<int, int>::getEmptyMap(&f); in TEST()
68 ImmutableMapRef<int, int> S2 = S.add(3, 10).add(4, 11).add(5, 12); in TEST()
85 ImmutableMap<int, ImmutableMapRef<int, int>>::Factory f; in TEST()
/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DEnvironment.cpp191 llvm::ImmutableMapRef<EnvironmentEntry, SVal> in removeDeadBindings()
H A DRegionStore.cpp149 typedef llvm::ImmutableMapRef<BindingKey, SVal> ClusterBindingsRef;
156 class RegionBindingsRef : public llvm::ImmutableMapRef<const MemRegion *,
172 typedef llvm::ImmutableMapRef<const MemRegion *, ClusterBindings>
179 : llvm::ImmutableMapRef<const MemRegion *, ClusterBindings>(T, F), in RegionBindingsRef()
185 : llvm::ImmutableMapRef<const MemRegion *, ClusterBindings>(P), in RegionBindingsRef()
205 using llvm::ImmutableMapRef<const MemRegion *, ClusterBindings>::lookup;