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

Declarations

include/llvm/IR/Value.h
  289   void replaceAllUsesWith(Value *V);

References

include/llvm/Transforms/Utils/Evaluator.h
   51         Tmp->replaceAllUsesWith(Constant::getNullValue(Tmp->getType()));
include/llvm/Transforms/Utils/SimplifyLibCalls.h
  117     I->replaceAllUsesWith(With);
lib/Analysis/DomTreeUpdater.cpp
  223       I.replaceAllUsesWith(llvm::UndefValue::get(I.getType()));
lib/Analysis/InstructionSimplify.cpp
 5432     I->replaceAllUsesWith(SimpleV);
 5464     I->replaceAllUsesWith(SimpleV);
lib/Analysis/MemoryBuiltins.cpp
  855       I->replaceAllUsesWith(UndefValue::get(I->getType()));
 1003       OffsetPHI->replaceAllUsesWith(UndefValue::get(IntTy));
 1006       SizePHI->replaceAllUsesWith(UndefValue::get(IntTy));
 1018     SizePHI->replaceAllUsesWith(Size);
 1024     OffsetPHI->replaceAllUsesWith(Offset);
lib/Analysis/MemorySSAUpdater.cpp
  103         Phi->replaceAllUsesWith(SingleAccess);
  234     Phi->replaceAllUsesWith(Same);
 1014         NewPhi->replaceAllUsesWith(DefP1);
 1134   What->replaceAllUsesWith(What->getDefiningAccess());
lib/Analysis/ScalarEvolutionExpander.cpp
   66             CI->replaceAllUsesWith(Ret);
 1987       Phi->replaceAllUsesWith(V);
 2064           IsomorphicInc->replaceAllUsesWith(NewInc);
 2078     Phi->replaceAllUsesWith(NewIV);
lib/AsmParser/LLParser.cpp
  244       F->replaceAllUsesWith(Remangled.getValue());
  996     GVal->replaceAllUsesWith(GA.get());
 2845     P.second.first->replaceAllUsesWith(
 2853     P.second.first->replaceAllUsesWith(
 2973       Sentinel->replaceAllUsesWith(Inst);
 2990     Sentinel->replaceAllUsesWith(Inst);
 5567     GV->replaceAllUsesWith(BlockAddress::get(&F, BB));
lib/Bitcode/Reader/BitcodeReader.cpp
 5172           A->replaceAllUsesWith(UndefValue::get(A->getType()));
 5324       I.first->replaceAllUsesWith(I.second);
 5330     I.first->replaceAllUsesWith(I.second);
lib/Bitcode/Reader/ValueList.cpp
   94     OldV->replaceAllUsesWith(V);
  216       UserC->replaceAllUsesWith(NewC);
  222     Placeholder->replaceAllUsesWith(RealVal);
lib/CodeGen/AtomicExpandPass.cpp
  391   LI->replaceAllUsesWith(NewVal);
  424   LI->replaceAllUsesWith(Val);
  445   LI->replaceAllUsesWith(Loaded);
  770   AI->replaceAllUsesWith(FinalOldResult);
  804   AI->replaceAllUsesWith(FinalOldResult);
  931   CI->replaceAllUsesWith(Res);
  942   I->replaceAllUsesWith(Loaded);
  969   AI->replaceAllUsesWith(FinalOldResult);
  998   CI->replaceAllUsesWith(Res);
 1086   CI->replaceAllUsesWith(Res);
 1291       EV->replaceAllUsesWith(Loaded);
 1293       EV->replaceAllUsesWith(Success);
 1309     CI->replaceAllUsesWith(Res);
 1441   AI->replaceAllUsesWith(Loaded);
 1794     I->replaceAllUsesWith(V);
 1804     I->replaceAllUsesWith(V);
lib/CodeGen/CodeGenPrepare.cpp
  870   BB->replaceAllUsesWith(DestBB);
 1018     ToReplace->replaceAllUsesWith(ActualReplacement);
 1219   BO->replaceAllUsesWith(Math);
 1220   Cmp->replaceAllUsesWith(OV);
 1761   CountZeros->replaceAllUsesWith(PN);
 1902       II->replaceAllUsesWith(ArgVal);
 1934     CI->replaceAllUsesWith(V);
 2541       Inst->replaceAllUsesWith(New);
 3013           PI->replaceAllUsesWith(V);
 3037     From->replaceAllUsesWith(To);
 3056       I->replaceAllUsesWith(Dummy);
 3061       I->replaceAllUsesWith(Dummy);
 5219           Pt->replaceAllUsesWith(Inst);
 5231         Inst->replaceAllUsesWith(Pt);
 5383       GEP->replaceAllUsesWith(NewGEP);
 5808   Load->replaceAllUsesWith(NewAnd);
 5816       And->replaceAllUsesWith(NewAnd);
 5926   Shift->replaceAllUsesWith(NewSel);
 6089     SI->replaceAllUsesWith(PN);
 6557   ToBePromoted->replaceAllUsesWith(Transition);
 6934       P->replaceAllUsesWith(V);
 7031       GEPI->replaceAllUsesWith(NC);
 7079   I.replaceAllUsesWith(LastInst);
lib/CodeGen/ExpandMemCmp.cpp
  771   CI->replaceAllUsesWith(Res);
lib/CodeGen/ExpandReductions.cpp
  130     II->replaceAllUsesWith(Rdx);
lib/CodeGen/GCRootLowering.cpp
  209         CI->replaceAllUsesWith(St);
  218         CI->replaceAllUsesWith(Ld);
lib/CodeGen/GlobalMerge.cpp
  540       Globals[k]->replaceAllUsesWith(GEP);
lib/CodeGen/IndirectBrExpandPass.cpp
  154     BA->replaceAllUsesWith(ConstantExpr::getIntToPtr(BBIndexC, BA->getType()));
lib/CodeGen/InterleavedAccessPass.cpp
  410     Extract->replaceAllUsesWith(Builder.CreateExtractElement(Vector, Index));
lib/CodeGen/InterleavedLoadCombinePass.cpp
 1239     VI.SVI->replaceAllUsesWith(SVI);
lib/CodeGen/IntrinsicLowering.cpp
   49     CI->replaceAllUsesWith(NewCI);
  253     CI->replaceAllUsesWith(V);
  265       CI->replaceAllUsesWith(V);
  270        CI->replaceAllUsesWith(Constant::getNullValue(CI->getType()));
  286     CI->replaceAllUsesWith(LowerCTPOP(Context, CI->getArgOperand(0), CI));
  290     CI->replaceAllUsesWith(LowerBSWAP(Context, CI->getArgOperand(0), CI));
  294     CI->replaceAllUsesWith(LowerCTLZ(Context, CI->getArgOperand(0), CI));
  305     CI->replaceAllUsesWith(Src);
  317       CI->replaceAllUsesWith(Constant::getNullValue(CI->getType()));
  326     CI->replaceAllUsesWith(ConstantInt::get(CI->getType(), 0));
  333     CI->replaceAllUsesWith(
  339     CI->replaceAllUsesWith(
  351     CI->replaceAllUsesWith(ConstantInt::get(Type::getInt64Ty(Context), 0));
  361     CI->replaceAllUsesWith(ConstantInt::get(CI->getType(), 1));
  367     CI->replaceAllUsesWith(CI->getOperand(0));
  470        CI->replaceAllUsesWith(ConstantInt::get(CI->getType(), 1));
  475     CI->replaceAllUsesWith(UndefValue::get(CI->getType()));
  506   CI->replaceAllUsesWith(Op);
lib/CodeGen/PreISelIntrinsicLowering.cpp
   51     CI->replaceAllUsesWith(ResultPtr);
   89       CI->replaceAllUsesWith(NewCI);
lib/CodeGen/SafeStack.cpp
  559     StackGuardSlot->replaceAllUsesWith(NewAI);
  580     Arg->replaceAllUsesWith(NewArg);
  679     AI->replaceAllUsesWith(NewAI);
  695         II->replaceAllUsesWith(LI);
lib/CodeGen/ScalarizeMaskedMemIntrin.cpp
  147     CI->replaceAllUsesWith(NewI);
  171     CI->replaceAllUsesWith(VResult);
  232   CI->replaceAllUsesWith(VResult);
  421     CI->replaceAllUsesWith(VResult);
  481   CI->replaceAllUsesWith(VResult);
  632     CI->replaceAllUsesWith(VResult);
  705   CI->replaceAllUsesWith(VResult);
lib/CodeGen/ShadowStackGCLowering.cpp
  330     OriginalAlloca->replaceAllUsesWith(SlotPtr);
lib/CodeGen/SjLjEHPrepare.cpp
  146       EVI->replaceAllUsesWith(ExnVal);
  148       EVI->replaceAllUsesWith(SelVal);
  165   LPI->replaceAllUsesWith(LPadVal);
  250     AI.replaceAllUsesWith(SI);
lib/CodeGen/StackColoring.cpp
  958     FromAI->replaceAllUsesWith(Inst);
lib/CodeGen/WasmEHPrepare.cpp
  300   GetExnCI->replaceAllUsesWith(ExtractExnCI);
  346   GetSelectorCI->replaceAllUsesWith(Selector);
lib/CodeGen/WinEHPrepare.cpp
  717     PN->replaceAllUsesWith(UndefValue::get(PN->getType()));
 1085     PN->replaceAllUsesWith(V);
lib/ExecutionEngine/Orc/CompileOnDemandLayer.cpp
   42         A.replaceAllUsesWith(F);
   48         A.replaceAllUsesWith(G);
lib/FuzzMutate/IRMutator.cpp
  197   Inst.replaceAllUsesWith(RS.getSelection());
lib/IR/AutoUpgrade.cpp
 3419       CI->replaceAllUsesWith(CF);
 3479       CI->replaceAllUsesWith(Rep);
 3646     CI->replaceAllUsesWith(TSC);
 3721   CI->replaceAllUsesWith(NewCall);
 3919         CI->replaceAllUsesWith(NewRetVal);
lib/IR/BasicBlock.cpp
   76       BA->replaceAllUsesWith(ConstantExpr::getIntToPtr(Replacement,
  349           PN->replaceAllUsesWith(PN->getIncomingValue(0));
  352           PN->replaceAllUsesWith(UndefValue::get(PN->getType()));
  371           PN->replaceAllUsesWith(PNV);
lib/IR/Constants.cpp
 2850   replaceAllUsesWith(Replacement);
lib/IR/Core.cpp
  856   unwrap(OldVal)->replaceAllUsesWith(unwrap(NewVal));
lib/IR/Instructions.cpp
  135     replaceAllUsesWith(UndefValue::get(getType()));
lib/IR/Metadata.cpp
  133     replaceAllUsesWith(Entry);
lib/LTO/LTO.cpp
  975       OldGV->replaceAllUsesWith(ConstantExpr::getBitCast(GV, OldGV->getType()));
lib/Linker/IRMover.cpp
 1106     Old->replaceAllUsesWith(New);
lib/Linker/LinkModules.cpp
  452     Alias.replaceAllUsesWith(Declaration);
lib/Target/AArch64/AArch64ISelLowering.cpp
 8879     SVI->replaceAllUsesWith(WideVec);
lib/Target/AArch64/AArch64StackTagging.cpp
  490   Info.AI->replaceAllUsesWith(NewPtr);
  628     Info.AI->replaceAllUsesWith(TagPCall);
lib/Target/AMDGPU/AMDGPUAlwaysInlinePass.cpp
   95       A.replaceAllUsesWith(F);
lib/Target/AMDGPU/AMDGPUAtomicOptimizer.cpp
  649       I.replaceAllUsesWith(PHI);
  652       I.replaceAllUsesWith(Result);
lib/Target/AMDGPU/AMDGPUCodeGenPrepare.cpp
  324   I.replaceAllUsesWith(TruncRes);
  351   I.replaceAllUsesWith(NewICmp);
  380   I.replaceAllUsesWith(TruncRes);
  406   I.replaceAllUsesWith(TruncRes);
  520   I.replaceAllUsesWith(NewVal);
  602     FDiv.replaceAllUsesWith(NewFDiv);
  921       I.replaceAllUsesWith(NewDiv);
  970     I.replaceAllUsesWith(ValOrig);
lib/Target/AMDGPU/AMDGPULibCalls.cpp
  151     CI->replaceAllUsesWith(With);
  631   CI->replaceAllUsesWith(NCI);
 1302         CArgVal->replaceAllUsesWith(AvailableVal);
 1366     UI->replaceAllUsesWith(&*Call);
 1368     CI->replaceAllUsesWith(Reload);
 1373     UI->replaceAllUsesWith(Reload);
 1374     CI->replaceAllUsesWith(Call);
 1399   CI->replaceAllUsesWith(ConstantInt::get(B.getInt32Ty(), N));
lib/Target/AMDGPU/AMDGPULowerKernelArguments.cpp
  210       Arg.replaceAllUsesWith(NewVal);
  215       Arg.replaceAllUsesWith(Shuf);
  218       Arg.replaceAllUsesWith(Load);
lib/Target/AMDGPU/AMDGPULowerKernelAttributes.cpp
  203             SI->replaceAllUsesWith(ConstantExpr::getIntegerCast(KnownSize,
  207             SI->replaceAllUsesWith(ZextGroupSize);
  226     GroupSize->replaceAllUsesWith(
lib/Target/AMDGPU/AMDGPUOpenCLEnqueuedBlockLowering.cpp
  136         BitCast->replaceAllUsesWith(NewPtr);
lib/Target/AMDGPU/AMDGPUPrintfRuntimeBinding.cpp
  366         CI->replaceAllUsesWith(result);
lib/Target/AMDGPU/AMDGPUPromoteAlloca.cpp
  435       Inst->replaceAllUsesWith(ExtractElement);
  826   I.replaceAllUsesWith(Offset);
  927       Intr->replaceAllUsesWith(NewCall);
lib/Target/AMDGPU/AMDGPUTargetTransformInfo.cpp
  639     II->replaceAllUsesWith(NewVal);
lib/Target/AMDGPU/R600OpenCLImageTypeLoweringPass.cpp
  191       Inst->replaceAllUsesWith(Replacement);
  220       Inst->replaceAllUsesWith(Replacement);
lib/Target/ARM/ARMCodeGenPrepare.cpp
  496     I->replaceAllUsesWith(NewVal);
lib/Target/ARM/ARMISelLowering.cpp
16840     SVI->replaceAllUsesWith(WideVec);
lib/Target/ARM/ARMParallelDSP.cpp
  180       Root->replaceAllUsesWith(SMLAD);
  786   BaseSExt->replaceAllUsesWith(NewBaseSExt);
  793   OffsetSExt->replaceAllUsesWith(NewOffsetSExt);
lib/Target/ARM/MVETailPredication.cpp
  411           I.replaceAllUsesWith(PredClone);
  495     Predicate->replaceAllUsesWith(TailPredicate);
lib/Target/BPF/BPFAbstractMemberAccess.cpp
  297     Call->replaceAllUsesWith(GEP);
  338     Call->replaceAllUsesWith(Call->getArgOperand(0));
  872     Call->replaceAllUsesWith(LDInst);
  904   Call->replaceAllUsesWith(BCInst2);
lib/Target/Hexagon/HexagonGenExtract.cpp
  217   In->replaceAllUsesWith(NewIn);
lib/Target/Hexagon/HexagonLoopIdiomRecognition.cpp
 1031       Z->replaceAllUsesWith(Op);
 1039     T->replaceAllUsesWith(And);
 1103       P->replaceAllUsesWith(T);
 1457     PN->replaceAllUsesWith(S);
 1471       I.replaceAllUsesWith(SV);
 1825         SI->replaceAllUsesWith(NewSel);
 1856         SI->replaceAllUsesWith(NewSel);
 1902   PV.Res->replaceAllUsesWith(PM);
lib/Target/Hexagon/HexagonOptimizeSZextends.cpp
   83             Use->replaceAllUsesWith(SI);
lib/Target/Hexagon/HexagonVectorLoopCarriedReuse.cpp
  649   Inst2Replace->replaceAllUsesWith(NewPhi);
lib/Target/NVPTX/NVPTXGenericToNVVM.cpp
  146     GV->replaceAllUsesWith(BitCastNewGV);
lib/Target/NVPTX/NVPTXImageOptimizer.cpp
  165   From->replaceAllUsesWith(To);
lib/Target/NVPTX/NVPTXLowerArgs.cpp
  168   Arg->replaceAllUsesWith(AllocA);
  201   Ptr->replaceAllUsesWith(PtrInGeneric);
lib/Target/NVPTX/NVVMReflect.cpp
  172     Call->replaceAllUsesWith(ConstantInt::get(Call->getType(), ReflectVal));
lib/Target/PowerPC/PPCLoopPreIncPrep.cpp
  408   BasePtr->replaceAllUsesWith(NewBasePtr);
  456     Ptr->replaceAllUsesWith(ReplNewPtr);
lib/Target/SystemZ/SystemZTDC.cpp
  364       I->replaceAllUsesWith(ICmp);
lib/Target/WebAssembly/WebAssemblyAddMissingPrototypes.cpp
  137     OldF->replaceAllUsesWith(
lib/Target/WebAssembly/WebAssemblyFixFunctionBitcasts.cpp
  297       U->get()->replaceAllUsesWith(Wrapper);
lib/Target/WebAssembly/WebAssemblyLowerEmscriptenEHSjLj.cpp
  434   CI->replaceAllUsesWith(NewCall);
  684       LongjmpF->replaceAllUsesWith(EmLongjmpJmpbufF);
  777       II->replaceAllUsesWith(NewCall);
  822       CI->replaceAllUsesWith(NewCI);
  862     LPI->replaceAllUsesWith(Pair1);
  927     CI->replaceAllUsesWith(SetjmpRet);
lib/Target/X86/X86ISelLowering.cpp
26584   AI->replaceAllUsesWith(Loaded);
lib/Target/X86/X86InterleavedAccess.cpp
  754       Shuffles[i]->replaceAllUsesWith(TransposedVectors[Indices[i]]);
lib/Target/X86/X86WinEHState.cpp
  510   Inst->replaceAllUsesWith(NewInst);
lib/Transforms/AggressiveInstCombine/AggressiveInstCombine.cpp
  149   Phi.replaceAllUsesWith(Builder.CreateCall(F, {RotSrc, RotSrc, RotAmt}));
  249   I.replaceAllUsesWith(Zext);
  309           I.replaceAllUsesWith(Builder.CreateCall(Func, {Root}));
lib/Transforms/AggressiveInstCombine/TruncInstCombine.cpp
  371   CurrentTruncInst->replaceAllUsesWith(Res);
lib/Transforms/CFGuard/CFGuard.cpp
  220   CB->replaceAllUsesWith(NewCB);
lib/Transforms/Coroutines/CoroCleanup.cpp
   54   SubFn->replaceAllUsesWith(Load);
   67         II->replaceAllUsesWith(II->getArgOperand(1));
   70         II->replaceAllUsesWith(II->getArgOperand(1));
   73         II->replaceAllUsesWith(ConstantInt::getTrue(Context));
   78         II->replaceAllUsesWith(ConstantTokenNone::get(Context));
lib/Transforms/Coroutines/CoroEarly.cpp
   82   Intrin->replaceAllUsesWith(Replacement);
  104   II->replaceAllUsesWith(Cond);
  139   II->replaceAllUsesWith(NoopCoroVoidPtr);
lib/Transforms/Coroutines/CoroElide.cpp
  121     CA->replaceAllUsesWith(False);
  135     CB->replaceAllUsesWith(FrameVoidPtr);
lib/Transforms/Coroutines/CoroFrame.cpp
  734       PN->replaceAllUsesWith(CurrentReload);
  897     LandingPad->replaceAllUsesWith(ReplPHI);
  981       PN->replaceAllUsesWith(CurrentMaterialization);
 1114         U->replaceAllUsesWith(Alloca);
 1146       U->replaceAllUsesWith(Alloc);
 1269   Arg.replaceAllUsesWith(Alloca);
lib/Transforms/Coroutines/CoroSplit.cpp
  256   End->replaceAllUsesWith(InResume ? ConstantInt::getTrue(Context)
  313     Save->replaceAllUsesWith(ConstantTokenNone::get(C));
  348     S->replaceAllUsesWith(PN);
  431     NewS->replaceAllUsesWith(Args.front());
  441     EVI->replaceAllUsesWith(Args[EVI->getIndices().front()]);
  453   NewS->replaceAllUsesWith(Agg);
  483     MappedCS->replaceAllUsesWith(SuspendResult);
  545     MappedOp->replaceAllUsesWith(MappedResult);
  730   OldFramePtr->replaceAllUsesWith(NewFramePtr);
  736   OldVFrame->replaceAllUsesWith(NewVFrame);
  802     CS->replaceAllUsesWith(SizeConstant);
  985       AllocInst->replaceAllUsesWith(Builder.getFalse());
  987       CoroBegin->replaceAllUsesWith(VFrame);
  989       CoroBegin->replaceAllUsesWith(CoroBegin->getMem());
  996     CoroBegin->replaceAllUsesWith(UndefValue::get(CoroBegin->getType()));
 1108   Suspend->replaceAllUsesWith(SubFn->getRawIndex());
 1228     Shape.CoroBegin->replaceAllUsesWith(RawFramePtr);
 1473     Cast->replaceAllUsesWith(Fn);
 1479   Prepare->replaceAllUsesWith(CastFn);
lib/Transforms/Coroutines/Coroutines.cpp
  180     CF->replaceAllUsesWith(Replacement);
  330       CF->replaceAllUsesWith(Undef);
  337       CS->replaceAllUsesWith(UndefValue::get(CS->getType()));
  473     CF->replaceAllUsesWith(CoroBegin);
lib/Transforms/IPO/ArgumentPromotion.cpp
  159       I->replaceAllUsesWith(UndefValue::get(I->getType()));
  352       Call->replaceAllUsesWith(NewCS.getInstruction());
  376       I->replaceAllUsesWith(&*I2);
  406       I->replaceAllUsesWith(TheAlloca);
  433         LI->replaceAllUsesWith(&*I2);
  469           L->replaceAllUsesWith(&*TheArg);
lib/Transforms/IPO/Attributor.cpp
  984     CB.replaceAllUsesWith(&C);
 2188               II->replaceAllUsesWith(CI);
 3379         V.replaceAllUsesWith(C);
 3591       MallocCall->replaceAllUsesWith(AI);
 4605         I->replaceAllUsesWith(UndefValue::get(I->getType()));
 4620       Fn->replaceAllUsesWith(UndefValue::get(Fn->getType()));
 4650         F->replaceAllUsesWith(UndefValue::get(F->getType()));
lib/Transforms/IPO/ConstantMerge.cpp
  126   Old->replaceAllUsesWith(NewConstant);
lib/Transforms/IPO/DeadArgumentElimination.cpp
  217       Call->replaceAllUsesWith(NewCS.getInstruction());
  237     I->replaceAllUsesWith(&*I2);
  248   Fn.replaceAllUsesWith(ConstantExpr::getBitCast(NF, Fn.getType()));
  295         Arg.replaceAllUsesWith(UndefValue::get(Arg.getType()));
  958         Call->replaceAllUsesWith(New);
  964           Call->replaceAllUsesWith(UndefValue::get(Call->getType()));
  997         Call->replaceAllUsesWith(RetVal);
 1020       I->replaceAllUsesWith(&*I2);
 1027         I->replaceAllUsesWith(UndefValue::get(I->getType()));
lib/Transforms/IPO/ExtractGV.cpp
  146           CurI->replaceAllUsesWith(Declaration);
lib/Transforms/IPO/FunctionImport.cpp
  937     GV.replaceAllUsesWith(NewGV);
 1057   GA->replaceAllUsesWith(ConstantExpr::getBitCast(NewFn, GA->getType()));
lib/Transforms/IPO/GlobalOpt.cpp
  294         LI->replaceAllUsesWith(Init);
  586     GEP->replaceAllUsesWith(NewPtr);
  820         I->replaceAllUsesWith(NewC);
  865         BCI->replaceAllUsesWith(NewGV);
  934       ICI->replaceAllUsesWith(LV);
 1211     SCI->replaceAllUsesWith(New);
 1233     GEPI->replaceAllUsesWith(NGEPI);
 1549       CI->replaceAllUsesWith(Cast);
 1748       LI->replaceAllUsesWith(NSI);
 1958     GV->replaceAllUsesWith(Alloca);
 2791     J->replaceAllUsesWith(ConstantExpr::getBitCast(Aliasee, J->getType()));
 2900     CI->replaceAllUsesWith(Constant::getNullValue(CI->getType()));
lib/Transforms/IPO/GlobalSplit.cpp
  129     GEP->replaceAllUsesWith(NewGEP);
  135     GV.replaceAllUsesWith(UndefValue::get(GV.getType()));
lib/Transforms/IPO/IPConstantPropagation.cpp
  136     AI->replaceAllUsesWith(V);
  244       Call->replaceAllUsesWith(New);
  269           Ins->replaceAllUsesWith(New);
lib/Transforms/IPO/Inliner.cpp
  230       AI->replaceAllUsesWith(AvailableAlloca);
lib/Transforms/IPO/LowerTypeTests.cpp
  623     BAI->MaskGlobal->replaceAllUsesWith(
  648     BAI->ByteArray->replaceAllUsesWith(Alias);
  883     GV->replaceAllUsesWith(GAlias);
 1038   CI->replaceAllUsesWith(Lowered);
 1090         A->replaceAllUsesWith(AliasDecl);
 1162       CI->replaceAllUsesWith(Lowered);
 1307   PlaceholderFn->replaceAllUsesWith(Target);
 2166           F->replaceAllUsesWith(Alias);
lib/Transforms/IPO/MergeFunctions.cpp
  745     G->replaceAllUsesWith(NewG);
  778   G->replaceAllUsesWith(GA);
  817     F->replaceAllUsesWith(NewF);
  839         G->replaceAllUsesWith(BitcastF);
lib/Transforms/IPO/PartialInlining.cpp
  986   F->replaceAllUsesWith(ClonedFunc);
 1019   F->replaceAllUsesWith(ClonedFunc);
 1075     OldPhi->replaceAllUsesWith(RetPhi);
 1089       OldPhi->replaceAllUsesWith(OldPhiVal);
 1244   ClonedFunc->replaceAllUsesWith(OrigFunc);
lib/Transforms/IPO/PruneEH.cpp
  254       I->replaceAllUsesWith(UndefValue::get(I->getType()));
lib/Transforms/IPO/ThinLTOBitcodeWriter.cpp
  161     F.replaceAllUsesWith(ConstantExpr::getBitCast(NewF, F.getType()));
lib/Transforms/IPO/WholeProgramDevirt.cpp
  337     CS->replaceAllUsesWith(New);
 1144       CS->replaceAllUsesWith(NewCS.getInstruction());
 1535   B.GV->replaceAllUsesWith(Alias);
 1635       LoadedPtr->replaceAllUsesWith(LoadedValue);
 1644       Pred->replaceAllUsesWith(TypeTestCall);
 1657       CI->replaceAllUsesWith(Pair);
 1756       U.first->replaceAllUsesWith(True);
lib/Transforms/InstCombine/InstCombineCompares.cpp
  753     Val->replaceAllUsesWith(GEP);
lib/Transforms/InstCombine/InstCombineInternal.h
  676     I.replaceAllUsesWith(V);
lib/Transforms/InstCombine/InstCombineLoadStoreAlloca.cpp
  624           CI->replaceAllUsesWith(NewLoad);
lib/Transforms/InstCombine/InstCombineVectorOps.cpp
  359               SrcVec->replaceAllUsesWith(V);
lib/Transforms/InstCombine/InstructionCombining.cpp
 3320         I->replaceAllUsesWith(Result);
 3408           Inst->replaceAllUsesWith(C);
lib/Transforms/Instrumentation/AddressSanitizer.cpp
 2319     G->replaceAllUsesWith(
 2910       Arg.replaceAllUsesWith(AI);
 3133     AI->replaceAllUsesWith(NewAllocaPtr);
 3316   AI->replaceAllUsesWith(NewAddressPtr);
lib/Transforms/Instrumentation/DataFlowSanitizer.cpp
  813         GA->replaceAllUsesWith(ConstantExpr::getBitCast(NewF, GA->getType()));
  850           FArg->replaceAllUsesWith(&*NewFArg);
  859             BA->replaceAllUsesWith(
  864         F.replaceAllUsesWith(
  896       F.replaceAllUsesWith(WrappedFnCst);
 1664         CI->replaceAllUsesWith(CustomCI);
 1758       CS.getInstruction()->replaceAllUsesWith(ExVal);
lib/Transforms/Instrumentation/HWAddressSanitizer.cpp
 1205       AI->replaceAllUsesWith(Bitcast);
 1319   GV->replaceAllUsesWith(Alias);
lib/Transforms/Instrumentation/InstrProfiling.cpp
  631   Ind->replaceAllUsesWith(Call);
lib/Transforms/Instrumentation/ThreadSanitizer.cpp
  644     I->replaceAllUsesWith(Cast);
  707     I->replaceAllUsesWith(Res);
lib/Transforms/ObjCARC/ObjCARC.h
   62     CI->replaceAllUsesWith(OldArg);
lib/Transforms/ObjCARC/ObjCARCContract.cpp
  516       CI->replaceAllUsesWith(Null);
lib/Transforms/ObjCARC/ObjCARCExpand.cpp
  118       Inst->replaceAllUsesWith(Value);
lib/Transforms/ObjCARC/ObjCARCOpts.cpp
  770             Inst->replaceAllUsesWith(Opnd);
  812         CI->replaceAllUsesWith(NewValue);
  835         CI->replaceAllUsesWith(NewValue);
 1934           Call->replaceAllUsesWith(EarlierCall);
 1963           Call->replaceAllUsesWith(EarlierCall->getArgOperand(1));
 2022           UserInst->replaceAllUsesWith(UserInst->getArgOperand(1));
lib/Transforms/Scalar/CallSiteSplitting.cpp
  384     Instr->replaceAllUsesWith(CallPN);
  408       CurrentI->replaceAllUsesWith(NewPN);
lib/Transforms/Scalar/ConstantProp.cpp
  106           I->replaceAllUsesWith(C);
lib/Transforms/Scalar/CorrelatedValuePropagation.cpp
  140   S->replaceAllUsesWith(ReplaceWith);
  205   P->replaceAllUsesWith(CommonValue);
  267     P->replaceAllUsesWith(V);
  324   Cmp->replaceAllUsesWith(TorF);
  509   WO->replaceAllUsesWith(NewI);
  527   SI->replaceAllUsesWith(BinOp);
  654   Instr->replaceAllUsesWith(Zext);
  667   SDI->replaceAllUsesWith(BO);
  690   SDI->replaceAllUsesWith(BO);
  713   SDI->replaceAllUsesWith(BO);
  734   SDI->replaceAllUsesWith(ZExt);
  799   BinOp->replaceAllUsesWith(LHS);
lib/Transforms/Scalar/DivRemPairs.cpp
  215       OrigRemInst->replaceAllUsesWith(RealRem);
  310       OrigRemInst->replaceAllUsesWith(Sub);
lib/Transforms/Scalar/EarlyCSE.cpp
 1007           Inst->replaceAllUsesWith(V);
 1035         Inst->replaceAllUsesWith(V);
 1095             Inst->replaceAllUsesWith(Op);
 1138           Inst->replaceAllUsesWith(InVal.first);
lib/Transforms/Scalar/Float2Int.cpp
  504     I->replaceAllUsesWith(NewV);
lib/Transforms/Scalar/GVN.cpp
 1278   LI->replaceAllUsesWith(V);
 1365     LI->replaceAllUsesWith(V);
 1511   I->replaceAllUsesWith(Repl);
 1953       I->replaceAllUsesWith(V);
 2401   CurInst->replaceAllUsesWith(Phi);
lib/Transforms/Scalar/GVNHoist.cpp
  921           OldMA->replaceAllUsesWith(NewMemAcc);
  927         I->replaceAllUsesWith(Repl);
  946         Phi->replaceAllUsesWith(NewMemAcc);
lib/Transforms/Scalar/GVNSink.cpp
  621         PN->replaceAllUsesWith(PN->getIncomingValue(0));
  623         PN->replaceAllUsesWith(UndefValue::get(PN->getType()));
  874       I->replaceAllUsesWith(I0);
lib/Transforms/Scalar/IndVarSimplify.cpp
  478   Compare->replaceAllUsesWith(NewCompare);
  482   Incr->replaceAllUsesWith(UndefValue::get(Incr->getType()));
  495     PN->replaceAllUsesWith(Conv);
  729       PN->replaceAllUsesWith(ExitVal);
 1523         User->replaceAllUsesWith(WideBO);
 1534         User->replaceAllUsesWith(WideBO);
 1568         UsePhi->replaceAllUsesWith(Trunc);
 1613       DU.NarrowUse->replaceAllUsesWith(NewDef);
lib/Transforms/Scalar/InferAddressSpaces.cpp
  920         C->replaceAllUsesWith(Replace);
  994             ASC->replaceAllUsesWith(NewV);
lib/Transforms/Scalar/InstSimplifyPass.cpp
   59             I.replaceAllUsesWith(V);
lib/Transforms/Scalar/JumpThreading.cpp
 1084       I->replaceAllUsesWith(SimpleVal);
 1337     LoadI->replaceAllUsesWith(AvailableVal);
 1521   LoadI->replaceAllUsesWith(PN);
 1882       BO->replaceAllUsesWith(UndefValue::get(BO->getType()));
 1886       BO->replaceAllUsesWith(BO->getOperand(isLHS));
 2614     SI->replaceAllUsesWith(NewPN);
 2751       Inst->replaceAllUsesWith(NewPN);
lib/Transforms/Scalar/LICM.cpp
  838         I.replaceAllUsesWith(C);
  881         I.replaceAllUsesWith(Product);
 1653     PN->replaceAllUsesWith(New);
lib/Transforms/Scalar/LoopDistribute.cpp
  234         Inst->replaceAllUsesWith(UndefValue::get(Inst->getType()));
lib/Transforms/Scalar/LoopIdiomRecognize.cpp
  342   I->replaceAllUsesWith(UndefValue::get(I->getType()));
lib/Transforms/Scalar/LoopInstSimplify.cpp
  140                 MA->replaceAllUsesWith(ReplacementMA);
lib/Transforms/Scalar/LoopInterchange.cpp
 1371     P.replaceAllUsesWith(IncI);
lib/Transforms/Scalar/LoopLoadElimination.cpp
  446     Cand.Load->replaceAllUsesWith(PHI);
lib/Transforms/Scalar/LoopSimplifyCFG.cpp
  371         PN->replaceAllUsesWith(UndefValue::get(PN->getType()));
lib/Transforms/Scalar/LoopStrengthReduce.cpp
 2178     ShadowUse->replaceAllUsesWith(NewPH);
 2346   Cond->replaceAllUsesWith(NewCond);
lib/Transforms/Scalar/LoopUnswitch.cpp
 1335         LPI->replaceAllUsesWith(PN);
 1430   I->replaceAllUsesWith(V);
 1504         UI->replaceAllUsesWith(Replacement);
lib/Transforms/Scalar/LowerAtomic.cpp
   37   CXI->replaceAllUsesWith(Res);
   97   RMWI->replaceAllUsesWith(Orig);
lib/Transforms/Scalar/LowerExpectIntrinsic.cpp
  355         CI->replaceAllUsesWith(Exp);
lib/Transforms/Scalar/LowerWidenableCondition.cpp
   60     CI->replaceAllUsesWith(ConstantInt::getTrue(CI->getContext()));
lib/Transforms/Scalar/MergedLoadStoreMotion.cpp
  270   A0->replaceAllUsesWith(ANew);
  272   A1->replaceAllUsesWith(ANew);
lib/Transforms/Scalar/NaryReassociate.cpp
  241           I->replaceAllUsesWith(NewI);
lib/Transforms/Scalar/NewGVN.cpp
 3474       ToErase->replaceAllUsesWith(UndefValue::get(ToErase->getType()));
 3676   I->replaceAllUsesWith(Repl);
 3692       Inst.replaceAllUsesWith(UndefValue::get(Inst.getType()));
lib/Transforms/Scalar/PartiallyInlineLibCalls.cpp
   59   Call->replaceAllUsesWith(Phi);
lib/Transforms/Scalar/Reassociate.cpp
  280   Neg->replaceAllUsesWith(Res);
  966   Sub->replaceAllUsesWith(New);
  985   Shl->replaceAllUsesWith(Mul);
 2040   I->replaceAllUsesWith(NewInst);
 2228     I->replaceAllUsesWith(V);
 2267     I->replaceAllUsesWith(Ops[0].Op);
lib/Transforms/Scalar/RewriteStatepointsForGC.cpp
 1381       OldI->replaceAllUsesWith(NewI);
 2485     II->replaceAllUsesWith(UndefValue::get(II->getType()));
lib/Transforms/Scalar/SCCP.cpp
 1796   V->replaceAllUsesWith(Const);
 2170               Inst->replaceAllUsesWith(Op);
lib/Transforms/Scalar/SROA.cpp
 1280     LI->replaceAllUsesWith(NewPN);
 1387     LI->replaceAllUsesWith(V);
 2585       LI.replaceAllUsesWith(V);
 2586       Placeholder->replaceAllUsesWith(&LI);
 2589       LI.replaceAllUsesWith(V);
 3384     LI.replaceAllUsesWith(V);
 4470     DeadUser->replaceAllUsesWith(UndefValue::get(DeadUser->getType()));
 4523     I->replaceAllUsesWith(UndefValue::get(I->getType()));
lib/Transforms/Scalar/Scalarizer.cpp
  377       Old->replaceAllUsesWith(CV[I]);
  846       Op->replaceAllUsesWith(Res);
lib/Transforms/Scalar/SeparateConstOffsetFromGEP.cpp
  880   Variadic->replaceAllUsesWith(ResultPtr);
  926   Variadic->replaceAllUsesWith(ResultPtr);
 1108   GEP->replaceAllUsesWith(NewGEP);
 1179         I->replaceAllUsesWith(NewSExt);
lib/Transforms/Scalar/SimpleLoopUnswitch.cpp
  254     PN.replaceAllUsesWith(NewPN);
 1055       I.replaceAllUsesWith(MergePN);
lib/Transforms/Scalar/SimplifyCFGPass.cpp
  115       BB.replaceAllUsesWith(RetBlock);
lib/Transforms/Scalar/SpeculateAroundPHIs.cpp
  712       OrigI->replaceAllUsesWith(SpecIPN);
lib/Transforms/Scalar/StraightLineStrengthReduce.cpp
  699   C.Ins->replaceAllUsesWith(Reduced);
lib/Transforms/Scalar/StructurizeCFG.cpp
  649         Phi->replaceAllUsesWith(V);
lib/Transforms/Scalar/TailRecursionElimination.cpp
  598       I->replaceAllUsesWith(PN); // Everyone use the PHI node now!
  803       PN->replaceAllUsesWith(PNV);
lib/Transforms/Utils/BasicBlockUtils.cpp
   77         I.replaceAllUsesWith(UndefValue::get(I.getType()));
  145       PN->replaceAllUsesWith(PN->getIncomingValue(0));
  147       PN->replaceAllUsesWith(UndefValue::get(PN->getType()));
  263   BB->replaceAllUsesWith(PredBB);
  325   I.replaceAllUsesWith(V);
  756       LPad->replaceAllUsesWith(PN);
  762     LPad->replaceAllUsesWith(Clone1);
lib/Transforms/Utils/BreakCriticalEdges.cpp
  465       IndPHI->replaceAllUsesWith(MergePHI);
lib/Transforms/Utils/BypassSlowDivision.cpp
  464       I->replaceAllUsesWith(Replacement);
lib/Transforms/Utils/CloneFunction.cpp
  591         PN->replaceAllUsesWith(NV);
  638     I->replaceAllUsesWith(SimpleV);
  697     Dest->replaceAllUsesWith(&*I);
lib/Transforms/Utils/CodeExtractor.cpp
  678       PN->replaceAllUsesWith(NewPN);
lib/Transforms/Utils/CtorUtils.cpp
   58     GCL->replaceAllUsesWith(V);
lib/Transforms/Utils/DemoteRegToStack.cpp
  148   P->replaceAllUsesWith(V);
lib/Transforms/Utils/InlineFunction.cpp
  184     OuterPHI->replaceAllUsesWith(InnerPHI);
  191   CallerLPad->replaceAllUsesWith(InnerEHValuesPHI);
  744       I->replaceAllUsesWith(Replacement);
 1781         I->replaceAllUsesWith(NewI);
 1916           CI->replaceAllUsesWith(NewCI);
 2083         I->replaceAllUsesWith(NewInst);
 2244         TheCall->replaceAllUsesWith(UndefValue::get(TheCall->getType()));
 2246         TheCall->replaceAllUsesWith(R->getReturnValue());
 2320       TheCall->replaceAllUsesWith(PHI);
 2354         TheCall->replaceAllUsesWith(UndefValue::get(TheCall->getType()));
 2356         TheCall->replaceAllUsesWith(Returns[0]->getReturnValue());
 2361     ReturnBB->replaceAllUsesWith(AfterCallBB);
 2377     TheCall->replaceAllUsesWith(UndefValue::get(TheCall->getType()));
 2395   CalleeEntry->replaceAllUsesWith(OrigBB);  // Update PHI nodes
 2412       PHI->replaceAllUsesWith(V);
lib/Transforms/Utils/IntegerDivision.cpp
  394     Rem->replaceAllUsesWith(Remainder);
  412   Rem->replaceAllUsesWith(Remainder);
  453     Div->replaceAllUsesWith(Quotient);
  471   Div->replaceAllUsesWith(Quotient);
  522   Rem->replaceAllUsesWith(Trunc);
  570   Rem->replaceAllUsesWith(Trunc);
  619   Div->replaceAllUsesWith(Trunc);
  668   Div->replaceAllUsesWith(Trunc);
lib/Transforms/Utils/Local.cpp
  535       I->replaceAllUsesWith(UndefValue::get(I->getType()));
  585       I->replaceAllUsesWith(SimpleV);
  678     PN->replaceAllUsesWith(NewVal);
  709     BA->replaceAllUsesWith(ConstantExpr::getIntToPtr(Replacement,
  715   PredBB->replaceAllUsesWith(DestBB);
 1057   BB->replaceAllUsesWith(Succ);
 1116       PN->replaceAllUsesWith(*Inserted.first);
 1886       Inst->replaceAllUsesWith(UndefValue::get(Inst->getType()));
 1932       BBI->replaceAllUsesWith(UndefValue::get(BBI->getType()));
 1959   II->replaceAllUsesWith(NewCall);
 2005   CI->replaceAllUsesWith(II);
 2205   TI->replaceAllUsesWith(NewTI);
 2254         TI->replaceAllUsesWith(UndefValue::get(TI->getType()));
lib/Transforms/Utils/LoopSimplify.cpp
  190       PN->replaceAllUsesWith(V);
  434       NewPN->replaceAllUsesWith(UniqueValue);
  598         PN->replaceAllUsesWith(V);
lib/Transforms/Utils/LoopUnroll.cpp
  225           Inst->replaceAllUsesWith(V);
  697       PN->replaceAllUsesWith(PN->getIncomingValueForBlock(Preheader));
lib/Transforms/Utils/LoopUnrollAndJam.cpp
  454       Phi->replaceAllUsesWith(Phi->getIncomingValueForBlock(Preheader));
lib/Transforms/Utils/LowerInvoke.cpp
   61       II->replaceAllUsesWith(NewCall);
lib/Transforms/Utils/PredicateInfo.cpp
  793     Inst->replaceAllUsesWith(II->getOperand(0));
lib/Transforms/Utils/PromoteMemoryToRegister.cpp
  404     LI->replaceAllUsesWith(ReplVal);
  483         LI->replaceAllUsesWith(UndefValue::get(LI->getType()));
  502       LI->replaceAllUsesWith(ReplVal);
  666       A->replaceAllUsesWith(UndefValue::get(A->getType()));
  695         PN->replaceAllUsesWith(V);
  954       LI->replaceAllUsesWith(V);
lib/Transforms/Utils/SSAUpdater.cpp
  422           L->replaceAllUsesWith(StoredValue);
  454     ALoad->replaceAllUsesWith(NewVal);
  482       User->replaceAllUsesWith(NewVal);
lib/Transforms/Utils/SanitizerStats.cpp
   89   ModuleStatsGV->replaceAllUsesWith(
lib/Transforms/Utils/SimplifyCFG.cpp
 1306         I2->replaceAllUsesWith(I1);
 1379     I1->replaceAllUsesWith(NT);
 1380     I2->replaceAllUsesWith(NT);
 1627     PN->replaceAllUsesWith(I0);
 2333       PN->replaceAllUsesWith(V);
 2427     PN->replaceAllUsesWith(Sel);
 2539       Inst->replaceAllUsesWith(PBI);
 3622       ICI->replaceAllUsesWith(V);
 3639     ICI->replaceAllUsesWith(V);
 3663   ICI->replaceAllUsesWith(DefaultCst);
 4081   SuccessorCleanupPad->replaceAllUsesWith(PredecessorCleanupPad);
 4211       BBI->replaceAllUsesWith(UndefValue::get(BBI->getType()));
 4282           CatchSwitchBB->replaceAllUsesWith(CSI->getUnwindDest());
 5276     CmpInst->replaceAllUsesWith(RangeCmp);
 5283     CmpInst->replaceAllUsesWith(InvertedTableCmp);
lib/Transforms/Utils/SimplifyIndVar.cpp
  265     ICmp->replaceAllUsesWith(ConstantInt::getTrue(ICmp->getContext()));
  269     ICmp->replaceAllUsesWith(ConstantInt::getFalse(ICmp->getContext()));
  308     SDiv->replaceAllUsesWith(UDiv);
  324   Rem->replaceAllUsesWith(URem);
  333   Rem->replaceAllUsesWith(Rem->getOperand(0));
  347   Rem->replaceAllUsesWith(Sel);
  463         EVI->replaceAllUsesWith(ConstantInt::getFalse(WO->getContext()));
  466         EVI->replaceAllUsesWith(NewResult);
  494   SI->replaceAllUsesWith(BO);
  603     ICI->replaceAllUsesWith(NewICI);
  608   TI->replaceAllUsesWith(UndefValue::get(TI->getType()));
  676   I->replaceAllUsesWith(Invariant);
  720   UseInst->replaceAllUsesWith(IVOperand);
lib/Transforms/Utils/StripGCRelocates.cpp
   67     GCRel->replaceAllUsesWith(ReplaceGCRel);
lib/Transforms/Utils/VNCoercion.cpp
  445     SrcVal->replaceAllUsesWith(RV);
lib/Transforms/Utils/ValueMapper.cpp
  848     DBB.TempBB->replaceAllUsesWith(BB ? BB : DBB.OldBB);
lib/Transforms/Vectorize/LoadStoreVectorizer.cpp
 1216         UI->replaceAllUsesWith(V);
 1238       CV->replaceAllUsesWith(V);
lib/Transforms/Vectorize/LoopVectorize.cpp
 3211       In->replaceAllUsesWith(V);
 3388       I->replaceAllUsesWith(Res);
 3585     PhiPart->replaceAllUsesWith(Shuffle);
lib/Transforms/Vectorize/SLPVectorizer.cpp
 2080       Pair.getFirst()->replaceAllUsesWith(Undef);
 4313       Scalar->replaceAllUsesWith(Ex);
 4460           In->replaceAllUsesWith(v);
 6496       ReductionRoot->replaceAllUsesWith(VectorizedTree);
tools/bugpoint-passes/TestPasses.cpp
   62             CI->replaceAllUsesWith(Constant::getNullValue(CI->getType()));
tools/bugpoint/CrashDebugger.cpp
  283       Alias.replaceAllUsesWith(Replacement);
  291         I.replaceAllUsesWith(Replacement);
  475           BBTerm->replaceAllUsesWith(Constant::getNullValue(BBTerm->getType()));
  783             Inst->replaceAllUsesWith(UndefValue::get(Inst->getType()));
tools/bugpoint/ExtractFunction.cpp
  105     TheInst->replaceAllUsesWith(Constant::getNullValue(TheInst->getType()));
  194       aliases[i]->replaceAllUsesWith(aliases[i]->getAliasee());
tools/bugpoint/Miscompilation.cpp
  924           F->replaceAllUsesWith(FuncWrapper);
tools/clang/lib/CodeGen/CGCXX.cpp
  194     Entry->replaceAllUsesWith(Alias);
tools/clang/lib/CodeGen/CGCleanup.cpp
  541   Entry->replaceAllUsesWith(Pred);
tools/clang/lib/CodeGen/CGDecl.cpp
  356     OldGV->replaceAllUsesWith(NewPtrForOldDecl);
tools/clang/lib/CodeGen/CGException.cpp
  350   Fn->replaceAllUsesWith(CXXFn.getCallee());
tools/clang/lib/CodeGen/CGExprConstant.cpp
 1491         entry.first->replaceAllUsesWith(entry.second);
tools/clang/lib/CodeGen/CGObjCGNU.cpp
 1411       OldGV->replaceAllUsesWith(llvm::ConstantExpr::getBitCast(GV,
 1951       ClassPtrAlias->replaceAllUsesWith(
 1959         Placeholder->replaceAllUsesWith(
 1965       MetaClassPtrAlias->replaceAllUsesWith(
 2975     ClassRef->replaceAllUsesWith(llvm::ConstantExpr::getBitCast(Class,
 3588     ClassPtrAlias->replaceAllUsesWith(
 3594     MetaClassPtrAlias->replaceAllUsesWith(
 3717     selectorAliases[i]->replaceAllUsesWith(selPtr);
tools/clang/lib/CodeGen/CGObjCMac.cpp
 7274       GV->replaceAllUsesWith(
tools/clang/lib/CodeGen/CGOpenMPRuntime.cpp
 1294       OrigAddr->replaceAllUsesWith(
tools/clang/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp
 5135         Rec->Buffer->replaceAllUsesWith(Replacement);
 5163         Rec->Buffer->replaceAllUsesWith(Replacement);
tools/clang/lib/CodeGen/CGStmt.cpp
  460   BB->replaceAllUsesWith(BI->getSuccessor(0));
 1695       DefaultBlock->replaceAllUsesWith(SwitchExit.getBlock());
tools/clang/lib/CodeGen/CGVTables.cpp
  185   Fn->replaceAllUsesWith(NewFn);
  536       OldThunkFn->replaceAllUsesWith(NewPtrForOldDecl);
tools/clang/lib/CodeGen/CodeGenFunction.cpp
  253       ReturnBlock.getBlock()->replaceAllUsesWith(CurBB);
  394       PN->replaceAllUsesWith(llvm::UndefValue::get(PN->getType()));
  414     I->first->replaceAllUsesWith(I->second);
tools/clang/lib/CodeGen/CodeGenModule.cpp
  250     OldF->replaceAllUsesWith(Replacement);
  269     GV->replaceAllUsesWith(C);
  364     Alias->replaceAllUsesWith(llvm::UndefValue::get(Alias->getType()));
 3475       Entry->replaceAllUsesWith(NewPtrForOldDecl);
 3642       OldGV->replaceAllUsesWith(NewPtrForOldDecl);
 3971     Entry->replaceAllUsesWith(NewPtrForOldDecl);
 4342       callSite->replaceAllUsesWith(newCall);
 4493     Entry->replaceAllUsesWith(llvm::ConstantExpr::getBitCast(GA,
 4566     Entry->replaceAllUsesWith(llvm::ConstantExpr::getBitCast(GIF,
tools/clang/lib/CodeGen/ConstantInitBuilder.cpp
  101     dummy->replaceAllUsesWith(resolvedReference);
  117       dummy->replaceAllUsesWith(llvm::UndefValue::get(dummy->getType()));
tools/clang/lib/CodeGen/ItaniumCXXABI.cpp
 3508     OldGV->replaceAllUsesWith(NewPtr);
 3944     Entry->replaceAllUsesWith(Alias);
tools/lldb/source/Plugins/ExpressionParser/Clang/IRForTarget.cpp
  402     result_global->replaceAllUsesWith(new_result_global);
  885   selector_load->replaceAllUsesWith(srN_call);
 1036   class_load->replaceAllUsesWith(ogC_call);
 1133   alloc->replaceAllUsesWith(persistent_load);
 1306   symbol->replaceAllUsesWith(symbol_addr_ptr);
 1378     load_instruction->replaceAllUsesWith(class_bitcast);
 1501   guard_load->replaceAllUsesWith(zero);
 1824         value->replaceAllUsesWith(
tools/lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptx86ABIFixups.cpp
  203     call_inst->replaceAllUsesWith(lldb_save_result_address);
tools/llvm-reduce/deltas/ReduceArguments.cpp
   36         CI->replaceAllUsesWith(NewCI);
   75       I->replaceAllUsesWith(UndefValue::get(I->getType()));
tools/llvm-reduce/deltas/ReduceBasicBlocks.cpp
  121       I.replaceAllUsesWith(UndefValue::get(I.getType()));
tools/llvm-reduce/deltas/ReduceFunctions.cpp
   44           Call->replaceAllUsesWith(UndefValue::get(Call->getType()));
   47       F.replaceAllUsesWith(UndefValue::get(F.getType()));
tools/llvm-reduce/deltas/ReduceGlobalVars.cpp
   42       GV.replaceAllUsesWith(UndefValue::get(GV.getType()));
   48     Inst->replaceAllUsesWith(UndefValue::get(Inst->getType()));
tools/llvm-reduce/deltas/ReduceInstructions.cpp
   40           Inst.replaceAllUsesWith(UndefValue::get(Inst.getType()));
unittests/Analysis/LazyCallGraphTest.cpp
 2076   D.replaceAllUsesWith(&E);
 2081   D.arg_begin()->replaceAllUsesWith(&*E.arg_begin());
unittests/Analysis/MemorySSATest.cpp
  323   EntryStoreAccess->replaceAllUsesWith(NewStoreAccess);
  511   MP->replaceAllUsesWith(MSSA.getLiveOnEntryDef());
unittests/Analysis/PhiValuesTest.cpp
   66   Val1->replaceAllUsesWith(Val4);
unittests/Analysis/ScalarEvolutionTest.cpp
  108   V2->replaceAllUsesWith(V1);
  109   V1->replaceAllUsesWith(V0);
unittests/IR/ConstantsTest.cpp
  315   EXPECT_DEATH(Global->replaceAllUsesWith(GEP),
  345   GlobalInt->replaceAllUsesWith(ConstantInt::get(IntTy, 1));
  368   G1->replaceAllUsesWith(G2);
  392   Placeholder->replaceAllUsesWith(Alias);
unittests/IR/MetadataTest.cpp
  768   GV->replaceAllUsesWith(GV2.get());
 2538   GV0->replaceAllUsesWith(GV1.get());
 2599   GV0->replaceAllUsesWith(GV1.get());
unittests/IR/ValueHandleTest.cpp
   48   BitcastV->replaceAllUsesWith(ConstantV);
  103   BitcastV->replaceAllUsesWith(ConstantV);
  179   BitcastV->replaceAllUsesWith(ConstantV);
  305   BitcastV->replaceAllUsesWith(ConstantV);
  326       getValPtr()->replaceAllUsesWith(
  385     BitcastV->replaceAllUsesWith(ConstantV);
  490   BitcastV->replaceAllUsesWith(ConstantV);
  504   BitcastV->replaceAllUsesWith(ConstantV);
  521   BitcastV->replaceAllUsesWith(ConstantV);
  542     BitcastV->replaceAllUsesWith(ConstantV);
unittests/IR/ValueMapTest.cpp
   51   this->BitcastV->replaceAllUsesWith(this->AddV.get());
  170   this->BitcastV->replaceAllUsesWith(this->AddV.get());
  205   this->BitcastV->replaceAllUsesWith(this->AddV.get());
  222   this->BitcastV->replaceAllUsesWith(this->AddV.get());
  254   this->BitcastV->replaceAllUsesWith(this->AddV.get());
  286   this->BitcastV->replaceAllUsesWith(this->AddV.get());