Home
last modified time | relevance | path

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

12

/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DCallPromotionUtils.cpp118 U->replaceUsesOfWith(OrigInst, Phi); in createRetPHINode()
185 U->replaceUsesOfWith(&CB, Cast); in createRetBitCast()
313 NewBitCast->replaceUsesOfWith(OrigInst, NewInst); in versionCallSite()
324 NewRet->replaceUsesOfWith(Ret->getReturnValue(), NewRetVal); in versionCallSite()
H A DDemoteRegToStack.cpp86 U->replaceUsesOfWith(&I, V); in DemoteRegToStack()
163 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()
1040 inst->replaceUsesOfWith(inputs[i], RewriteVal); in constructFunction()
1064 I->replaceUsesOfWith(header, newHeader); in constructFunction()
1267 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.cpp408 Src->getTerminator()->replaceUsesOfWith(Target, DirectSucc); in SplitIndirectBrCriticalEdges()
H A DSimplifyIndVar.cpp1492 DU.NarrowUse->replaceUsesOfWith(DU.NarrowDef, Trunc); in truncateIVUse()
1527 DU.NarrowUse->replaceUsesOfWith(DU.NarrowDef, DU.WideDef); in widenLoopCompare()
1532 DU.NarrowUse->replaceUsesOfWith(Op, ExtOp); in widenLoopCompare()
1797 DU.NarrowUse->replaceUsesOfWith(DU.NarrowDef, DU.WideDef); in widenIVUse()
H A DModuleUtils.cpp429 UserInst->replaceUsesOfWith(GI, ResolvedCast); in lowerGlobalIFuncUsersAsGlobalCtor()
/freebsd-14.2/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 DSPIRVEmitIntrinsics.cpp162 U->replaceUsesOfWith(Old, New); in replaceMemInstrUses()
187 I->replaceUsesOfWith(Op, IntrUndef); in preprocessUndefs()
210 I->replaceUsesOfWith(Op, CCI); in preprocessCompositeConstants()
H A DSPIRVPrepareFunctions.cpp376 U->replaceUsesOfWith(F, NewF); in removeAggregateTypesFromSignature()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/XCore/
H A DXCoreLowerThreadLocal.cpp97 Instr->replaceUsesOfWith(CE, NewInst); in replaceConstantExprOp()
163 U->replaceUsesOfWith(GV, Addr); in lowerGlobal()
/freebsd-14.2/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 DLoopRerollPass.cpp1482 KV.first->replaceUsesOfWith(Inst, NewIV); in replaceIV()
1550 User->replaceUsesOfWith(PossibleReds[i].getReducedValue(), in replaceSelected()
H A DRewriteStatepointsForGC.cpp1389 ClonedValue->replaceUsesOfWith(LastValue, LastClonedValue); in rematerializeChain()
1408 ClonedValue->replaceUsesOfWith(RootOfChain, AlternateLiveBase); in rematerializeChain()
2166 Use->replaceUsesOfWith(Def, Load); in relocationViaAlloca()
2496 UserI->replaceUsesOfWith(Cand, RematChain); in rematerializeLiveValuesAtUses()
H A DLoopDistribute.cpp469 Pred->getTerminator()->replaceUsesOfWith(OrigPH, TopPH); in cloneLoops()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonOptimizeSZextends.cpp132 J->replaceUsesOfWith(Ashr, I); in runOnFunction()
H A DHexagonVectorCombine.cpp700 I->replaceUsesOfWith(Old, New); in createAlignedPointer()
1058 M->replaceUsesOfWith(Old, New); in moveTogether()
1091 C->replaceUsesOfWith(Old, New); in cloneBefore()
1213 In->replaceUsesOfWith(Old, New); in realignLoadGroup()
1499 I->replaceUsesOfWith(Old, New); in realignGroup()
/freebsd-14.2/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-14.2/contrib/llvm-project/llvm/include/llvm/IR/
H A DUser.h308 bool replaceUsesOfWith(Value *From, Value *To);
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Coroutines/
H A DCoroFrame.cpp1925 U->replaceUsesOfWith(Def, CurrentReload); in insertSpills()
1983 DVI->replaceUsesOfWith(Alloca, G); in insertSpills()
1996 I->replaceUsesOfWith(Alloca, G); in insertSpills()
2330 I->replaceUsesOfWith(D, CurrentMaterialization); in rewriteMaterializableInstructions()
2353 R.Use->replaceUsesOfWith(R.Def, R.Remat); in rewriteMaterializableInstructions()
2796 NewLifetime->replaceUsesOfWith(NewLifetime->getOperand(1), AI); in sinkLifetimeStartMarkers()
/freebsd-14.2/contrib/llvm-project/clang/lib/CodeGen/
H A DCGCUDANV.cpp495 NewInst->replaceUsesOfWith(OldV, NewV); in replaceManagedVar()
499 I->replaceUsesOfWith(OldV, NewV); in replaceManagedVar()

12