• Home
  • Raw
  • Download

Lines Matching refs:BitcastV

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