Home
last modified time | relevance | path

Searched refs:replaceUsesOfWith (Results 1 – 25 of 49) sorted by relevance

12

/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DCallPromotionUtils.cpp121 U->replaceUsesOfWith(OrigInst, Phi); in createRetPHINode()
188 U->replaceUsesOfWith(&CB, Cast); in createRetBitCast()
309 NewBitCast->replaceUsesOfWith(OrigInst, NewInst); in versionCallSiteWithCond()
320 NewRet->replaceUsesOfWith(Ret->getReturnValue(), NewRetVal); in versionCallSiteWithCond()
H A DDemoteRegToStack.cpp96 U->replaceUsesOfWith(&I, V); in DemoteRegToStack()
178 User->replaceUsesOfWith(P, V); in DemotePHIToStack()
H A DFlattenCFG.cpp301 PBI->replaceUsesOfWith(CC, NC); in FlattenParallelAndOr()
497 PBI->replaceUsesOfWith(PBI->getCondition(), NC); in MergeIfRegion()
H A DCodeExtractor.cpp432 Pred->getTerminator()->replaceUsesOfWith(CommonExitBlock, NewExitBlock); in findOrCreateBlockForHoisting()
574 I->replaceUsesOfWith(I->getOperand(1), CastI); in findAllocas()
714 TI->replaceUsesOfWith(OldPred, NewBB); in severSplitPHINodesOfEntry()
775 PredBB->getTerminator()->replaceUsesOfWith(ExitBB, NewBB); in severSplitPHINodesOfExits()
1056 inst->replaceUsesOfWith(inputs[i], RewriteVal); in constructFunction()
1080 I->replaceUsesOfWith(header, newHeader); in constructFunction()
1283 inst->replaceUsesOfWith(outputs[i], load); in emitCallAndSwitchStatement()
H A DUnifyLoopExits.cpp137 U->replaceUsesOfWith(Def, NewPhi); in INITIALIZE_PASS_DEPENDENCY()
H A DLoopVersioning.cpp155 U->replaceUsesOfWith(Inst, PN); in addPHINodes()
H A DBreakCriticalEdges.cpp405 Src->getTerminator()->replaceUsesOfWith(Target, DirectSucc); in SplitIndirectBrCriticalEdges()
H A DSimplifyIndVar.cpp1593 DU.NarrowUse->replaceUsesOfWith(DU.NarrowDef, Trunc); in truncateIVUse()
1628 DU.NarrowUse->replaceUsesOfWith(DU.NarrowDef, DU.WideDef); in widenLoopCompare()
1633 DU.NarrowUse->replaceUsesOfWith(Op, ExtOp); in widenLoopCompare()
1900 DU.NarrowUse->replaceUsesOfWith(DU.NarrowDef, DU.WideDef); in widenIVUse()
H A DModuleUtils.cpp432 UserInst->replaceUsesOfWith(GI, ResolvedCast); in lowerGlobalIFuncUsersAsGlobalCtor()
/freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/
H A DSPIRVRegularizer.cpp101 User->replaceUsesOfWith(CE, ReplInst); in runLowerConstExpr()
142 II->replaceUsesOfWith(Op, ReplInst); in runLowerConstExpr()
243 CI->replaceUsesOfWith(OldF, NewF); in visitCallScalToVec()
H A DSPIRVPrepareFunctions.cpp537 U->replaceUsesOfWith(F, NewF); in removeAggregateTypesFromSignature()
H A DSPIRVEmitIntrinsics.cpp830 U->replaceUsesOfWith(Old, New); in replaceMemInstrUses()
859 I->replaceUsesOfWith(Op, IntrUndef); in preprocessUndefs()
911 I->replaceUsesOfWith(Op, CI); in preprocessCompositeConstants()
/freebsd/contrib/llvm-project/llvm/lib/Target/XCore/
H A DXCoreLowerThreadLocal.cpp100 Instr->replaceUsesOfWith(CE, NewInst); in replaceConstantExprOp()
165 U->replaceUsesOfWith(GV, Addr); in lowerGlobal()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DLoopFuse.cpp1633 FC0.ExitingBlock->getTerminator()->replaceUsesOfWith(FC1.Preheader, in performFusion()
1644 FC0.ExitingBlock->getTerminator()->replaceUsesOfWith(FC0.ExitBlock, in performFusion()
1694 FC0.Latch->getTerminator()->replaceUsesOfWith(FC0.Header, FC1.Header); in performFusion()
1695 FC1.Latch->getTerminator()->replaceUsesOfWith(FC1.Header, FC0.Header); in performFusion()
1849 FC0.GuardBranch->replaceUsesOfWith(FC0NonLoopBlock, FC1NonLoopBlock); in fuseGuardedLoops()
1852 BBToUpdate->getTerminator()->replaceUsesOfWith(FC1GuardBlock, FC1.Header); in fuseGuardedLoops()
1917 FC0.ExitingBlock->getTerminator()->replaceUsesOfWith(FC0.ExitBlock, in fuseGuardedLoops()
1979 FC0.Latch->getTerminator()->replaceUsesOfWith(FC0.Header, FC1.Header); in fuseGuardedLoops()
1980 FC1.Latch->getTerminator()->replaceUsesOfWith(FC1.Header, FC0.Header); in fuseGuardedLoops()
H A DMergeICmps.cpp647 LhsLoad->replaceUsesOfWith(LhsLoad->getOperand(0), Lhs); in mergeComparisons()
648 RhsLoad->replaceUsesOfWith(RhsLoad->getOperand(0), Rhs); in mergeComparisons()
709 Pred->getTerminator()->replaceUsesOfWith(EntryBlock_, NextCmpBlock); in simplify()
H A DInferAddressSpaces.cpp1198 I->replaceUsesOfWith(C, Replace); in rewriteWithNewAddressSpaces()
1316 CurUser->replaceUsesOfWith( in rewriteWithNewAddressSpaces()
1319 CurUser->replaceUsesOfWith( in rewriteWithNewAddressSpaces()
H A DRewriteStatepointsForGC.cpp1390 ClonedValue->replaceUsesOfWith(LastValue, LastClonedValue); in rematerializeChain()
1409 ClonedValue->replaceUsesOfWith(RootOfChain, AlternateLiveBase); in rematerializeChain()
2168 Use->replaceUsesOfWith(Def, Load); in relocationViaAlloca()
2498 UserI->replaceUsesOfWith(Cand, RematChain); in rematerializeLiveValuesAtUses()
H A DLoopDistribute.cpp468 Pred->getTerminator()->replaceUsesOfWith(OrigPH, TopPH); in cloneLoops()
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonOptimizeSZextends.cpp132 J->replaceUsesOfWith(Ashr, I); in runOnFunction()
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DPseudoProbe.cpp86 II->replaceUsesOfWith(II->getFactor(), Builder.getInt64(IntFactor)); in setProbeDistributionFactor()
H A DUser.cpp21 bool User::replaceUsesOfWith(Value *From, Value *To) { in replaceUsesOfWith() function in llvm::User
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DUser.h308 bool replaceUsesOfWith(Value *From, Value *To);
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Coroutines/
H A DCoroFrame.cpp1955 U->replaceUsesOfWith(Def, CurrentReload); in insertSpills()
2013 DVI->replaceUsesOfWith(Alloca, G); in insertSpills()
2026 I->replaceUsesOfWith(Alloca, G); in insertSpills()
2360 I->replaceUsesOfWith(D, CurrentMaterialization); in rewriteMaterializableInstructions()
2383 R.Use->replaceUsesOfWith(R.Def, R.Remat); in rewriteMaterializableInstructions()
2825 NewLifetime->replaceUsesOfWith(NewLifetime->getOperand(1), AI); in sinkLifetimeStartMarkers()
/freebsd/contrib/llvm-project/llvm/lib/SandboxIR/
H A DSandboxIR.cpp235 bool User::replaceUsesOfWith(Value *FromV, Value *ToV) { in replaceUsesOfWith() function in User
245 return cast<llvm::User>(Val)->replaceUsesOfWith(FromV->Val, ToV->Val); in replaceUsesOfWith()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGCUDANV.cpp518 NewInst->replaceUsesOfWith(OldV, NewV); in replaceManagedVar()
522 I->replaceUsesOfWith(OldV, NewV); in replaceManagedVar()

12