/freebsd/contrib/llvm-project/llvm/lib/Transforms/Coroutines/ |
H A D | CoroCleanup.cpp | 43 SubFn->replaceAllUsesWith(Load); in lowerSubFn() 56 II->replaceAllUsesWith(II->getArgOperand(1)); in lower() 59 II->replaceAllUsesWith(II->getArgOperand(1)); in lower() 62 II->replaceAllUsesWith(ConstantInt::getTrue(Context)); in lower() 65 II->replaceAllUsesWith( in lower() 72 II->replaceAllUsesWith(ConstantTokenNone::get(Context)); in lower() 80 II->replaceAllUsesWith(UndefValue::get(II->getType())); in lower() 99 Target->replaceAllUsesWith(NewFuncPtrStruct); in lower()
|
H A D | CoroSplit.cpp | 239 CB->replaceAllUsesWith(NewCall); in lowerAwaitSuspend() 363 CoroResults->replaceAllUsesWith( in replaceFallthroughCoroEnd() 484 End->replaceAllUsesWith(InResume ? ConstantInt::getTrue(Context) in replaceCoroEnd() 584 NewS->replaceAllUsesWith(Args.front()); in replaceRetconOrAsyncSuspendUses() 594 EVI->replaceAllUsesWith(Args[EVI->getIndices().front()]); in replaceRetconOrAsyncSuspendUses() 607 NewS->replaceAllUsesWith(Agg); in replaceRetconOrAsyncSuspendUses() 642 MappedCS->replaceAllUsesWith(SuspendResult); in replaceCoroSuspends() 701 MappedOp->replaceAllUsesWith(MappedResult); in replaceSwiftErrorOps() 1113 OldFramePtr->replaceAllUsesWith(NewFramePtr); in create() 1120 OldVFrame->replaceAllUsesWith(NewVFrame); in create() [all …]
|
H A D | CoroEarly.cpp | 78 Intrin->replaceAllUsesWith(Replacement); in lowerCoroPromise() 100 II->replaceAllUsesWith(Cond); in lowerCoroDone() 156 II->replaceAllUsesWith(NoopCoroVoidPtr); in lowerCoroNoop()
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
H A D | IntrinsicLowering.cpp | 48 CI->replaceAllUsesWith(NewCI); in ReplaceCallWith() 242 CI->replaceAllUsesWith(V); in LowerIntrinsicCall() 248 CI->replaceAllUsesWith(ConstantInt::getTrue(CI->getType())); in LowerIntrinsicCall() 252 CI->replaceAllUsesWith(LowerCTPOP(Context, CI->getArgOperand(0), CI)); in LowerIntrinsicCall() 256 CI->replaceAllUsesWith(LowerBSWAP(Context, CI->getArgOperand(0), CI)); in LowerIntrinsicCall() 260 CI->replaceAllUsesWith(LowerCTLZ(Context, CI->getArgOperand(0), CI)); in LowerIntrinsicCall() 271 CI->replaceAllUsesWith(Src); in LowerIntrinsicCall() 283 CI->replaceAllUsesWith(Constant::getNullValue(CI->getType())); in LowerIntrinsicCall() 292 CI->replaceAllUsesWith(ConstantInt::get(CI->getType(), 0)); in LowerIntrinsicCall() 299 CI->replaceAllUsesWith( in LowerIntrinsicCall() [all …]
|
H A D | AtomicExpandPass.cpp | 419 LI->replaceAllUsesWith(NewVal); in convertAtomicLoadToIntegerType() 447 RMWI->replaceAllUsesWith(NewRVal); in convertAtomicXchgToIntegerType() 499 LI->replaceAllUsesWith(Val); in expandAtomicLoadToLL() 520 LI->replaceAllUsesWith(Loaded); in expandAtomicLoadToCmpXchg() 937 AI->replaceAllUsesWith(FinalOldResult); in expandPartwordAtomicRMW() 1003 AI->replaceAllUsesWith(FinalOldResult); in widenPartwordAtomicRMW() 1128 CI->replaceAllUsesWith(Res); in expandPartwordCmpXchg() 1141 I->replaceAllUsesWith(Loaded); in expandAtomicOpToLLSC() 1167 AI->replaceAllUsesWith(FinalOldResult); in expandAtomicRMWToMaskedIntrinsic() 1195 CI->replaceAllUsesWith(Res); in expandAtomicCmpXchgToMaskedIntrinsic() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
H A D | CorrelatedValuePropagation.cpp | 201 P->replaceAllUsesWith(CommonValue); in simplifyCommonValuePhi() 273 P->replaceAllUsesWith(V); in processPHI() 325 Cmp->replaceAllUsesWith(Res); in constantFoldCmp() 509 II->replaceAllUsesWith(X); in processAbsIntrinsic() 520 II->replaceAllUsesWith(NegX); in processAbsIntrinsic() 549 CI->replaceAllUsesWith(ConstantInt::get(CI->getType(), 1)); in processCmpIntrinsic() 555 CI->replaceAllUsesWith(ConstantInt::getSigned(CI->getType(), -1)); in processCmpIntrinsic() 561 CI->replaceAllUsesWith(ConstantInt::get(CI->getType(), 0)); in processCmpIntrinsic() 579 MM->replaceAllUsesWith(MM->getLHS()); in processMinMaxIntrinsic() 585 MM->replaceAllUsesWith(MM->getRHS()); in processMinMaxIntrinsic() [all …]
|
H A D | BDCE.cpp | 125 I.replaceAllUsesWith( in bitTrackingDCE() 156 BO->replaceAllUsesWith(BO->getOperand(0)); in bitTrackingDCE()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/DirectX/ |
H A D | DXILIntrinsicExpansion.cpp | 67 Orig->replaceAllUsesWith(MaxCall); in expandAbs() 98 Orig->replaceAllUsesWith(Result); in expandIntegerDot() 120 Orig->replaceAllUsesWith(Exp2Call); in expandExpIntrinsic() 136 Orig->replaceAllUsesWith(Cond); in expandAnyIntrinsic() 154 Orig->replaceAllUsesWith(Result); in expandAnyIntrinsic() 169 Orig->replaceAllUsesWith(Result); in expandLerpIntrinsic() 192 Orig->replaceAllUsesWith(Result); in expandLogIntrinsic() 215 Orig->replaceAllUsesWith(Exp2Call); in expandPowIntrinsic() 259 Orig->replaceAllUsesWith(MinCall); in expandClampIntrinsic()
|
H A D | DXILPrepare.cpp | 196 I.replaceAllUsesWith(Builder.CreateFSub(Zero, In)); in runOnModule() 207 LI->replaceAllUsesWith( in runOnModule() 218 SI->replaceAllUsesWith( in runOnModule()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
H A D | AMDGPULowerKernelAttributes.cpp | 232 ICmp->replaceAllUsesWith(llvm::ConstantInt::getTrue(ICmp->getType())); in processUse() 242 Remainder->replaceAllUsesWith(Constant::getNullValue(Remainder->getType())); in processUse() 290 UMin->replaceAllUsesWith(ConstantFoldIntegerCast( in processUse() 293 UMin->replaceAllUsesWith(ZextGroupSize); in processUse() 313 GroupSize->replaceAllUsesWith( in processUse()
|
H A D | AMDGPULowerKernelArguments.cpp | 166 Arg.replaceAllUsesWith(CastOffsetPtr); in lowerKernelArguments() 270 Arg.replaceAllUsesWith(NewVal); in lowerKernelArguments() 274 Arg.replaceAllUsesWith(Shuf); in lowerKernelArguments() 277 Arg.replaceAllUsesWith(Load); in lowerKernelArguments()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/ |
H A D | VPlanTransforms.cpp | 95 VPV->replaceAllUsesWith(NewRecipe->getVPSingleValue()); in VPInstructionsToVPRecipes() 324 PredRecipe->replaceAllUsesWith(PHIRecipe); in createReplicateRegion() 447 FindMyCast->replaceAllUsesWith(IV); in removeRedundantInductionCasts() 481 WidenNewIV->replaceAllUsesWith(WidenOriginalIV); in removeRedundantCanonicalIVs() 603 PtrIV->replaceAllUsesWith(Recipe); in legalizeAndOptimizeInductions() 626 WideIV->replaceAllUsesWith(Steps); in legalizeAndOptimizeInductions() 648 ExpR->replaceAllUsesWith(I.first->second); in removeRedundantExpandSCEVRecipes() 871 FOR->replaceAllUsesWith(RecurSplice); in adjustFixedOrderRecurrences() 999 Blend->replaceAllUsesWith(Inc0); in simplifyRecipe() 1010 Trunc->replaceAllUsesWith(A); in simplifyRecipe() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
H A D | IntegerDivision.cpp | 370 Rem->replaceAllUsesWith(Remainder); in expandRemainder() 388 Rem->replaceAllUsesWith(Remainder); in expandRemainder() 424 Div->replaceAllUsesWith(Quotient); in expandDivision() 442 Div->replaceAllUsesWith(Quotient); in expandDivision() 493 Rem->replaceAllUsesWith(Trunc); in expandRemainderUpTo32Bits() 539 Rem->replaceAllUsesWith(Trunc); in expandRemainderUpTo64Bits() 588 Div->replaceAllUsesWith(Trunc); in expandDivisionUpTo32Bits() 634 Div->replaceAllUsesWith(Trunc); in expandDivisionUpTo64Bits()
|
H A D | SimplifyIndVar.cpp | 275 ICmp->replaceAllUsesWith(ConstantInt::getBool(ICmp->getContext(), *Ev)); in eliminateIVComparison() 314 SDiv->replaceAllUsesWith(UDiv); in eliminateSDiv() 331 Rem->replaceAllUsesWith(URem); in replaceSRemWithURem() 341 Rem->replaceAllUsesWith(Rem->getOperand(0)); in replaceRemWithNumerator() 355 Rem->replaceAllUsesWith(Sel); in replaceRemWithNumeratorOrZero() 437 EVI->replaceAllUsesWith(ConstantInt::getFalse(WO->getContext())); in eliminateOverflowIntrinsic() 440 EVI->replaceAllUsesWith(NewResult); in eliminateOverflowIntrinsic() 470 SI->replaceAllUsesWith(BO); in eliminateSaturatingIntrinsic() 581 ICI->replaceAllUsesWith(NewCmp); in eliminateTrunc() 586 TI->replaceAllUsesWith(PoisonValue::get(TI->getType())); in eliminateTrunc() [all …]
|
H A D | InlineFunction.cpp | 203 OuterPHI->replaceAllUsesWith(InnerPHI); in getInnerResumeDest() 211 CallerLPad->replaceAllUsesWith(InnerEHValuesPHI); in getInnerResumeDest() 759 I->replaceAllUsesWith(Replacement); in HandleInlinedEHPad() 980 I->replaceAllUsesWith(NewInst); in PropagateOperandBundles() 1062 TempM->replaceAllUsesWith(NewM); in clone() 2114 CI->replaceAllUsesWith(NewCall); in inlineRetainOrClaimRVCalls() 2440 ICS->replaceAllUsesWith(NewI); in InlineFunction() 2497 IntrinsicCall->replaceAllUsesWith(ConvergenceControlToken); in InlineFunction() 2597 CI->replaceAllUsesWith(NewCI); in InlineFunction() 2898 CB.replaceAllUsesWith(PoisonValue::get(CB.getType())); in InlineFunction() [all …]
|
H A D | LowerAtomic.cpp | 36 CXI->replaceAllUsesWith(Res); in lowerAtomicCmpXchgInst() 113 RMWI->replaceAllUsesWith(Orig); in lowerAtomicRMWInst()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/HipStdPar/ |
H A D | HipStdPar.cpp | 63 ToErase.replaceAllUsesWith(PoisonValue::get(ToErase.getType())); in eraseFromModule() 289 F.replaceAllUsesWith(R); in run() 307 F->replaceAllUsesWith(LibcFree.getCallee()); in run()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/ |
H A D | DeadArgumentElimination.cpp | 220 CB->replaceAllUsesWith(NewCB); in deleteDeadVarargs() 241 I->replaceAllUsesWith(&*I2); in deleteDeadVarargs() 252 F.replaceAllUsesWith(NF); in deleteDeadVarargs() 304 Arg.replaceAllUsesWith(PoisonValue::get(Arg.getType())); in removeDeadArgumentsFromCallers() 960 CB.replaceAllUsesWith(NewCB); in removeDeadStuffFromFunction() 966 CB.replaceAllUsesWith(PoisonValue::get(CB.getType())); in removeDeadStuffFromFunction() 1000 CB.replaceAllUsesWith(RetVal); in removeDeadStuffFromFunction() 1024 I->replaceAllUsesWith(&*I2); in removeDeadStuffFromFunction() 1031 I->replaceAllUsesWith(PoisonValue::get(I->getType())); in removeDeadStuffFromFunction()
|
H A D | ExtractGV.cpp | 126 GA.replaceAllUsesWith(Declaration); in run() 144 IF.replaceAllUsesWith(Declaration); in run()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/ObjCARC/ |
H A D | ObjCARC.h | 50 CI->replaceAllUsesWith(OldArg); in EraseInstruction() 147 It->second->replaceAllUsesWith(NewCall); in eraseInst()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/NVPTX/ |
H A D | NVVMReflect.cpp | 185 Call->replaceAllUsesWith(ConstantInt::get(Call->getType(), ReflectVal)); in runNVVMReflect() 200 I->replaceAllUsesWith(C); in runNVVMReflect()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/AggressiveInstCombine/ |
H A D | AggressiveInstCombine.cpp | 179 Phi.replaceAllUsesWith(Builder.CreateCall(F, {ShVal0, ShVal1, ShAmt})); in foldGuardedFunnelShift() 278 I.replaceAllUsesWith(Zext); in foldAnyOrAllBitsSet() 339 I.replaceAllUsesWith(Builder.CreateCall(Func, {Root})); in tryToRecognizePopCount() 407 I.replaceAllUsesWith(Builder.CreateSExt(Sat, IntTy)); in tryToFPToSat() 439 Call->replaceAllUsesWith(NewSqrt); in foldSqrt() 611 LI->replaceAllUsesWith(ZExtOrTrunc); in tryToRecognizeTableBasedCttz() 834 I.replaceAllUsesWith(NewOp); in foldConsecutiveLoads() 923 I.replaceAllUsesWith(Ca); in foldPatternedLoads() 1094 CI->replaceAllUsesWith(Phi); in inlineCompare() 1177 Call->replaceAllUsesWith(PHI); in foldMemChr()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/ |
H A D | X86LowerAMXType.cpp | 259 Bitcast->replaceAllUsesWith(NewInst); in combineLoadBitcast() 297 Bitcast->replaceAllUsesWith(Vec); in combineBitcastStore() 335 Bitcast->replaceAllUsesWith(NewInst); in transformBitcast() 354 Bitcast->replaceAllUsesWith(NewInst); in transformBitcast() 910 ACI->replaceAllUsesWith(NewPN); in optimizeAMXCastFromPhi() 992 Cast->replaceAllUsesWith(NewInst); in combineLoadCast() 1071 II->replaceAllUsesWith(Inst->getOperand(0)); in combineAMXcast() 1180 AMXCast->replaceAllUsesWith(NewInst); in transformAMXCast() 1201 AMXCast->replaceAllUsesWith(NewInst); in transformAMXCast()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/ |
H A D | SVEIntrinsicOpts.cpp | 183 PTrue->replaceAllUsesWith(ConvertFromSVBool); in coalescePTrueIntrinsicCalls() 185 PTrue->replaceAllUsesWith(MostEncompassingPTrue); in coalescePTrueIntrinsicCalls() 388 BitCast->replaceAllUsesWith(LoadPred); in optimizePredicateLoad()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/BPF/ |
H A D | BPFCheckAndAdjustIR.cpp | 129 Call->replaceAllUsesWith(Arg); in removePassThroughBuiltin() 169 Call->replaceAllUsesWith(ICmp); in removeCompareBuiltin() 305 ICmp->replaceAllUsesWith(Replacement); in sinkMinMaxInBB() 375 Call->replaceAllUsesWith(Load); in unrollGEPLoad()
|