Lines Matching defs:To
1386 void BlockAddress::replaceUsesOfWithOnConstant(Value *From, Value *To, Use *U) {
1393 NewF = cast<Function>(To->stripPointerCasts());
1395 NewBB = cast<BasicBlock>(To);
2561 /// 'From' to be uses of 'To'. This must update the uniquing data structures
2564 /// Note that we intentionally replace all uses of From with To here. Consider
2571 void ConstantArray::replaceUsesOfWithOnConstant(Value *From, Value *To,
2573 assert(isa<Constant>(To) && "Cannot make Constant refer to non-constant!");
2574 Constant *ToC = cast<Constant>(To);
2646 void ConstantStruct::replaceUsesOfWithOnConstant(Value *From, Value *To,
2648 assert(isa<Constant>(To) && "Cannot make Constant refer to non-constant!");
2649 Constant *ToC = cast<Constant>(To);
2721 void ConstantVector::replaceUsesOfWithOnConstant(Value *From, Value *To,
2723 assert(isa<Constant>(To) && "Cannot make Constant refer to non-constant!");
2729 if (Val == From) Val = cast<Constant>(To);
2746 Constant *To = cast<Constant>(ToV);
2751 NewOps.push_back(Op == From ? To : Op);