• Home
  • Raw
  • Download

Lines Matching refs:VM

27   ValueToValueMapTy VM;  in TEST()  local
28 EXPECT_EQ(U, ValueMapper(VM).mapMDNode(*U)); in TEST()
54 ValueToValueMapTy VM; in TEST() local
55 EXPECT_EQ(U0, ValueMapper(VM).mapMDNode(*U0)); in TEST()
56 EXPECT_EQ(U1, ValueMapper(VM).mapMDNode(*U1)); in TEST()
61 ValueToValueMapTy VM; in TEST() local
62 EXPECT_EQ(U1, ValueMapper(VM).mapMDNode(*U1)); in TEST()
63 EXPECT_EQ(U0, ValueMapper(VM).mapMDNode(*U0)); in TEST()
95 ValueToValueMapTy VM; in TEST() local
96 VM[G0.get()] = G1.get(); in TEST()
97 MDNode *MappedN0 = ValueMapper(VM).mapMDNode(*N0); in TEST()
98 MDNode *MappedN1 = ValueMapper(VM).mapMDNode(*N1); in TEST()
112 ValueToValueMapTy VM; in TEST() local
113 EXPECT_EQ(T.get(), ValueMapper(VM, RF_NoModuleLevelChanges).mapMDNode(*T)); in TEST()
122 ValueToValueMapTy VM; in TEST() local
123 EXPECT_NE(D, ValueMapper(VM).mapMDNode(*D)); in TEST()
127 ValueToValueMapTy VM; in TEST() local
128 EXPECT_EQ(D, ValueMapper(VM, RF_MoveDistinctMDs).mapMDNode(*D)); in TEST()
139 ValueToValueMapTy VM; in TEST() local
140 VM.MD()[Old].reset(New); in TEST()
143 EXPECT_EQ(D, ValueMapper(VM, RF_MoveDistinctMDs).mapMDNode(*D)); in TEST()
152 ValueToValueMapTy VM; in TEST() local
153 EXPECT_EQ(None, VM.getMappedMD(D)); in TEST()
155 VM.MD().insert(std::make_pair(D, TrackingMDRef(D))); in TEST()
156 EXPECT_EQ(D, *VM.getMappedMD(D)); in TEST()
157 EXPECT_EQ(D, ValueMapper(VM).mapMDNode(*D)); in TEST()
165 ValueToValueMapTy VM; in TEST() local
166 EXPECT_EQ(None, VM.getMappedMD(D)); in TEST()
168 VM.MD().insert(std::make_pair(D, TrackingMDRef())); in TEST()
169 EXPECT_EQ(nullptr, *VM.getMappedMD(D)); in TEST()
170 EXPECT_EQ(nullptr, ValueMapper(VM).mapMDNode(*D)); in TEST()
180 ValueToValueMapTy VM; in TEST() local
182 EXPECT_EQ(nullptr, ValueMapper(VM, Flags).mapValue(*F)); in TEST()
188 ValueToValueMapTy VM; in TEST() local
191 EXPECT_EQ(S1, ValueMapper(VM).mapMetadata(*S1)); in TEST()
192 EXPECT_EQ(None, VM.getMappedMD(S1)); in TEST()
196 VM.MD()[S1].reset(S2); in TEST()
197 EXPECT_EQ(S2, ValueMapper(VM).mapMetadata(*S1)); in TEST()
206 ValueToValueMapTy VM; in TEST() local
207 EXPECT_FALSE(VM.hasMD()); in TEST()
208 EXPECT_EQ(N0, ValueMapper(VM).mapMetadata(*N0)); in TEST()
209 EXPECT_EQ(N1, ValueMapper(VM).mapMetadata(*N1)); in TEST()
210 EXPECT_TRUE(VM.hasMD()); in TEST()
211 ASSERT_NE(None, VM.getMappedMD(N0)); in TEST()
212 ASSERT_NE(None, VM.getMappedMD(N1)); in TEST()
213 EXPECT_EQ(N0, *VM.getMappedMD(N0)); in TEST()
214 EXPECT_EQ(N1, *VM.getMappedMD(N1)); in TEST()
223 ValueToValueMapTy VM; in TEST() local
224 EXPECT_FALSE(VM.hasMD()); in TEST()
225 EXPECT_EQ(N0, ValueMapper(VM, RF_NoModuleLevelChanges).mapMetadata(*N0)); in TEST()
226 EXPECT_EQ(N1, ValueMapper(VM, RF_NoModuleLevelChanges).mapMetadata(*N1)); in TEST()
227 EXPECT_FALSE(VM.hasMD()); in TEST()
228 EXPECT_EQ(None, VM.getMappedMD(N0)); in TEST()
229 EXPECT_EQ(None, VM.getMappedMD(N1)); in TEST()
242 ValueToValueMapTy VM; in TEST() local
243 EXPECT_EQ(CAM, ValueMapper(VM).mapMetadata(*CAM)); in TEST()
244 EXPECT_FALSE(VM.MD().count(CAM)); in TEST()
245 EXPECT_EQ(CAM, ValueMapper(VM, RF_IgnoreMissingLocals).mapMetadata(*CAM)); in TEST()
246 EXPECT_FALSE(VM.MD().count(CAM)); in TEST()
250 VM.MD()[CAM].reset(N); in TEST()
251 EXPECT_EQ(N, ValueMapper(VM).mapMetadata(*CAM)); in TEST()
252 EXPECT_EQ(N, ValueMapper(VM, RF_IgnoreMissingLocals).mapMetadata(*CAM)); in TEST()
257 ValueToValueMapTy VM; in TEST() local
258 VM[F.get()] = F2.get(); in TEST()
259 auto *F2MD = ValueMapper(VM).mapMetadata(*CAM); in TEST()
260 EXPECT_FALSE(VM.MD().count(CAM)); in TEST()
278 ValueToValueMapTy VM; in TEST() local
279 EXPECT_DEATH(ValueMapper(VM).mapMetadata(*LAM), "Unexpected local metadata"); in TEST()
280 EXPECT_DEATH(ValueMapper(VM, RF_IgnoreMissingLocals).mapMetadata(*LAM), in TEST()
308 ValueToValueMapTy VM; in TEST() local
309 EXPECT_EQ(N0AV, ValueMapper(VM).mapValue(*MAV)); in TEST()
310 EXPECT_EQ(nullptr, ValueMapper(VM, RF_IgnoreMissingLocals).mapValue(*MAV)); in TEST()
311 EXPECT_FALSE(VM.count(MAV)); in TEST()
312 EXPECT_FALSE(VM.count(&A)); in TEST()
313 EXPECT_EQ(None, VM.getMappedMD(LAM)); in TEST()
315 VM[MAV] = MAV; in TEST()
316 EXPECT_EQ(MAV, ValueMapper(VM).mapValue(*MAV)); in TEST()
317 EXPECT_EQ(MAV, ValueMapper(VM, RF_IgnoreMissingLocals).mapValue(*MAV)); in TEST()
318 EXPECT_TRUE(VM.count(MAV)); in TEST()
319 EXPECT_FALSE(VM.count(&A)); in TEST()
321 VM[MAV] = &A; in TEST()
322 EXPECT_EQ(&A, ValueMapper(VM).mapValue(*MAV)); in TEST()
323 EXPECT_EQ(&A, ValueMapper(VM, RF_IgnoreMissingLocals).mapValue(*MAV)); in TEST()
324 EXPECT_TRUE(VM.count(MAV)); in TEST()
325 EXPECT_FALSE(VM.count(&A)); in TEST()
338 ValueToValueMapTy VM; in TEST() local
339 VM[&A] = &C; in TEST()
346 EXPECT_EQ(&C, ValueMapper(VM).mapValue(A)); in TEST()
347 EXPECT_EQ(MDC, ValueMapper(VM).mapValue(*MDA)); in TEST()