Home
last modified time | relevance | path

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

12345678910>>...14

/llvm-project-15.0.7/llvm/lib/Transforms/Coroutines/
H A DCoroCleanup.cpp44 SubFn->replaceAllUsesWith(Load); in lowerSubFn()
57 II->replaceAllUsesWith(II->getArgOperand(1)); in lower()
60 II->replaceAllUsesWith(II->getArgOperand(1)); in lower()
63 II->replaceAllUsesWith(ConstantInt::getTrue(Context)); in lower()
66 II->replaceAllUsesWith( in lower()
73 II->replaceAllUsesWith(ConstantTokenNone::get(Context)); in lower()
81 II->replaceAllUsesWith(UndefValue::get(II->getType())); in lower()
100 Target->replaceAllUsesWith(NewFuncPtrStruct); in lower()
H A DCoroSplit.cpp439 S->replaceAllUsesWith(PN); in createResumeEntryBlock()
543 NewS->replaceAllUsesWith(Args.front()); in replaceRetconOrAsyncSuspendUses()
565 NewS->replaceAllUsesWith(Agg); in replaceRetconOrAsyncSuspendUses()
665 MappedOp->replaceAllUsesWith(MappedResult); in replaceSwiftErrorOps()
1028 OldVFrame->replaceAllUsesWith(NewVFrame); in create()
1105 CA->replaceAllUsesWith( in replaceFrameSizeAndAlignment()
1121 CS->replaceAllUsesWith(SizeConstant); in replaceFrameSizeAndAlignment()
1403 CoroBegin->replaceAllUsesWith(VFrame); in handleNoSuspendCoroutine()
1621 ResumeIntrinsic->replaceAllUsesWith(Val); in replaceAsyncResumeFunction()
2036 Cast->replaceAllUsesWith(Fn); in replacePrepare()
[all …]
H A DCoroEarly.cpp77 Intrin->replaceAllUsesWith(Replacement); in lowerCoroPromise()
99 II->replaceAllUsesWith(Cond); in lowerCoroDone()
134 II->replaceAllUsesWith(NoopCoroVoidPtr); in lowerCoroNoop()
/llvm-project-15.0.7/llvm/lib/CodeGen/
H A DIntrinsicLowering.cpp48 CI->replaceAllUsesWith(NewCI); in ReplaceCallWith()
242 CI->replaceAllUsesWith(V); in LowerIntrinsicCall()
266 CI->replaceAllUsesWith(Src); in LowerIntrinsicCall()
287 CI->replaceAllUsesWith(ConstantInt::get(CI->getType(), 0)); in LowerIntrinsicCall()
294 CI->replaceAllUsesWith( in LowerIntrinsicCall()
300 CI->replaceAllUsesWith( in LowerIntrinsicCall()
322 CI->replaceAllUsesWith(ConstantInt::get(CI->getType(), 1)); in LowerIntrinsicCall()
328 CI->replaceAllUsesWith(CI->getOperand(0)); in LowerIntrinsicCall()
436 CI->replaceAllUsesWith(ConstantInt::get(CI->getType(), 1)); in LowerIntrinsicCall()
441 CI->replaceAllUsesWith(UndefValue::get(CI->getType())); in LowerIntrinsicCall()
[all …]
H A DAtomicExpandPass.cpp373 LI->replaceAllUsesWith(NewVal); in convertAtomicLoadToIntegerType()
455 LI->replaceAllUsesWith(Val); in expandAtomicLoadToLL()
476 LI->replaceAllUsesWith(Loaded); in expandAtomicLoadToCmpXchg()
1006 CI->replaceAllUsesWith(Res); in expandPartwordCmpXchg()
1019 I->replaceAllUsesWith(Loaded); in expandAtomicOpToLLSC()
1072 CI->replaceAllUsesWith(Res); in expandAtomicCmpXchgToMaskedIntrinsic()
1162 CI->replaceAllUsesWith(Res); in convertCmpXchgToIntegerType()
1406 CI->replaceAllUsesWith(Res); in expandAtomicCmpXchg()
1537 AI->replaceAllUsesWith(Loaded); in expandAtomicRMWToCmpXchg()
1902 I->replaceAllUsesWith(V); in expandAtomicOpToLibcall()
[all …]
/llvm-project-15.0.7/llvm/lib/Transforms/Scalar/
H A DCorrelatedValuePropagation.cpp280 P->replaceAllUsesWith(V); in processPHI()
355 Cmp->replaceAllUsesWith(TorF); in constantFoldCmp()
515 II->replaceAllUsesWith(X); in processAbsIntrinsic()
547 II->replaceAllUsesWith(NegX); in processAbsIntrinsic()
587 WO->replaceAllUsesWith(NewI); in processOverflowIntrinsic()
607 SI->replaceAllUsesWith(BinOp); in processSaturatingInst()
859 SDI->replaceAllUsesWith(Res); in processSRem()
916 SDI->replaceAllUsesWith(Res); in processSDiv()
967 SDI->replaceAllUsesWith(BO); in processAShr()
986 SDI->replaceAllUsesWith(ZExt); in processSExt()
[all …]
/llvm-project-15.0.7/llvm/unittests/IR/
H A DValueHandleTest.cpp48 BitcastV->replaceAllUsesWith(ConstantV); in TEST_F()
103 BitcastV->replaceAllUsesWith(ConstantV); in TEST_F()
179 BitcastV->replaceAllUsesWith(ConstantV); in TEST_F()
305 BitcastV->replaceAllUsesWith(ConstantV); in TEST_F()
326 getValPtr()->replaceAllUsesWith( in TEST_F()
385 BitcastV->replaceAllUsesWith(ConstantV); in TEST_F()
490 BitcastV->replaceAllUsesWith(ConstantV); in TEST_F()
528 BitcastV->replaceAllUsesWith(ConstantV); in TEST_F()
546 BitcastV->replaceAllUsesWith(ConstantV); in TEST_F()
569 BitcastV->replaceAllUsesWith(ConstantV); in TEST_F()
H A DValueMapTest.cpp51 this->BitcastV->replaceAllUsesWith(this->AddV.get()); in TYPED_TEST()
170 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()
/llvm-project-15.0.7/llvm/tools/llvm-reduce/deltas/
H A DReduceArguments.cpp44 CI->replaceAllUsesWith(NewCI); in replaceFunctionCalls()
93 I->replaceAllUsesWith(getDefaultValue(I->getType())); in extractArgumentsFromModule()
115 F->replaceAllUsesWith(ConstantExpr::getBitCast(ClonedFunc, F->getType())); in extractArgumentsFromModule()
H A DReduceGlobalVars.cpp44 GV.replaceAllUsesWith(getDefaultValue(GV.getType())); in extractGVsFromModule()
53 Inst->replaceAllUsesWith(getDefaultValue(Inst->getType())); in extractGVsFromModule()
H A DReduceBasicBlocks.cpp47 Term->replaceAllUsesWith(getDefaultValue(Term->getType())); in replaceBranchTerminator()
137 I.replaceAllUsesWith(getDefaultValue(I.getType())); in extractBasicBlocksFromModule()
/llvm-project-15.0.7/llvm/examples/IRTransforms/
H A DSimplifyCFG.cpp88 I.replaceAllUsesWith(UndefValue::get(I.getType())); in removeDeadBlocks_v1()
282 BB.replaceAllUsesWith(Pred); in mergeIntoSinglePredecessor_v1()
285 PN.replaceAllUsesWith(PN.getIncomingValue(0)); in mergeIntoSinglePredecessor_v1()
333 BB.replaceAllUsesWith(Pred); in mergeIntoSinglePredecessor_v2()
336 PN.replaceAllUsesWith(PN.getIncomingValue(0)); in mergeIntoSinglePredecessor_v2()
/llvm-project-15.0.7/llvm/lib/Target/AMDGPU/
H A DAMDGPULowerKernelArguments.cpp116 Arg.replaceAllUsesWith(CastOffsetPtr); in runOnFunction()
223 Arg.replaceAllUsesWith(NewVal); in runOnFunction()
227 Arg.replaceAllUsesWith(Shuf); in runOnFunction()
230 Arg.replaceAllUsesWith(Load); in runOnFunction()
H A DAMDGPULowerKernelAttributes.cpp185 UMin->replaceAllUsesWith(ConstantExpr::getIntegerCast( in processUse()
188 UMin->replaceAllUsesWith(ZextGroupSize); in processUse()
207 GroupSize->replaceAllUsesWith( in processUse()
/llvm-project-15.0.7/llvm/lib/Transforms/Utils/
H A DIntegerDivision.cpp393 Rem->replaceAllUsesWith(Remainder); in expandRemainder()
411 Rem->replaceAllUsesWith(Remainder); in expandRemainder()
452 Div->replaceAllUsesWith(Quotient); in expandDivision()
470 Div->replaceAllUsesWith(Quotient); in expandDivision()
521 Rem->replaceAllUsesWith(Trunc); in expandRemainderUpTo32Bits()
569 Rem->replaceAllUsesWith(Trunc); in expandRemainderUpTo64Bits()
618 Div->replaceAllUsesWith(Trunc); in expandDivisionUpTo32Bits()
667 Div->replaceAllUsesWith(Trunc); in expandDivisionUpTo64Bits()
H A DSimplifyIndVar.cpp330 SDiv->replaceAllUsesWith(UDiv); in eliminateSDiv()
346 Rem->replaceAllUsesWith(URem); in replaceSRemWithURem()
369 Rem->replaceAllUsesWith(Sel); in replaceRemWithNumeratorOrZero()
482 SI->replaceAllUsesWith(BO); in eliminateSaturatingIntrinsic()
591 ICI->replaceAllUsesWith(NewICI); in eliminateTrunc()
671 I->replaceAllUsesWith(Invariant); in replaceIVUserWithLoopInvariant()
706 CI->replaceAllUsesWith(IVOperand); in replaceFloatIVWithIntegerIV()
754 UseInst->replaceAllUsesWith(IVOperand); in eliminateIdentitySCEV()
1658 User->replaceAllUsesWith(WideBO); in widenWithVariantUse()
1673 User->replaceAllUsesWith(TruncPN); in widenWithVariantUse()
[all …]
H A DLowerAtomic.cpp37 CXI->replaceAllUsesWith(Res); in lowerAtomicCmpXchgInst()
94 RMWI->replaceAllUsesWith(Orig); in lowerAtomicRMWInst()
/llvm-project-15.0.7/llvm/lib/Target/DirectX/
H A DDXILPrepare.cpp125 I.replaceAllUsesWith(Builder.CreateFSub(Zero, In)); in runOnModule()
139 LI->replaceAllUsesWith( in runOnModule()
150 SI->replaceAllUsesWith( in runOnModule()
/llvm-project-15.0.7/llvm/lib/Transforms/IPO/
H A DDeadArgumentElimination.cpp213 CB->replaceAllUsesWith(NewCB); in deleteDeadVarargs()
234 I->replaceAllUsesWith(&*I2); in deleteDeadVarargs()
245 F.replaceAllUsesWith(ConstantExpr::getBitCast(NF, F.getType())); in deleteDeadVarargs()
297 Arg.replaceAllUsesWith(PoisonValue::get(Arg.getType())); in removeDeadArgumentsFromCallers()
946 CB.replaceAllUsesWith(NewCB); in removeDeadStuffFromFunction()
952 CB.replaceAllUsesWith(PoisonValue::get(CB.getType())); in removeDeadStuffFromFunction()
986 CB.replaceAllUsesWith(RetVal); in removeDeadStuffFromFunction()
1010 I->replaceAllUsesWith(&*I2); in removeDeadStuffFromFunction()
1017 I->replaceAllUsesWith(PoisonValue::get(I->getType())); in removeDeadStuffFromFunction()
/llvm-project-15.0.7/llvm/lib/Transforms/Vectorize/
H A DVPlanTransforms.cpp40 VPV->replaceAllUsesWith(&DummyValue); in VPInstructionsToVPRecipes()
91 VPV->replaceAllUsesWith(NewRecipe->getVPSingleValue()); in VPInstructionsToVPRecipes()
327 FindMyCast->replaceAllUsesWith(IV); in removeRedundantInductionCasts()
357 WidenNewIV->replaceAllUsesWith(WidenOriginalIV); in removeRedundantCanonicalIVs()
429 ExpR->replaceAllUsesWith(I.first->second); in removeRedundantExpandSCEVRecipes()
/llvm-project-15.0.7/llvm/lib/Target/BPF/
H A DBPFCheckAndAdjustIR.cpp118 Call->replaceAllUsesWith(Arg); in removePassThroughBuiltin()
158 Call->replaceAllUsesWith(ICmp); in removeCompareBuiltin()
/llvm-project-15.0.7/mlir/lib/Dialect/SCF/Transforms/
H A DForToWhile.cpp76 barg.value().replaceAllUsesWith(afterBlock->getArgument(barg.index())); in matchAndRewrite()
94 arg.value().replaceAllUsesWith(whileOp.getResult(arg.index() + 1)); in matchAndRewrite()
/llvm-project-15.0.7/llvm/lib/Transforms/ObjCARC/
H A DObjCARC.h50 CI->replaceAllUsesWith(OldArg); in EraseInstruction()
145 It->second->replaceAllUsesWith(NewCall); in eraseInst()
/llvm-project-15.0.7/llvm/lib/Target/SPIRV/
H A DSPIRVEmitIntrinsics.cpp212 I.replaceAllUsesWith(NewI); in visitGetElementPtrInst()
222 I.replaceAllUsesWith(NewI); in visitBitCastInst()
235 I.replaceAllUsesWith(NewI); in visitInsertElementInst()
248 I.replaceAllUsesWith(NewI); in visitExtractElementInst()
278 I.replaceAllUsesWith(NewI); in visitExtractValueInst()
391 I->replaceAllUsesWith(NewOp); in processInstrAfterVisit()
/llvm-project-15.0.7/llvm/lib/Target/X86/
H A DX86LowerAMXType.cpp250 Bitcast->replaceAllUsesWith(NewInst); in combineLoadBitcast()
288 Bitcast->replaceAllUsesWith(Vec); in combineBitcastStore()
326 Bitcast->replaceAllUsesWith(NewInst); in transformBitcast()
344 Bitcast->replaceAllUsesWith(NewInst); in transformBitcast()
900 ACI->replaceAllUsesWith(NewPN); in optimizeAMXCastFromPhi()
964 Cast->replaceAllUsesWith(NewInst); in combineLoadCast()
1039 II->replaceAllUsesWith(Inst->getOperand(0)); in combineAMXcast()
1139 AMXCast->replaceAllUsesWith(NewInst); in transformAMXCast()
1159 AMXCast->replaceAllUsesWith(NewInst); in transformAMXCast()

12345678910>>...14