reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

unittests/IR/ValueHandleTest.cpp
   28         BitcastV(new BitCastInst(ConstantV, Type::getInt32Ty(Context))) {}
   39   WVH = ConstantV;
   40   EXPECT_EQ(ConstantV, WVH);
   48   BitcastV->replaceAllUsesWith(ConstantV);
   57   WVH = ConstantV;
   58   EXPECT_EQ(ConstantV, WVH);
   68   WeakTrackingVH ConstantWVH(ConstantV);
   77   EXPECT_TRUE(BitcastWVH != ConstantV);
   82   Value *CV = ConstantV;
   93   EXPECT_EQ(BV < CV, BitcastWVH < ConstantV);
   94   EXPECT_EQ(BV <= CV, BitcastWVH <= ConstantV);
   95   EXPECT_EQ(BV > CV, BitcastWVH > ConstantV);
   96   EXPECT_EQ(BV >= CV, BitcastWVH >= ConstantV);
  103   BitcastV->replaceAllUsesWith(ConstantV);
  104   EXPECT_EQ(ConstantV, WVH);
  105   EXPECT_EQ(ConstantV, WVH_Copy);
  106   EXPECT_EQ(ConstantV, WVH_Recreated);
  128   GenericAVH = ConstantV;
  129   EXPECT_EQ(ConstantV, GenericAVH);
  146   AssertingVH<Value> ConstantAVH(ConstantV);
  155   EXPECT_TRUE(BitcastAVH != ConstantV);
  160   Value *CV = ConstantV;
  171   EXPECT_EQ(BV < CV, BitcastAVH < ConstantV);
  172   EXPECT_EQ(BV <= CV, BitcastAVH <= ConstantV);
  173   EXPECT_EQ(BV > CV, BitcastAVH > ConstantV);
  174   EXPECT_EQ(BV >= CV, BitcastAVH >= ConstantV);
  179   BitcastV->replaceAllUsesWith(ConstantV);
  212   CVH = ConstantV;
  213   EXPECT_EQ(ConstantV, CVH);
  223   ConcreteCallbackVH ConstantCVH(ConstantV);
  232   EXPECT_TRUE(BitcastCVH != ConstantV);
  237   Value *CV = ConstantV;
  248   EXPECT_EQ(BV < CV, BitcastCVH < ConstantV);
  249   EXPECT_EQ(BV <= CV, BitcastCVH <= ConstantV);
  250   EXPECT_EQ(BV > CV, BitcastCVH > ConstantV);
  251   EXPECT_EQ(BV >= CV, BitcastCVH >= ConstantV);
  305   BitcastV->replaceAllUsesWith(ConstantV);
  307   EXPECT_EQ(ConstantV, RVH.AURWArgument);
  385     BitcastV->replaceAllUsesWith(ConstantV);
  386     EXPECT_EQ(ConstantV, static_cast<Value*>(ShouldBeVisited1));
  387     EXPECT_EQ(ConstantV, static_cast<Value*>(ShouldBeVisited2));
  439   GenericVH = ConstantV;
  440   EXPECT_EQ(ConstantV, GenericVH);
  457   PoisoningVH<Value> ConstantVH(ConstantV);
  466   EXPECT_TRUE(BitcastVH != ConstantV);
  471   Value *CV = ConstantV;
  482   EXPECT_EQ(BV < CV, BitcastVH < ConstantV);
  483   EXPECT_EQ(BV <= CV, BitcastVH <= ConstantV);
  484   EXPECT_EQ(BV > CV, BitcastVH > ConstantV);
  485   EXPECT_EQ(BV >= CV, BitcastVH >= ConstantV);
  490   BitcastV->replaceAllUsesWith(ConstantV);
  504   BitcastV->replaceAllUsesWith(ConstantV);
  505   EXPECT_EQ(VH, ConstantV);
  514   BitcastV.reset(new BitCastInst(ConstantV, Type::getInt32Ty(Context)));
  521   BitcastV->replaceAllUsesWith(ConstantV);
  533     BitcastV.reset(new BitCastInst(ConstantV, Type::getInt32Ty(Context)));
  542     BitcastV->replaceAllUsesWith(ConstantV);