Home
last modified time | relevance | path

Searched refs:replaceAllUsesWith (Results 1 – 25 of 103) sorted by relevance

12345

/freebsd-10-stable/contrib/llvm/lib/CodeGen/
DIntrinsicLowering.cpp83 CI->replaceAllUsesWith(NewCI); in ReplaceCallWith()
359 CI->replaceAllUsesWith(V); in LowerIntrinsicCall()
371 CI->replaceAllUsesWith(V); in LowerIntrinsicCall()
376 CI->replaceAllUsesWith(Constant::getNullValue(CI->getType())); in LowerIntrinsicCall()
392 CI->replaceAllUsesWith(LowerCTPOP(Context, CI->getArgOperand(0), CI)); in LowerIntrinsicCall()
396 CI->replaceAllUsesWith(LowerBSWAP(Context, CI->getArgOperand(0), CI)); in LowerIntrinsicCall()
400 CI->replaceAllUsesWith(LowerCTLZ(Context, CI->getArgOperand(0), CI)); in LowerIntrinsicCall()
411 CI->replaceAllUsesWith(Src); in LowerIntrinsicCall()
423 CI->replaceAllUsesWith(Constant::getNullValue(CI->getType())); in LowerIntrinsicCall()
432 CI->replaceAllUsesWith(ConstantPointerNull::get( in LowerIntrinsicCall()
[all …]
DSjLjEHPrepare.cpp161 EVI->replaceAllUsesWith(ExnVal); in substituteLPadValues()
163 EVI->replaceAllUsesWith(SelVal); in substituteLPadValues()
180 LPI->replaceAllUsesWith(LPadVal); in substituteLPadValues()
258 AI->replaceAllUsesWith(NI); in lowerIncomingArguments()
269 AI->replaceAllUsesWith(NC); in lowerIncomingArguments()
/freebsd-10-stable/contrib/llvm/lib/Transforms/Utils/
DInlineFunction.cpp126 OuterPHI->replaceAllUsesWith(InnerPHI); in getInnerResumeDest()
133 CallerLPad->replaceAllUsesWith(InnerEHValuesPHI); in getInnerResumeDest()
218 CI->replaceAllUsesWith(II); in HandleCallsInBlockInlinedThroughInvoke()
772 TheCall->replaceAllUsesWith(UndefValue::get(TheCall->getType())); in InlineFunction()
774 TheCall->replaceAllUsesWith(R->getReturnValue()); in InlineFunction()
841 TheCall->replaceAllUsesWith(PHI); in InlineFunction()
876 TheCall->replaceAllUsesWith(UndefValue::get(TheCall->getType())); in InlineFunction()
878 TheCall->replaceAllUsesWith(Returns[0]->getReturnValue()); in InlineFunction()
883 ReturnBB->replaceAllUsesWith(AfterCallBB); in InlineFunction()
899 TheCall->replaceAllUsesWith(UndefValue::get(TheCall->getType())); in InlineFunction()
[all …]
DSimplifyIndVar.cpp171 ICmp->replaceAllUsesWith(ConstantInt::getTrue(ICmp->getContext())); in eliminateIVComparison()
173 ICmp->replaceAllUsesWith(ConstantInt::getFalse(ICmp->getContext())); in eliminateIVComparison()
206 Rem->replaceAllUsesWith(Rem->getOperand(0)); in eliminateIVRemainder()
225 Rem->replaceAllUsesWith(Sel); in eliminateIVRemainder()
259 UseInst->replaceAllUsesWith(IVOperand); in eliminateIVUser()
DBypassSlowDivision.cpp150 Instr->replaceAllUsesWith(QuoPhi); in insertFastDiv()
152 Instr->replaceAllUsesWith(RemPhi); in insertFastDiv()
206 J->replaceAllUsesWith(Value.Quotient); in reuseOrInsertFastDiv()
209 J->replaceAllUsesWith(Value.Remainder); in reuseOrInsertFastDiv()
DIntegerDivision.cpp346 Rem->replaceAllUsesWith(Remainder); in expandRemainder()
362 Rem->replaceAllUsesWith(Remainder); in expandRemainder()
399 Div->replaceAllUsesWith(Quotient); in expandDivision()
415 Div->replaceAllUsesWith(Quotient); in expandDivision()
467 Rem->replaceAllUsesWith(Trunc); in expandRemainderUpTo32Bits()
519 Div->replaceAllUsesWith(Trunc); in expandDivisionUpTo32Bits()
DBasicBlockUtils.cpp56 I.replaceAllUsesWith(UndefValue::get(I.getType())); in DeleteDeadBlock()
80 PN->replaceAllUsesWith(PN->getIncomingValue(0)); in FoldSingleEntryPHINodes()
82 PN->replaceAllUsesWith(UndefValue::get(PN->getType())); in FoldSingleEntryPHINodes()
159 BB->replaceAllUsesWith(PredBB); in MergeBlockIntoPredecessor()
201 I.replaceAllUsesWith(V); in ReplaceInstWithValue()
579 LPad->replaceAllUsesWith(PN); in SplitLandingPadPredecessors()
584 LPad->replaceAllUsesWith(Clone1); in SplitLandingPadPredecessors()
DLowerInvoke.cpp180 II->replaceAllUsesWith(NewCall); in insertCheapEHSupport()
211 PN->replaceAllUsesWith(PN->getIncomingValue(0)); in rewriteExpensiveInvoke()
246 II->replaceAllUsesWith(NewCall); in rewriteExpensiveInvoke()
298 AI->replaceAllUsesWith(NI); in splitLiveRangesLiveAcrossInvokes()
308 AI->replaceAllUsesWith(NC); in splitLiveRangesLiveAcrossInvokes()
DLocal.cpp385 I->replaceAllUsesWith(UndefValue::get(I->getType())); in RecursivelyDeleteDeadPHINode()
483 PN->replaceAllUsesWith(NewVal); in MergeBasicBlockIntoOnlyPred()
496 BA->replaceAllUsesWith(ConstantExpr::getIntToPtr(Replacement, in MergeBasicBlockIntoOnlyPred()
502 PredBB->replaceAllUsesWith(DestBB); in MergeBasicBlockIntoOnlyPred()
797 BB->replaceAllUsesWith(Succ); in TryToSimplifyUncondBranchFromEmptyBlock()
851 PN->replaceAllUsesWith(OtherPN); in EliminateDuplicatePHINodes()
1143 BBI->replaceAllUsesWith(UndefValue::get(BBI->getType())); in changeToUnreachable()
1156 II->replaceAllUsesWith(NewCall); in changeToCall()
DPromoteMemoryToRegister.cpp404 LI->replaceAllUsesWith(ReplVal); in rewriteSingleStoreAlloca()
485 LI->replaceAllUsesWith(UndefValue::get(LI->getType())); in promoteSingleBlockAlloca()
488 LI->replaceAllUsesWith(llvm::prior(I)->second->getOperand(0)); in promoteSingleBlockAlloca()
661 A->replaceAllUsesWith(UndefValue::get(A->getType())); in run()
694 PN->replaceAllUsesWith(V); in run()
1027 LI->replaceAllUsesWith(V); in RenamePass()
DLoopUnroll.cpp88 BB->replaceAllUsesWith(OnlyPred); in FoldBlockIntoPredecessor()
334 PN->replaceAllUsesWith(PN->getIncomingValueForBlock(Preheader)); in UnrollLoop()
445 Inst->replaceAllUsesWith(V); in UnrollLoop()
DSSAUpdater.cpp416 L->replaceAllUsesWith(StoredValue); in run()
449 ALoad->replaceAllUsesWith(NewVal); in run()
479 User->replaceAllUsesWith(NewVal); in run()
DLoopSimplify.cpp177 TI->replaceAllUsesWith(UndefValue::get(TI->getType())); in ProcessLoop()
280 PN->replaceAllUsesWith(V); in ProcessLoop()
476 PN->replaceAllUsesWith(V); in FindPHIToPartitionLoops()
738 NewPN->replaceAllUsesWith(UniqueValue); in InsertUniqueBackedgeBlock()
/freebsd-10-stable/contrib/llvm/lib/IR/
DAutoUpgrade.cpp321 CI->replaceAllUsesWith(Rep); in UpgradeIntrinsicCall()
337 CI->replaceAllUsesWith(Builder.CreateCall2(NewFn, CI->getArgOperand(0), in UpgradeIntrinsicCall()
343 CI->replaceAllUsesWith(Builder.CreateCall2(NewFn, in UpgradeIntrinsicCall()
352 CI->replaceAllUsesWith(Builder.CreateCall2(NewFn, CI->getArgOperand(0), in UpgradeIntrinsicCall()
359 CI->replaceAllUsesWith(Builder.CreateCall(NewFn, CI->getArgOperand(0))); in UpgradeIntrinsicCall()
366 CI->replaceAllUsesWith(Builder.CreateCall(NewFn, CI->getArgOperand(1), in UpgradeIntrinsicCall()
395 CI->replaceAllUsesWith(NewCall); in UpgradeIntrinsicCall()
DBasicBlock.cpp74 BA->replaceAllUsesWith(ConstantExpr::getIntToPtr(Replacement, in ~BasicBlock()
257 PN->replaceAllUsesWith(PN->getIncomingValue(0)); in removePredecessor()
260 PN->replaceAllUsesWith(UndefValue::get(PN->getType())); in removePredecessor()
279 PN->replaceAllUsesWith(PNV); in removePredecessor()
/freebsd-10-stable/contrib/llvm/lib/Transforms/Scalar/
DCorrelatedValuePropagation.cpp86 S->replaceAllUsesWith(ReplaceWith); in processSelect()
129 P->replaceAllUsesWith(V); in processPHI()
189 C->replaceAllUsesWith(ConstantInt::getTrue(C->getContext())); in processCmp()
191 C->replaceAllUsesWith(ConstantInt::getFalse(C->getContext())); in processCmp()
DLowerAtomic.cpp34 CXI->replaceAllUsesWith(Orig); in LowerAtomicCmpXchgInst()
88 RMWI->replaceAllUsesWith(Orig); in LowerAtomicRMWInst()
DEarlyCSE.cpp437 Inst->replaceAllUsesWith(V); in INITIALIZE_PASS_DEPENDENCY()
449 Inst->replaceAllUsesWith(V); in INITIALIZE_PASS_DEPENDENCY()
476 if (!Inst->use_empty()) Inst->replaceAllUsesWith(InVal.first); in INITIALIZE_PASS_DEPENDENCY()
502 if (!Inst->use_empty()) Inst->replaceAllUsesWith(InVal.first); in INITIALIZE_PASS_DEPENDENCY()
DLICM.cpp371 I.replaceAllUsesWith(C); in HoistRegion()
501 I.replaceAllUsesWith(UndefValue::get(I.getType())); in sink()
523 I.replaceAllUsesWith(UndefValue::get(I.getType())); in sink()
574 I.replaceAllUsesWith(UndefValue::get(I.getType())); in sink()
/freebsd-10-stable/contrib/llvm/lib/Transforms/IPO/
DPartialInlining.cpp83 F->replaceAllUsesWith(duplicateFunction); in unswitchFunction()
99 OldPhi->replaceAllUsesWith(retPhi); in unswitchFunction()
142 duplicateFunction->replaceAllUsesWith(F); in unswitchFunction()
DIPConstantPropagation.cpp143 AI->replaceAllUsesWith(V); in PropagateConstantsIntoArguments()
244 Call->replaceAllUsesWith(New); in PropagateConstantReturn()
270 Ins->replaceAllUsesWith(New); in PropagateConstantReturn()
DDeadArgumentElimination.cpp307 Call->replaceAllUsesWith(New); in DeleteDeadVarargs()
328 I->replaceAllUsesWith(I2); in DeleteDeadVarargs()
338 Fn.replaceAllUsesWith(ConstantExpr::getBitCast(NF, Fn.getType())); in DeleteDeadVarargs()
975 Call->replaceAllUsesWith(New); in RemoveDeadStuffFromFunction()
981 Call->replaceAllUsesWith(Constant::getNullValue(Call->getType())); in RemoveDeadStuffFromFunction()
1015 Call->replaceAllUsesWith(RetVal); in RemoveDeadStuffFromFunction()
1038 I->replaceAllUsesWith(I2); in RemoveDeadStuffFromFunction()
1045 I->replaceAllUsesWith(Constant::getNullValue(I->getType())); in RemoveDeadStuffFromFunction()
DPruneEH.cpp190 II->replaceAllUsesWith(Call); in SimplifyFunction()
248 I->replaceAllUsesWith(UndefValue::get(I->getType())); in DeleteBasicBlock()
/freebsd-10-stable/contrib/llvm/lib/Target/R600/
DSITypeRewriter.cpp96 I.replaceAllUsesWith(BitCastLoad); in visitLoadInst()
142 I.replaceAllUsesWith(Builder.CreateCall(NewF, Args)); in visitCallInst()
154 I.replaceAllUsesWith(Op->getOperand(0)); in visitBitCast()
/freebsd-10-stable/contrib/llvm/include/llvm/Transforms/Utils/
DSimplifyLibCalls.h49 virtual void replaceAllUsesWith(Instruction *I, Value *With) const;

12345