Lines Matching full:bitcastv
25 std::unique_ptr<BitCastInst> BitcastV;
29 BitcastV(new BitCastInst(ConstantV, Type::getInt32Ty(Context))) {}
38 WeakVH WVH(BitcastV.get());
39 EXPECT_EQ(BitcastV.get(), WVH);
50 WeakVH BitcastWVH(BitcastV.get());
54 EXPECT_TRUE(BitcastV.get() == BitcastWVH);
55 EXPECT_TRUE(BitcastWVH == BitcastV.get());
59 EXPECT_TRUE(BitcastV.get() != ConstantWVH);
64 Value *BV = BitcastV.get();
71 EXPECT_EQ(BV < CV, BitcastV.get() < ConstantWVH);
72 EXPECT_EQ(BV <= CV, BitcastV.get() <= ConstantWVH);
73 EXPECT_EQ(BV > CV, BitcastV.get() > ConstantWVH);
74 EXPECT_EQ(BV >= CV, BitcastV.get() >= ConstantWVH);
83 WeakVH WVH(BitcastV.get());
85 WeakVH WVH_Recreated(BitcastV.get());
86 BitcastV->replaceAllUsesWith(ConstantV);
93 WeakVH WVH(BitcastV.get());
95 WeakVH WVH_Recreated(BitcastV.get());
96 BitcastV.reset();
105 AssertingVH<CastInst> AVH(BitcastV.get());
109 AssertingVH<Value> GenericAVH(BitcastV.get());
110 EXPECT_EQ(BitcastV.get(), GenericAVH);
121 const CastInst *ConstBitcast = BitcastV.get();
128 AssertingVH<Value> BitcastAVH(BitcastV.get());
132 EXPECT_TRUE(BitcastV.get() == BitcastAVH);
133 EXPECT_TRUE(BitcastAVH == BitcastV.get());
137 EXPECT_TRUE(BitcastV.get() != ConstantAVH);
142 Value *BV = BitcastV.get();
149 EXPECT_EQ(BV < CV, BitcastV.get() < ConstantAVH);
150 EXPECT_EQ(BV <= CV, BitcastV.get() <= ConstantAVH);
151 EXPECT_EQ(BV > CV, BitcastV.get() > ConstantAVH);
152 EXPECT_EQ(BV >= CV, BitcastV.get() >= ConstantAVH);
161 AssertingVH<Value> AVH(BitcastV.get());
162 BitcastV->replaceAllUsesWith(ConstantV);
163 EXPECT_EQ(BitcastV.get(), AVH);
177 AssertingVH<Value> AVH(BitcastV.get());
178 EXPECT_DEATH({BitcastV.reset();},
182 EXPECT_DEATH({BitcastV.reset();},
185 BitcastV.reset();
193 ConcreteCallbackVH CVH(BitcastV.get());
194 EXPECT_EQ(BitcastV.get(), CVH);
205 ConcreteCallbackVH BitcastCVH(BitcastV.get());
209 EXPECT_TRUE(BitcastV.get() == BitcastCVH);
210 EXPECT_TRUE(BitcastCVH == BitcastV.get());
214 EXPECT_TRUE(BitcastV.get() != ConstantCVH);
219 Value *BV = BitcastV.get();
226 EXPECT_EQ(BV < CV, BitcastV.get() < ConstantCVH);
227 EXPECT_EQ(BV <= CV, BitcastV.get() <= ConstantCVH);
228 EXPECT_EQ(BV > CV, BitcastV.get() > ConstantCVH);
229 EXPECT_EQ(BV >= CV, BitcastV.get() >= ConstantCVH);
255 RVH = BitcastV.get();
258 BitcastV.reset();
285 RVH = BitcastV.get();
288 BitcastV->replaceAllUsesWith(ConstantV);
324 RVH = RecoveringVH(Context, BitcastV.get());
327 EXPECT_EQ(BitcastV.get(), BitcastUser->getOperand(0));
328 BitcastV.reset(); // Would crash without the ValueHandler.
364 WeakVH ShouldBeVisited1(BitcastV.get());
365 DestroyingVH C(BitcastV.get());
366 WeakVH ShouldBeVisited2(BitcastV.get());
368 BitcastV->replaceAllUsesWith(ConstantV);
374 WeakVH ShouldBeVisited1(BitcastV.get());
375 DestroyingVH C(BitcastV.get());
376 WeakVH ShouldBeVisited2(BitcastV.get());
378 BitcastV.reset();
407 A1 = BitcastV.get();
408 ClearingVH C(BitcastV.get(), A1, A2);
409 A2 = BitcastV.get();
412 BitcastV.reset();