Home
last modified time | relevance | path

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

123456

/external/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 …]
DAtomicExpandPass.cpp188 LI->replaceAllUsesWith(Val); in expandAtomicLoadToLL()
206 LI->replaceAllUsesWith(Loaded); in expandAtomicLoadToCmpXchg()
334 AI->replaceAllUsesWith(Loaded); in expandAtomicRMWToLLSC()
398 AI->replaceAllUsesWith(NewLoaded); in expandAtomicRMWToCmpXchg()
512 EV->replaceAllUsesWith(Loaded); in expandAtomicCmpXchg()
514 EV->replaceAllUsesWith(Success); in expandAtomicCmpXchg()
530 CI->replaceAllUsesWith(Res); in expandAtomicCmpXchg()
/external/llvm/unittests/IR/
DValueMapTest.cpp52 this->BitcastV->replaceAllUsesWith(this->AddV.get()); in TYPED_TEST()
171 this->BitcastV->replaceAllUsesWith(this->AddV.get()); in TYPED_TEST()
206 this->BitcastV->replaceAllUsesWith(this->AddV.get()); in TYPED_TEST()
223 this->BitcastV->replaceAllUsesWith(this->AddV.get()); in TYPED_TEST()
255 this->BitcastV->replaceAllUsesWith(this->AddV.get()); in TYPED_TEST()
287 this->BitcastV->replaceAllUsesWith(this->AddV.get()); in TYPED_TEST()
DValueHandleTest.cpp86 BitcastV->replaceAllUsesWith(ConstantV); in TEST_F()
162 BitcastV->replaceAllUsesWith(ConstantV); in TEST_F()
288 BitcastV->replaceAllUsesWith(ConstantV); in TEST_F()
308 getValPtr()->replaceAllUsesWith(Constant::getNullValue(Type::getInt32Ty(getGlobalContext()))); in TEST_F()
366 BitcastV->replaceAllUsesWith(ConstantV); in TEST_F()
DConstantsTest.cpp272 EXPECT_DEATH(Global->replaceAllUsesWith(GEP), in TEST()
302 GlobalInt->replaceAllUsesWith(ConstantInt::get(IntTy, 1)); in TEST()
325 G1->replaceAllUsesWith(G2); in TEST()
349 Placeholder->replaceAllUsesWith(Alias); in TEST()
/external/llvm/lib/Transforms/Utils/
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()
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()
DSimplifyIndVar.cpp173 ICmp->replaceAllUsesWith(ConstantInt::getTrue(ICmp->getContext())); in eliminateIVComparison()
175 ICmp->replaceAllUsesWith(ConstantInt::getFalse(ICmp->getContext())); in eliminateIVComparison()
208 Rem->replaceAllUsesWith(Rem->getOperand(0)); in eliminateIVRemainder()
227 Rem->replaceAllUsesWith(Sel); in eliminateIVRemainder()
261 UseInst->replaceAllUsesWith(IVOperand); in eliminateIVUser()
389 AddVal->replaceAllUsesWith(AddInst); in splitOverflowIntrinsic()
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()
1279 TheCall->replaceAllUsesWith(UndefValue::get(TheCall->getType())); in InlineFunction()
1281 TheCall->replaceAllUsesWith(R->getReturnValue()); in InlineFunction()
1348 TheCall->replaceAllUsesWith(PHI); in InlineFunction()
1383 TheCall->replaceAllUsesWith(UndefValue::get(TheCall->getType())); in InlineFunction()
1385 TheCall->replaceAllUsesWith(Returns[0]->getReturnValue()); in InlineFunction()
1390 ReturnBB->replaceAllUsesWith(AfterCallBB); in InlineFunction()
[all …]
DBasicBlockUtils.cpp56 I.replaceAllUsesWith(UndefValue::get(I.getType())); in DeleteDeadBlock()
74 PN->replaceAllUsesWith(PN->getIncomingValue(0)); in FoldSingleEntryPHINodes()
76 PN->replaceAllUsesWith(UndefValue::get(PN->getType())); in FoldSingleEntryPHINodes()
155 BB->replaceAllUsesWith(PredBB); in MergeBlockIntoPredecessor()
194 I.replaceAllUsesWith(V); in ReplaceInstWithValue()
625 LPad->replaceAllUsesWith(PN); in SplitLandingPadPredecessors()
630 LPad->replaceAllUsesWith(Clone1); in SplitLandingPadPredecessors()
DLocal.cpp407 I->replaceAllUsesWith(UndefValue::get(I->getType())); in RecursivelyDeleteDeadPHINode()
504 PN->replaceAllUsesWith(NewVal); in MergeBasicBlockIntoOnlyPred()
517 BA->replaceAllUsesWith(ConstantExpr::getIntToPtr(Replacement, in MergeBasicBlockIntoOnlyPred()
523 PredBB->replaceAllUsesWith(DestBB); in MergeBasicBlockIntoOnlyPred()
819 BB->replaceAllUsesWith(Succ); in TryToSimplifyUncondBranchFromEmptyBlock()
873 PN->replaceAllUsesWith(OtherPN); in EliminateDuplicatePHINodes()
1156 BBI->replaceAllUsesWith(UndefValue::get(BBI->getType())); in changeToUnreachable()
1169 II->replaceAllUsesWith(NewCall); in changeToCall()
/external/llvm/lib/Target/R600/
DSITypeRewriter.cpp95 I.replaceAllUsesWith(BitCastLoad); in visitLoadInst()
141 I.replaceAllUsesWith(Builder.CreateCall(NewF, Args)); in visitCallInst()
153 I.replaceAllUsesWith(Op->getOperand(0)); in visitBitCast()
/external/llvm/lib/Transforms/IPO/
DPartialInlining.cpp84 F->replaceAllUsesWith(duplicateFunction); in unswitchFunction()
100 OldPhi->replaceAllUsesWith(retPhi); in unswitchFunction()
143 duplicateFunction->replaceAllUsesWith(F); in unswitchFunction()
DIPConstantPropagation.cpp144 AI->replaceAllUsesWith(V); in PropagateConstantsIntoArguments()
245 Call->replaceAllUsesWith(New); in PropagateConstantReturn()
270 Ins->replaceAllUsesWith(New); in PropagateConstantReturn()
DDeadArgumentElimination.cpp278 Call->replaceAllUsesWith(New); in DeleteDeadVarargs()
299 I->replaceAllUsesWith(I2); in DeleteDeadVarargs()
315 Fn.replaceAllUsesWith(ConstantExpr::getBitCast(NF, Fn.getType())); in DeleteDeadVarargs()
977 Call->replaceAllUsesWith(New); in RemoveDeadStuffFromFunction()
983 Call->replaceAllUsesWith(Constant::getNullValue(Call->getType())); in RemoveDeadStuffFromFunction()
1017 Call->replaceAllUsesWith(RetVal); in RemoveDeadStuffFromFunction()
1040 I->replaceAllUsesWith(I2); in RemoveDeadStuffFromFunction()
1047 I->replaceAllUsesWith(Constant::getNullValue(I->getType())); in RemoveDeadStuffFromFunction()
DLowerBitSets.cpp338 BAI->Mask->replaceAllUsesWith(ConstantInt::get(Int8Ty, Mask)); in allocateByteArrays()
359 BAI->ByteArray->replaceAllUsesWith(GEP); in allocateByteArrays()
363 BAI->ByteArray->replaceAllUsesWith(Alias); in allocateByteArrays()
539 CI->replaceAllUsesWith(Lowered); in buildBitSetsFromGlobals()
554 Globals[I]->replaceAllUsesWith(CombinedGlobalElemPtr); in buildBitSetsFromGlobals()
561 Globals[I]->replaceAllUsesWith(GAlias); in buildBitSetsFromGlobals()
/external/llvm/lib/Transforms/Scalar/
DCorrelatedValuePropagation.cpp88 S->replaceAllUsesWith(ReplaceWith); in processSelect()
133 P->replaceAllUsesWith(V); in processPHI()
195 C->replaceAllUsesWith(ConstantInt::getTrue(C->getContext())); in processCmp()
197 C->replaceAllUsesWith(ConstantInt::getFalse(C->getContext())); in processCmp()
DLowerAtomic.cpp38 CXI->replaceAllUsesWith(Res); in LowerAtomicCmpXchgInst()
92 RMWI->replaceAllUsesWith(Orig); in LowerAtomicRMWInst()
DMergedLoadStoreMotion.cpp312 HoistCand->replaceAllUsesWith(HoistedInst); in hoistInstruction()
315 ElseInst->replaceAllUsesWith(HoistedInst); in hoistInstruction()
509 A0->replaceAllUsesWith(ANew); in sinkStore()
511 A1->replaceAllUsesWith(ANew); in sinkStore()
/external/mesa3d/src/gallium/drivers/radeon/
DAMDILPeepholeOptimizer.cpp247 CI->replaceAllUsesWith(Val); in doIsConstCallConversionIfNeeded()
341 CI->replaceAllUsesWith(Val); in optimizeCallInst()
358 CI->replaceAllUsesWith(Val); in optimizeCallInst()
678 inst->replaceAllUsesWith(CI); in optimizeBitInsert()
837 inst->replaceAllUsesWith(CI); in optimizeBitExtract()
876 CI->replaceAllUsesWith(lhs); in expandBFI()
920 CI->replaceAllUsesWith(lhs); in expandBFM()
1031 CI->replaceAllUsesWith(nCI); in expandSigned24BitOps()
1036 CI->replaceAllUsesWith(mulOp); in expandSigned24BitOps()
1062 CI->replaceAllUsesWith(nCI); in expandSigned24BitOps()
[all …]
/external/llvm/lib/IR/
DBasicBlock.cpp77 BA->replaceAllUsesWith(ConstantExpr::getIntToPtr(Replacement, in ~BasicBlock()
302 PN->replaceAllUsesWith(PN->getIncomingValue(0)); in removePredecessor()
305 PN->replaceAllUsesWith(UndefValue::get(PN->getType())); in removePredecessor()
324 PN->replaceAllUsesWith(PNV); in removePredecessor()
DMetadata.cpp103 replaceAllUsesWith(Entry); in handleChangedMetadata()
158 void ReplaceableMetadataImpl::replaceAllUsesWith(Metadata *MD) { in replaceAllUsesWith() function in ReplaceableMetadataImpl
291 MD->replaceAllUsesWith(nullptr); in handleDeletion()
322 MD->replaceAllUsesWith(ConstantAsMetadata::get(C)); in handleRAUW()
329 MD->replaceAllUsesWith(nullptr); in handleRAUW()
335 MD->replaceAllUsesWith(nullptr); in handleRAUW()
343 MD->replaceAllUsesWith(Entry); in handleRAUW()
548 replaceAllUsesWith(UniquedNode); in replaceWithUniquedImpl()
611 Context.getReplaceableUses()->replaceAllUsesWith(Uniqued); in handleChangedOperand()
704 N->replaceAllUsesWith(nullptr); in deleteTemporary()
DAutoUpgrade.cpp713 CI->replaceAllUsesWith(Rep); in UpgradeIntrinsicCall()
730 CI->replaceAllUsesWith(Builder.CreateCall2(NewFn, CI->getArgOperand(0), in UpgradeIntrinsicCall()
736 CI->replaceAllUsesWith(Builder.CreateCall2(NewFn, in UpgradeIntrinsicCall()
744 CI->replaceAllUsesWith(Builder.CreateCall(NewFn, CI->getArgOperand(0))); in UpgradeIntrinsicCall()
751 CI->replaceAllUsesWith(Builder.CreateCall(NewFn, CI->getArgOperand(1), in UpgradeIntrinsicCall()
780 CI->replaceAllUsesWith(NewCall); in UpgradeIntrinsicCall()
800 CI->replaceAllUsesWith(NewCall); in UpgradeIntrinsicCall()
815 CI->replaceAllUsesWith(NewCall); in UpgradeIntrinsicCall()
/external/llvm/lib/Target/AArch64/
DAArch64AddressTypePromotion.cpp307 SExt->replaceAllUsesWith(Inst); in propagateSignExtension()
362 SExt->replaceAllUsesWith(SExt->getOperand(0)); in propagateSignExtension()
392 Pt->replaceAllUsesWith(Inst); in mergeSExts()
405 Inst->replaceAllUsesWith(Pt); in mergeSExts()
/external/llvm/lib/Target/NVPTX/
DNVPTXFavorNonGenericAddrSpaces.cpp130 GEP->replaceAllUsesWith( in hoistAddrSpaceCastFromGEP()
137 GEP->replaceAllUsesWith( in hoistAddrSpaceCastFromGEP()

123456