Home
last modified time | relevance | path

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

123456

/minix/external/bsd/llvm/dist/llvm/lib/CodeGen/
H A DIntrinsicLowering.cpp83 CI->replaceAllUsesWith(NewCI); in ReplaceCallWith()
359 CI->replaceAllUsesWith(V); in LowerIntrinsicCall()
371 CI->replaceAllUsesWith(V); in LowerIntrinsicCall()
411 CI->replaceAllUsesWith(Src); in LowerIntrinsicCall()
423 CI->replaceAllUsesWith(Constant::getNullValue(CI->getType())); in LowerIntrinsicCall()
432 CI->replaceAllUsesWith(ConstantPointerNull::get( in LowerIntrinsicCall()
453 CI->replaceAllUsesWith(ConstantInt::get(CI->getType(), 1)); in LowerIntrinsicCall()
459 CI->replaceAllUsesWith(CI->getOperand(0)); in LowerIntrinsicCall()
562 CI->replaceAllUsesWith(ConstantInt::get(CI->getType(), 1)); in LowerIntrinsicCall()
567 CI->replaceAllUsesWith(UndefValue::get(CI->getType())); in LowerIntrinsicCall()
[all …]
H A DAtomicExpandPass.cpp192 LI->replaceAllUsesWith(Val); in expandAtomicLoadToLL()
210 LI->replaceAllUsesWith(Loaded); in expandAtomicLoadToCmpXchg()
329 AI->replaceAllUsesWith(Loaded); in expandAtomicRMWToLLSC()
393 AI->replaceAllUsesWith(NewLoaded); in expandAtomicRMWToCmpXchg()
508 EV->replaceAllUsesWith(Loaded); in expandAtomicCmpXchg()
510 EV->replaceAllUsesWith(Success); in expandAtomicCmpXchg()
526 CI->replaceAllUsesWith(Res); in expandAtomicCmpXchg()
/minix/external/bsd/llvm/dist/llvm/unittests/IR/
H A DValueMapTest.cpp52 this->BitcastV->replaceAllUsesWith(this->AddV.get()); in TYPED_TEST()
171 this->BitcastV->replaceAllUsesWith(this->AddV.get()); in TYPED_TEST()
205 this->BitcastV->replaceAllUsesWith(this->AddV.get()); in TYPED_TEST()
222 this->BitcastV->replaceAllUsesWith(this->AddV.get()); in TYPED_TEST()
254 this->BitcastV->replaceAllUsesWith(this->AddV.get()); in TYPED_TEST()
286 this->BitcastV->replaceAllUsesWith(this->AddV.get()); in TYPED_TEST()
H A DValueHandleTest.cpp86 BitcastV->replaceAllUsesWith(ConstantV); in TEST_F()
162 BitcastV->replaceAllUsesWith(ConstantV); in TEST_F()
282 BitcastV->replaceAllUsesWith(ConstantV); in TEST_F()
302 getValPtr()->replaceAllUsesWith(Constant::getNullValue(Type::getInt32Ty(getGlobalContext()))); in TEST_F()
360 BitcastV->replaceAllUsesWith(ConstantV); in TEST_F()
H A DMetadataTest.cpp296 Temp->replaceAllUsesWith(Empty); in TEST_F()
317 Temp3->replaceAllUsesWith(N3); in TEST_F()
387 Temp->replaceAllUsesWith(nullptr); in TEST_F()
483 GV0->replaceAllUsesWith(GV1.get()); in TEST_F()
512 Temp->replaceAllUsesWith(nullptr); in TEST_F()
527 GV0->replaceAllUsesWith(GV1.get()); in TEST_F()
/minix/external/bsd/llvm/dist/llvm/lib/Transforms/IPO/
H A DPartialInlining.cpp84 F->replaceAllUsesWith(duplicateFunction); in unswitchFunction()
100 OldPhi->replaceAllUsesWith(retPhi); in unswitchFunction()
143 duplicateFunction->replaceAllUsesWith(F); in unswitchFunction()
H A DIPConstantPropagation.cpp144 AI->replaceAllUsesWith(V); in PropagateConstantsIntoArguments()
245 Call->replaceAllUsesWith(New); in PropagateConstantReturn()
270 Ins->replaceAllUsesWith(New); in PropagateConstantReturn()
H A DDeadArgumentElimination.cpp278 Call->replaceAllUsesWith(New); in DeleteDeadVarargs()
299 I->replaceAllUsesWith(I2); in DeleteDeadVarargs()
315 Fn.replaceAllUsesWith(ConstantExpr::getBitCast(NF, Fn.getType())); in DeleteDeadVarargs()
954 Call->replaceAllUsesWith(New); in RemoveDeadStuffFromFunction()
960 Call->replaceAllUsesWith(Constant::getNullValue(Call->getType())); in RemoveDeadStuffFromFunction()
994 Call->replaceAllUsesWith(RetVal); in RemoveDeadStuffFromFunction()
1017 I->replaceAllUsesWith(I2); in RemoveDeadStuffFromFunction()
1024 I->replaceAllUsesWith(Constant::getNullValue(I->getType())); in RemoveDeadStuffFromFunction()
/minix/external/bsd/llvm/dist/llvm/lib/Target/R600/
H A DSITypeRewriter.cpp96 I.replaceAllUsesWith(BitCastLoad); in visitLoadInst()
142 I.replaceAllUsesWith(Builder.CreateCall(NewF, Args)); in visitCallInst()
154 I.replaceAllUsesWith(Op->getOperand(0)); in visitBitCast()
H A DAMDGPUAlwaysInlinePass.cpp53 F->replaceAllUsesWith(NewFunc); in runOnModule()
/minix/external/bsd/llvm/dist/llvm/lib/Transforms/Utils/
H A DBypassSlowDivision.cpp151 Instr->replaceAllUsesWith(QuoPhi); in insertFastDiv()
153 Instr->replaceAllUsesWith(RemPhi); in insertFastDiv()
207 J->replaceAllUsesWith(Value.Quotient); in reuseOrInsertFastDiv()
210 J->replaceAllUsesWith(Value.Remainder); in reuseOrInsertFastDiv()
H A DIntegerDivision.cpp397 Rem->replaceAllUsesWith(Remainder); in expandRemainder()
415 Rem->replaceAllUsesWith(Remainder); in expandRemainder()
457 Div->replaceAllUsesWith(Quotient); in expandDivision()
475 Div->replaceAllUsesWith(Quotient); in expandDivision()
527 Rem->replaceAllUsesWith(Trunc); in expandRemainderUpTo32Bits()
577 Rem->replaceAllUsesWith(Trunc); in expandRemainderUpTo64Bits()
628 Div->replaceAllUsesWith(Trunc); in expandDivisionUpTo32Bits()
678 Div->replaceAllUsesWith(Trunc); in expandDivisionUpTo64Bits()
H A DSimplifyIndVar.cpp180 ICmp->replaceAllUsesWith(ConstantInt::getTrue(ICmp->getContext())); in eliminateIVComparison()
182 ICmp->replaceAllUsesWith(ConstantInt::getFalse(ICmp->getContext())); in eliminateIVComparison()
215 Rem->replaceAllUsesWith(Rem->getOperand(0)); in eliminateIVRemainder()
234 Rem->replaceAllUsesWith(Sel); in eliminateIVRemainder()
268 UseInst->replaceAllUsesWith(IVOperand); in eliminateIVUser()
434 AddVal->replaceAllUsesWith(AddInst); in splitOverflowIntrinsic()
H A DInlineFunction.cpp147 OuterPHI->replaceAllUsesWith(InnerPHI); in getInnerResumeDest()
154 CallerLPad->replaceAllUsesWith(InnerEHValuesPHI); in getInnerResumeDest()
218 CI->replaceAllUsesWith(II); in HandleCallsInBlockInlinedThroughInvoke()
348 TempM->replaceAllUsesWith(NewM); in CloneAliasScopeMetadata()
1255 TheCall->replaceAllUsesWith(R->getReturnValue()); in InlineFunction()
1322 TheCall->replaceAllUsesWith(PHI); in InlineFunction()
1359 TheCall->replaceAllUsesWith(Returns[0]->getReturnValue()); in InlineFunction()
1364 ReturnBB->replaceAllUsesWith(AfterCallBB); in InlineFunction()
1380 TheCall->replaceAllUsesWith(UndefValue::get(TheCall->getType())); in InlineFunction()
1398 CalleeEntry->replaceAllUsesWith(OrigBB); // Update PHI nodes in InlineFunction()
[all …]
H A 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()
203 I.replaceAllUsesWith(V); in ReplaceInstWithValue()
612 LPad->replaceAllUsesWith(PN); in SplitLandingPadPredecessors()
617 LPad->replaceAllUsesWith(Clone1); in SplitLandingPadPredecessors()
H A DLowerInvoke.cpp66 II->replaceAllUsesWith(NewCall); in runOnFunction()
/minix/external/bsd/llvm/dist/llvm/lib/IR/
H A DAutoUpgrade.cpp432 CI->replaceAllUsesWith(Rep); in UpgradeIntrinsicCall()
451 CI->replaceAllUsesWith(NewCI); in UpgradeIntrinsicCall()
460 CI->replaceAllUsesWith(NewCI); in UpgradeIntrinsicCall()
468 CI->replaceAllUsesWith(Builder.CreateCall2(NewFn, CI->getArgOperand(0), in UpgradeIntrinsicCall()
474 CI->replaceAllUsesWith(Builder.CreateCall2(NewFn, in UpgradeIntrinsicCall()
482 CI->replaceAllUsesWith(Builder.CreateCall(NewFn, CI->getArgOperand(0))); in UpgradeIntrinsicCall()
489 CI->replaceAllUsesWith(Builder.CreateCall(NewFn, CI->getArgOperand(1), in UpgradeIntrinsicCall()
518 CI->replaceAllUsesWith(NewCall); in UpgradeIntrinsicCall()
546 CI->replaceAllUsesWith(NewCall); in UpgradeIntrinsicCall()
H A DBasicBlock.cpp81 BA->replaceAllUsesWith(ConstantExpr::getIntToPtr(Replacement, in ~BasicBlock()
289 PN->replaceAllUsesWith(PN->getIncomingValue(0)); in removePredecessor()
292 PN->replaceAllUsesWith(UndefValue::get(PN->getType())); in removePredecessor()
311 PN->replaceAllUsesWith(PNV); in removePredecessor()
/minix/external/bsd/llvm/dist/llvm/lib/Transforms/Scalar/
H A DCorrelatedValuePropagation.cpp87 S->replaceAllUsesWith(ReplaceWith); in processSelect()
131 P->replaceAllUsesWith(V); in processPHI()
193 C->replaceAllUsesWith(ConstantInt::getTrue(C->getContext())); in processCmp()
195 C->replaceAllUsesWith(ConstantInt::getFalse(C->getContext())); in processCmp()
H A DLowerAtomic.cpp38 CXI->replaceAllUsesWith(Res); in LowerAtomicCmpXchgInst()
92 RMWI->replaceAllUsesWith(Orig); in LowerAtomicRMWInst()
H A DConstantProp.cpp87 I->replaceAllUsesWith(C); in runOnFunction()
/minix/external/bsd/llvm/dist/llvm/lib/Target/AArch64/
H A DAArch64AddressTypePromotion.cpp306 SExt->replaceAllUsesWith(Inst); in propagateSignExtension()
361 SExt->replaceAllUsesWith(SExt->getOperand(0)); in propagateSignExtension()
391 Pt->replaceAllUsesWith(Inst); in mergeSExts()
404 Inst->replaceAllUsesWith(Pt); in mergeSExts()
/minix/external/bsd/llvm/dist/llvm/lib/Target/NVPTX/
H A DNVPTXFavorNonGenericAddrSpaces.cpp131 GEP->replaceAllUsesWith( in hoistAddrSpaceCastFromGEP()
139 GEP->replaceAllUsesWith( in hoistAddrSpaceCastFromGEP()
/minix/external/bsd/llvm/dist/llvm/tools/bugpoint-passes/
H A DTestPasses.cpp63 CI->replaceAllUsesWith(Constant::getNullValue(CI->getType())); in runOnBasicBlock()
/minix/external/bsd/llvm/dist/llvm/lib/Transforms/ObjCARC/
H A DObjCARCExpand.cpp117 Inst->replaceAllUsesWith(Value); in runOnFunction()

123456