Home
last modified time | relevance | path

Searched refs:replaceAllUsesWith (Results 1 – 25 of 149) 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(ConstantInt::get(CI->getType(), 0)); in LowerIntrinsicCall()
[all …]
DAtomicExpandPass.cpp230 LI->replaceAllUsesWith(NewVal); in convertAtomicLoadToIntegerType()
261 LI->replaceAllUsesWith(Val); in expandAtomicLoadToLL()
279 LI->replaceAllUsesWith(Loaded); in expandAtomicLoadToCmpXchg()
445 I->replaceAllUsesWith(Loaded); in expandAtomicOpToLLSC()
570 EV->replaceAllUsesWith(Loaded); in expandAtomicCmpXchg()
572 EV->replaceAllUsesWith(Success); in expandAtomicCmpXchg()
588 CI->replaceAllUsesWith(Res); in expandAtomicCmpXchg()
686 AI->replaceAllUsesWith(NewLoaded); in expandAtomicRMWToCmpXchg()
/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()
/external/llvm/lib/Target/AMDGPU/
DSITypeRewriter.cpp89 I.replaceAllUsesWith(BitCastLoad); in visitLoadInst()
135 I.replaceAllUsesWith(Builder.CreateCall(NewF, Args)); in visitCallInst()
147 I.replaceAllUsesWith(Op->getOperand(0)); in visitBitCast()
/external/llvm/lib/Transforms/Utils/
DInlineFunction.cpp149 OuterPHI->replaceAllUsesWith(InnerPHI); in getInnerResumeDest()
156 CallerLPad->replaceAllUsesWith(InnerEHValuesPHI); in getInnerResumeDest()
226 CI->replaceAllUsesWith(II); in HandleCallsInBlockInlinedThroughInvoke()
362 I->replaceAllUsesWith(Replacement); in HandleInlinedEHPad()
452 TempM->replaceAllUsesWith(NewM); in CloneAliasScopeMetadata()
1240 I->replaceAllUsesWith(NewI); in InlineFunction()
1454 I->replaceAllUsesWith(NewInst); in InlineFunction()
1547 TheCall->replaceAllUsesWith(UndefValue::get(TheCall->getType())); in InlineFunction()
1549 TheCall->replaceAllUsesWith(R->getReturnValue()); in InlineFunction()
1617 TheCall->replaceAllUsesWith(PHI); in InlineFunction()
[all …]
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.cpp178 ICmp->replaceAllUsesWith(ConstantInt::getTrue(ICmp->getContext())); in eliminateIVComparison()
182 ICmp->replaceAllUsesWith(ConstantInt::getFalse(ICmp->getContext())); in eliminateIVComparison()
256 Rem->replaceAllUsesWith(Rem->getOperand(0)); in eliminateIVRemainder()
274 Rem->replaceAllUsesWith(Sel); in eliminateIVRemainder()
341 UseInst->replaceAllUsesWith(IVOperand); in eliminateIdentitySCEV()
469 AddVal->replaceAllUsesWith(AddInst); in splitOverflowIntrinsic()
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()
154 BB->replaceAllUsesWith(PredBB); in MergeBlockIntoPredecessor()
193 I.replaceAllUsesWith(V); in ReplaceInstWithValue()
633 LPad->replaceAllUsesWith(PN); in SplitLandingPadPredecessors()
638 LPad->replaceAllUsesWith(Clone1); in SplitLandingPadPredecessors()
DLocal.cpp415 I->replaceAllUsesWith(UndefValue::get(I->getType())); in RecursivelyDeleteDeadPHINode()
459 I->replaceAllUsesWith(SimpleV); in simplifyAndDCEInstruction()
559 PN->replaceAllUsesWith(NewVal); in MergeBasicBlockIntoOnlyPred()
572 BA->replaceAllUsesWith(ConstantExpr::getIntToPtr(Replacement, in MergeBasicBlockIntoOnlyPred()
578 PredBB->replaceAllUsesWith(DestBB); in MergeBasicBlockIntoOnlyPred()
875 BB->replaceAllUsesWith(Succ); in TryToSimplifyUncondBranchFromEmptyBlock()
923 PN->replaceAllUsesWith(*Inserted.first); in EliminateDuplicatePHINodes()
1213 BBI->replaceAllUsesWith(UndefValue::get(BBI->getType())); in changeToUnreachable()
1229 II->replaceAllUsesWith(NewCall); in changeToCall()
1364 TI->replaceAllUsesWith(NewTI); in removeUnwindEdge()
/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()
307 Fn.replaceAllUsesWith(ConstantExpr::getBitCast(NF, Fn.getType())); in DeleteDeadVarargs()
969 Call->replaceAllUsesWith(New); in RemoveDeadStuffFromFunction()
975 Call->replaceAllUsesWith(Constant::getNullValue(Call->getType())); in RemoveDeadStuffFromFunction()
1008 Call->replaceAllUsesWith(RetVal); in RemoveDeadStuffFromFunction()
1031 I->replaceAllUsesWith(&*I2); in RemoveDeadStuffFromFunction()
1038 I->replaceAllUsesWith(Constant::getNullValue(I->getType())); in RemoveDeadStuffFromFunction()
DLowerBitSets.cpp378 BAI->Mask->replaceAllUsesWith(ConstantInt::get(Int8Ty, Mask)); in allocateByteArrays()
399 BAI->ByteArray->replaceAllUsesWith(GEP); in allocateByteArrays()
403 BAI->ByteArray->replaceAllUsesWith(Alias); in allocateByteArrays()
580 Globals[I]->replaceAllUsesWith(CombinedGlobalElemPtr); in buildBitSetsFromGlobalVariables()
588 Globals[I]->replaceAllUsesWith(GAlias); in buildBitSetsFromGlobalVariables()
619 CI->replaceAllUsesWith(Lowered); in lowerBitSetCalls()
818 Functions[I]->replaceAllUsesWith(CombinedGlobalElemPtr); in buildBitSetsFromFunctions()
826 Functions[I]->replaceAllUsesWith(GAlias); in buildBitSetsFromFunctions()
/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()
307 PN->replaceAllUsesWith(PN->getIncomingValue(0)); in removePredecessor()
310 PN->replaceAllUsesWith(UndefValue::get(PN->getType())); in removePredecessor()
329 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()
577 replaceAllUsesWith(UniquedNode); in replaceWithUniquedImpl()
640 Context.getReplaceableUses()->replaceAllUsesWith(Uniqued); in handleChangedOperand()
733 N->replaceAllUsesWith(nullptr); in deleteTemporary()
DAutoUpgrade.cpp687 CI->replaceAllUsesWith(Rep); in UpgradeIntrinsicCall()
716 CI->replaceAllUsesWith(Builder.CreateCall(NewFn, Args)); in UpgradeIntrinsicCall()
725 CI->replaceAllUsesWith(Builder.CreateCall( in UpgradeIntrinsicCall()
731 CI->replaceAllUsesWith(Builder.CreateCall( in UpgradeIntrinsicCall()
737 CI->replaceAllUsesWith(Builder.CreateCall(NewFn, {CI->getArgOperand(0)})); in UpgradeIntrinsicCall()
744 CI->replaceAllUsesWith( in UpgradeIntrinsicCall()
769 CI->replaceAllUsesWith(NewCall); in UpgradeIntrinsicCall()
789 CI->replaceAllUsesWith(NewCall); in UpgradeIntrinsicCall()
/external/llvm/lib/Target/AArch64/
DAArch64AddressTypePromotion.cpp309 SExt->replaceAllUsesWith(Inst); in propagateSignExtension()
364 SExt->replaceAllUsesWith(SExt->getOperand(0)); in propagateSignExtension()
394 Pt->replaceAllUsesWith(Inst); in mergeSExts()
407 Inst->replaceAllUsesWith(Pt); in mergeSExts()
/external/llvm/lib/Transforms/Scalar/
DCorrelatedValuePropagation.cpp96 S->replaceAllUsesWith(ReplaceWith); in processSelect()
161 P->replaceAllUsesWith(V); in processPHI()
213 C->replaceAllUsesWith(ConstantInt::getTrue(C->getContext())); in processCmp()
215 C->replaceAllUsesWith(ConstantInt::getFalse(C->getContext())); in processCmp()
DLowerAtomic.cpp38 CXI->replaceAllUsesWith(Res); in LowerAtomicCmpXchgInst()
92 RMWI->replaceAllUsesWith(Orig); in LowerAtomicRMWInst()
DMergedLoadStoreMotion.cpp310 HoistCand->replaceAllUsesWith(HoistedInst); in hoistInstruction()
313 ElseInst->replaceAllUsesWith(HoistedInst); in hoistInstruction()
493 A0->replaceAllUsesWith(ANew); in sinkStore()
495 A1->replaceAllUsesWith(ANew); in sinkStore()
/external/llvm/lib/Target/NVPTX/
DNVPTXLowerKernelArgs.cpp156 Arg->replaceAllUsesWith(AllocA); in handleByValParam()
188 Ptr->replaceAllUsesWith(PtrInGeneric); in markPointerAsGlobal()
DNVPTXFavorNonGenericAddrSpaces.cpp172 GEP->replaceAllUsesWith(NewASC); in hoistAddrSpaceCastFromGEP()
210 BC->replaceAllUsesWith(NewBC); in hoistAddrSpaceCastFromBitCast()

123456