Lines Matching refs:Value
34 ConcreteCallbackVH(Value *V) : CallbackVH(V) {}
43 // Make sure I can call a method on the underlying Value. It
63 // Cast to Value* so comparisons work.
64 Value *BV = BitcastV.get();
65 Value *CV = ConstantV;
97 Value *null_value = nullptr;
109 AssertingVH<Value> GenericAVH(BitcastV.get());
128 AssertingVH<Value> BitcastAVH(BitcastV.get());
129 AssertingVH<Value> ConstantAVH(ConstantV);
141 // Cast to Value* so comparisons work.
142 Value *BV = BitcastV.get();
143 Value *CV = ConstantV;
161 AssertingVH<Value> AVH(BitcastV.get());
177 AssertingVH<Value> AVH(BitcastV.get());
179 "An asserting value handle still pointed to this value!");
180 AssertingVH<Value> Copy(AVH);
183 "An asserting value handle still pointed to this value!");
198 // Make sure I can call a method on the underlying Value. It
218 // Cast to Value* so comparisons work.
219 Value *BV = BitcastV.get();
220 Value *CV = ConstantV;
244 RecordingVH(Value *V) : CallbackVH(V), DeletedCalls(0), AURWCalls(0) {}
251 void allUsesReplacedWith(Value *) override { AURWCalls++; }
267 Value *AURWArgument;
270 RecordingVH(Value *V)
278 void allUsesReplacedWith(Value *new_value) override {
297 Value *AURWArgument;
302 RecoveringVH(Value *V)
311 void allUsesReplacedWith(Value *new_value) override {
319 // Normally, if a value has uses, deleting it will crash. However, we can use
345 DestroyingVH(Value *V) {
355 void allUsesReplacedWith(Value *) override {
367 EXPECT_EQ(ConstantV, static_cast<Value*>(ShouldBeVisited1));
368 EXPECT_EQ(ConstantV, static_cast<Value*>(ShouldBeVisited2));
377 EXPECT_EQ(nullptr, static_cast<Value*>(ShouldBeVisited1));
378 EXPECT_EQ(nullptr, static_cast<Value*>(ShouldBeVisited2));
384 // Value deletion, the CallbackVH should get a chance to do so
389 AssertingVH<Value> *ToClear[2];
390 ClearingVH(Value *V,
391 AssertingVH<Value> &A0, AssertingVH<Value> &A1)
404 AssertingVH<Value> A1, A2;