reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
37 WeakVH WVH(BitcastV.get()); 38 EXPECT_EQ(BitcastV.get(), WVH); 47 WVH = BitcastV.get(); 48 BitcastV->replaceAllUsesWith(ConstantV); 49 EXPECT_EQ(WVH, BitcastV.get()); 50 BitcastV.reset(); 55 WeakTrackingVH WVH(BitcastV.get()); 56 EXPECT_EQ(BitcastV.get(), WVH); 67 WeakTrackingVH BitcastWVH(BitcastV.get()); 71 EXPECT_TRUE(BitcastV.get() == BitcastWVH); 72 EXPECT_TRUE(BitcastWVH == BitcastV.get()); 76 EXPECT_TRUE(BitcastV.get() != ConstantWVH); 81 Value *BV = BitcastV.get(); 88 EXPECT_EQ(BV < CV, BitcastV.get() < ConstantWVH); 89 EXPECT_EQ(BV <= CV, BitcastV.get() <= ConstantWVH); 90 EXPECT_EQ(BV > CV, BitcastV.get() > ConstantWVH); 91 EXPECT_EQ(BV >= CV, BitcastV.get() >= ConstantWVH); 100 WeakTrackingVH WVH(BitcastV.get()); 102 WeakTrackingVH WVH_Recreated(BitcastV.get()); 103 BitcastV->replaceAllUsesWith(ConstantV); 110 WeakTrackingVH WVH(BitcastV.get()); 112 WeakTrackingVH WVH_Recreated(BitcastV.get()); 113 BitcastV.reset(); 122 AssertingVH<CastInst> AVH(BitcastV.get()); 126 AssertingVH<Value> GenericAVH(BitcastV.get()); 127 EXPECT_EQ(BitcastV.get(), GenericAVH); 138 const CastInst *ConstBitcast = BitcastV.get(); 145 AssertingVH<Value> BitcastAVH(BitcastV.get()); 149 EXPECT_TRUE(BitcastV.get() == BitcastAVH); 150 EXPECT_TRUE(BitcastAVH == BitcastV.get()); 154 EXPECT_TRUE(BitcastV.get() != ConstantAVH); 159 Value *BV = BitcastV.get(); 166 EXPECT_EQ(BV < CV, BitcastV.get() < ConstantAVH); 167 EXPECT_EQ(BV <= CV, BitcastV.get() <= ConstantAVH); 168 EXPECT_EQ(BV > CV, BitcastV.get() > ConstantAVH); 169 EXPECT_EQ(BV >= CV, BitcastV.get() >= ConstantAVH); 178 AssertingVH<Value> AVH(BitcastV.get()); 179 BitcastV->replaceAllUsesWith(ConstantV); 180 EXPECT_EQ(BitcastV.get(), AVH); 194 AssertingVH<Value> AVH(BitcastV.get()); 195 EXPECT_DEATH({BitcastV.reset();}, 199 EXPECT_DEATH({BitcastV.reset();}, 202 BitcastV.reset(); 210 ConcreteCallbackVH CVH(BitcastV.get()); 211 EXPECT_EQ(BitcastV.get(), CVH); 222 ConcreteCallbackVH BitcastCVH(BitcastV.get()); 226 EXPECT_TRUE(BitcastV.get() == BitcastCVH); 227 EXPECT_TRUE(BitcastCVH == BitcastV.get()); 231 EXPECT_TRUE(BitcastV.get() != ConstantCVH); 236 Value *BV = BitcastV.get(); 243 EXPECT_EQ(BV < CV, BitcastV.get() < ConstantCVH); 244 EXPECT_EQ(BV <= CV, BitcastV.get() <= ConstantCVH); 245 EXPECT_EQ(BV > CV, BitcastV.get() > ConstantCVH); 246 EXPECT_EQ(BV >= CV, BitcastV.get() >= ConstantCVH); 272 RVH = BitcastV.get(); 275 BitcastV.reset(); 302 RVH = BitcastV.get(); 305 BitcastV->replaceAllUsesWith(ConstantV); 341 RVH = RecoveringVH(Context, BitcastV.get()); 344 EXPECT_EQ(BitcastV.get(), BitcastUser->getOperand(0)); 345 BitcastV.reset(); // Would crash without the ValueHandler. 381 WeakTrackingVH ShouldBeVisited1(BitcastV.get()); 382 DestroyingVH C(BitcastV.get()); 383 WeakTrackingVH ShouldBeVisited2(BitcastV.get()); 385 BitcastV->replaceAllUsesWith(ConstantV); 391 WeakTrackingVH ShouldBeVisited1(BitcastV.get()); 392 DestroyingVH C(BitcastV.get()); 393 WeakTrackingVH ShouldBeVisited2(BitcastV.get()); 395 BitcastV.reset(); 424 A1 = BitcastV.get(); 425 ClearingVH C(BitcastV.get(), A1, A2); 426 A2 = BitcastV.get(); 429 BitcastV.reset(); 433 PoisoningVH<CastInst> VH(BitcastV.get()); 437 PoisoningVH<Value> GenericVH(BitcastV.get()); 438 EXPECT_EQ(BitcastV.get(), GenericVH); 449 const CastInst *ConstBitcast = BitcastV.get(); 456 PoisoningVH<Value> BitcastVH(BitcastV.get()); 460 EXPECT_TRUE(BitcastV.get() == BitcastVH); 461 EXPECT_TRUE(BitcastVH == BitcastV.get()); 465 EXPECT_TRUE(BitcastV.get() != ConstantVH); 470 Value *BV = BitcastV.get(); 477 EXPECT_EQ(BV < CV, BitcastV.get() < ConstantVH); 478 EXPECT_EQ(BV <= CV, BitcastV.get() <= ConstantVH); 479 EXPECT_EQ(BV > CV, BitcastV.get() > ConstantVH); 480 EXPECT_EQ(BV >= CV, BitcastV.get() >= ConstantVH); 489 PoisoningVH<Value> VH(BitcastV.get()); 490 BitcastV->replaceAllUsesWith(ConstantV); 491 EXPECT_TRUE(DenseMapInfo<PoisoningVH<Value>>::isEqual(VH, BitcastV.get())); 503 TrackingVH<Value> VH(BitcastV.get()); 504 BitcastV->replaceAllUsesWith(ConstantV); 511 PoisoningVH<Value> VH(BitcastV.get()); 514 BitcastV.reset(new BitCastInst(ConstantV, Type::getInt32Ty(Context))); 519 VH = BitcastV.get(); 521 BitcastV->replaceAllUsesWith(ConstantV); 530 TrackingVH<Value> VH(BitcastV.get()); 533 BitcastV.reset(new BitCastInst(ConstantV, Type::getInt32Ty(Context))); 540 TrackingVH<Instruction> VH(BitcastV.get()); 542 BitcastV->replaceAllUsesWith(ConstantV);