Lines Matching refs:VM
48 ValueMap<TypeParam*, int> VM; in TYPED_TEST() local
49 VM[this->BitcastV.get()] = 7; in TYPED_TEST()
50 EXPECT_EQ(7, VM.lookup(this->BitcastV.get())); in TYPED_TEST()
51 EXPECT_EQ(0u, VM.count(this->AddV.get())); in TYPED_TEST()
53 EXPECT_EQ(7, VM.lookup(this->AddV.get())); in TYPED_TEST()
54 EXPECT_EQ(0u, VM.count(this->BitcastV.get())); in TYPED_TEST()
56 EXPECT_EQ(0u, VM.count(this->AddV.get())); in TYPED_TEST()
57 EXPECT_EQ(0u, VM.count(this->BitcastV.get())); in TYPED_TEST()
58 EXPECT_EQ(0U, VM.size()); in TYPED_TEST()
62 ValueMap<TypeParam*, int> VM; in TYPED_TEST() local
66 EXPECT_TRUE(VM.empty()); in TYPED_TEST()
68 VM[this->BitcastV.get()] = 7; in TYPED_TEST()
72 VM.find(this->BitcastV.get()); in TYPED_TEST()
73 ASSERT_TRUE(I != VM.end()); in TYPED_TEST()
76 EXPECT_TRUE(VM.find(this->AddV.get()) == VM.end()); in TYPED_TEST()
79 const ValueMap<TypeParam*, int> &CVM = VM; in TYPED_TEST()
89 VM.insert(std::make_pair(this->AddV.get(), 3)); in TYPED_TEST()
93 EXPECT_EQ(1u, VM.count(this->AddV.get())); in TYPED_TEST()
95 VM.insert(std::make_pair(this->AddV.get(), 5)); in TYPED_TEST()
101 VM.erase(InsertResult2.first); in TYPED_TEST()
102 EXPECT_EQ(0U, VM.count(this->AddV.get())); in TYPED_TEST()
103 EXPECT_EQ(1U, VM.count(this->BitcastV.get())); in TYPED_TEST()
104 VM.erase(this->BitcastV.get()); in TYPED_TEST()
105 EXPECT_EQ(0U, VM.count(this->BitcastV.get())); in TYPED_TEST()
106 EXPECT_EQ(0U, VM.size()); in TYPED_TEST()
112 VM.insert(Elems.begin(), Elems.end()); in TYPED_TEST()
113 EXPECT_EQ(1, VM.lookup(this->AddV.get())); in TYPED_TEST()
114 EXPECT_EQ(2, VM.lookup(this->BitcastV.get())); in TYPED_TEST()
124 ValueMap<TypeParam*, int> VM; in TYPED_TEST() local
125 VM[this->BitcastV.get()] = 2; in TYPED_TEST()
126 VM[this->AddV.get()] = 3; in TYPED_TEST()
128 for (typename ValueMap<TypeParam*, int>::iterator I = VM.begin(), E = VM.end(); in TYPED_TEST()
144 EXPECT_EQ(5, VM[this->BitcastV.get()]); in TYPED_TEST()
145 EXPECT_EQ(6, VM[this->AddV.get()]); in TYPED_TEST()
149 const ValueMap<TypeParam*, int>& CVM = VM; in TYPED_TEST()
168 ValueMap<TypeParam*, int> VM; in TYPED_TEST() local
169 VM[this->BitcastV.get()] = 7; in TYPED_TEST()
170 VM[this->AddV.get()] = 9; in TYPED_TEST()
172 EXPECT_EQ(0u, VM.count(this->BitcastV.get())); in TYPED_TEST()
173 EXPECT_EQ(9, VM.lookup(this->AddV.get())); in TYPED_TEST()
204 ValueMap<TypeParam*, int, ConfigType> VM(Data); in TYPED_TEST() local
205 VM[this->BitcastV.get()] = 7; in TYPED_TEST()
219 ValueMap<TypeParam*, int, NoFollow<TypeParam*> > VM; in TYPED_TEST() local
220 VM[this->BitcastV.get()] = 7; in TYPED_TEST()
221 EXPECT_EQ(7, VM.lookup(this->BitcastV.get())); in TYPED_TEST()
222 EXPECT_EQ(0u, VM.count(this->AddV.get())); in TYPED_TEST()
224 EXPECT_EQ(7, VM.lookup(this->BitcastV.get())); in TYPED_TEST()
225 EXPECT_EQ(0, VM.lookup(this->AddV.get())); in TYPED_TEST()
227 EXPECT_EQ(7, VM.lookup(this->BitcastV.get())); in TYPED_TEST()
228 EXPECT_EQ(0, VM.lookup(this->AddV.get())); in TYPED_TEST()
230 EXPECT_EQ(0, VM.lookup(this->BitcastV.get())); in TYPED_TEST()
231 EXPECT_EQ(0, VM.lookup(this->AddV.get())); in TYPED_TEST()
232 EXPECT_EQ(0U, VM.size()); in TYPED_TEST()
253 ValueMap<TypeParam*, int, CountOps<TypeParam*> > VM(Data); in TYPED_TEST() local
254 VM[this->BitcastV.get()] = 7; in TYPED_TEST()
283 ValueMap<TypeParam*, int, ModifyingConfig<TypeParam*> > VM(&MapAddress); in TYPED_TEST() local
284 MapAddress = &VM; in TYPED_TEST()
286 VM[this->BitcastV.get()] = 7; in TYPED_TEST()
288 EXPECT_EQ(0u, VM.count(this->BitcastV.get())); in TYPED_TEST()
289 EXPECT_EQ(0u, VM.count(this->AddV.get())); in TYPED_TEST()
290 VM[this->AddV.get()] = 7; in TYPED_TEST()
292 EXPECT_EQ(0u, VM.count(this->AddV.get())); in TYPED_TEST()