• Home
  • Raw
  • Download

Lines Matching refs:VM

26   ValueToValueMapTy VM;  in TEST()  local
27 EXPECT_EQ(U, ValueMapper(VM).mapMDNode(*U)); in TEST()
53 ValueToValueMapTy VM; in TEST() local
54 EXPECT_EQ(U0, ValueMapper(VM).mapMDNode(*U0)); in TEST()
55 EXPECT_EQ(U1, ValueMapper(VM).mapMDNode(*U1)); in TEST()
60 ValueToValueMapTy VM; in TEST() local
61 EXPECT_EQ(U1, ValueMapper(VM).mapMDNode(*U1)); in TEST()
62 EXPECT_EQ(U0, ValueMapper(VM).mapMDNode(*U0)); in TEST()
94 ValueToValueMapTy VM; in TEST() local
95 VM[G0.get()] = G1.get(); in TEST()
96 MDNode *MappedN0 = ValueMapper(VM).mapMDNode(*N0); in TEST()
97 MDNode *MappedN1 = ValueMapper(VM).mapMDNode(*N1); in TEST()
111 ValueToValueMapTy VM; in TEST() local
112 EXPECT_EQ(T.get(), ValueMapper(VM, RF_NoModuleLevelChanges).mapMDNode(*T)); in TEST()
121 ValueToValueMapTy VM; in TEST() local
122 EXPECT_NE(D, ValueMapper(VM).mapMDNode(*D)); in TEST()
126 ValueToValueMapTy VM; in TEST() local
127 EXPECT_EQ(D, ValueMapper(VM, RF_MoveDistinctMDs).mapMDNode(*D)); in TEST()
138 ValueToValueMapTy VM; in TEST() local
139 VM.MD()[Old].reset(New); in TEST()
142 EXPECT_EQ(D, ValueMapper(VM, RF_MoveDistinctMDs).mapMDNode(*D)); in TEST()
151 ValueToValueMapTy VM; in TEST() local
152 EXPECT_EQ(None, VM.getMappedMD(D)); in TEST()
154 VM.MD().insert(std::make_pair(D, TrackingMDRef(D))); in TEST()
155 EXPECT_EQ(D, *VM.getMappedMD(D)); in TEST()
156 EXPECT_EQ(D, ValueMapper(VM).mapMDNode(*D)); in TEST()
164 ValueToValueMapTy VM; in TEST() local
165 EXPECT_EQ(None, VM.getMappedMD(D)); in TEST()
167 VM.MD().insert(std::make_pair(D, TrackingMDRef())); in TEST()
168 EXPECT_EQ(nullptr, *VM.getMappedMD(D)); in TEST()
169 EXPECT_EQ(nullptr, ValueMapper(VM).mapMDNode(*D)); in TEST()
179 ValueToValueMapTy VM; in TEST() local
181 EXPECT_EQ(nullptr, ValueMapper(VM, Flags).mapValue(*F)); in TEST()
187 ValueToValueMapTy VM; in TEST() local
190 EXPECT_EQ(S1, ValueMapper(VM).mapMetadata(*S1)); in TEST()
191 EXPECT_EQ(None, VM.getMappedMD(S1)); in TEST()
195 VM.MD()[S1].reset(S2); in TEST()
196 EXPECT_EQ(S2, ValueMapper(VM).mapMetadata(*S1)); in TEST()
205 ValueToValueMapTy VM; in TEST() local
206 EXPECT_FALSE(VM.hasMD()); in TEST()
207 EXPECT_EQ(N0, ValueMapper(VM).mapMetadata(*N0)); in TEST()
208 EXPECT_EQ(N1, ValueMapper(VM).mapMetadata(*N1)); in TEST()
209 EXPECT_TRUE(VM.hasMD()); in TEST()
210 ASSERT_NE(None, VM.getMappedMD(N0)); in TEST()
211 ASSERT_NE(None, VM.getMappedMD(N1)); in TEST()
212 EXPECT_EQ(N0, *VM.getMappedMD(N0)); in TEST()
213 EXPECT_EQ(N1, *VM.getMappedMD(N1)); in TEST()
222 ValueToValueMapTy VM; in TEST() local
223 EXPECT_FALSE(VM.hasMD()); in TEST()
224 EXPECT_EQ(N0, ValueMapper(VM, RF_NoModuleLevelChanges).mapMetadata(*N0)); in TEST()
225 EXPECT_EQ(N1, ValueMapper(VM, RF_NoModuleLevelChanges).mapMetadata(*N1)); in TEST()
226 EXPECT_FALSE(VM.hasMD()); in TEST()
227 EXPECT_EQ(None, VM.getMappedMD(N0)); in TEST()
228 EXPECT_EQ(None, VM.getMappedMD(N1)); in TEST()
241 ValueToValueMapTy VM; in TEST() local
242 EXPECT_EQ(CAM, ValueMapper(VM).mapMetadata(*CAM)); in TEST()
243 EXPECT_FALSE(VM.MD().count(CAM)); in TEST()
244 EXPECT_EQ(CAM, ValueMapper(VM, RF_IgnoreMissingLocals).mapMetadata(*CAM)); in TEST()
245 EXPECT_FALSE(VM.MD().count(CAM)); in TEST()
249 VM.MD()[CAM].reset(N); in TEST()
250 EXPECT_EQ(N, ValueMapper(VM).mapMetadata(*CAM)); in TEST()
251 EXPECT_EQ(N, ValueMapper(VM, RF_IgnoreMissingLocals).mapMetadata(*CAM)); in TEST()
256 ValueToValueMapTy VM; in TEST() local
257 VM[F.get()] = F2.get(); in TEST()
258 auto *F2MD = ValueMapper(VM).mapMetadata(*CAM); in TEST()
259 EXPECT_FALSE(VM.MD().count(CAM)); in TEST()
277 ValueToValueMapTy VM; in TEST() local
278 EXPECT_DEATH(ValueMapper(VM).mapMetadata(*LAM), "Unexpected local metadata"); in TEST()
279 EXPECT_DEATH(ValueMapper(VM, RF_IgnoreMissingLocals).mapMetadata(*LAM), in TEST()
307 ValueToValueMapTy VM; in TEST() local
308 EXPECT_EQ(N0AV, ValueMapper(VM).mapValue(*MAV)); in TEST()
309 EXPECT_EQ(nullptr, ValueMapper(VM, RF_IgnoreMissingLocals).mapValue(*MAV)); in TEST()
310 EXPECT_FALSE(VM.count(MAV)); in TEST()
311 EXPECT_FALSE(VM.count(&A)); in TEST()
312 EXPECT_EQ(None, VM.getMappedMD(LAM)); in TEST()
314 VM[MAV] = MAV; in TEST()
315 EXPECT_EQ(MAV, ValueMapper(VM).mapValue(*MAV)); in TEST()
316 EXPECT_EQ(MAV, ValueMapper(VM, RF_IgnoreMissingLocals).mapValue(*MAV)); in TEST()
317 EXPECT_TRUE(VM.count(MAV)); in TEST()
318 EXPECT_FALSE(VM.count(&A)); in TEST()
320 VM[MAV] = &A; in TEST()
321 EXPECT_EQ(&A, ValueMapper(VM).mapValue(*MAV)); in TEST()
322 EXPECT_EQ(&A, ValueMapper(VM, RF_IgnoreMissingLocals).mapValue(*MAV)); in TEST()
323 EXPECT_TRUE(VM.count(MAV)); in TEST()
324 EXPECT_FALSE(VM.count(&A)); in TEST()
337 ValueToValueMapTy VM; in TEST() local
338 VM[&A] = &C; in TEST()
345 EXPECT_EQ(&C, ValueMapper(VM).mapValue(A)); in TEST()
346 EXPECT_EQ(MDC, ValueMapper(VM).mapValue(*MDA)); in TEST()