Home
last modified time | relevance | path

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

123

/llvm-project-15.0.7/llvm/lib/Transforms/Utils/
H A DCallPromotionUtils.cpp117 U->replaceUsesOfWith(OrigInst, Phi); in createRetPHINode()
184 U->replaceUsesOfWith(&CB, Cast); in createRetBitCast()
312 NewBitCast->replaceUsesOfWith(OrigInst, NewInst); in versionCallSite()
323 NewRet->replaceUsesOfWith(Ret->getReturnValue(), NewRetVal); in versionCallSite()
H A DFlattenCFG.cpp304 PBI->replaceUsesOfWith(CC, NC); in FlattenParallelAndOr()
501 PBI->replaceUsesOfWith(CInst2, NC); in MergeIfRegion()
H A DDemoteRegToStack.cpp85 U->replaceUsesOfWith(&I, V); in DemoteRegToStack()
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()
773 PredBB->getTerminator()->replaceUsesOfWith(ExitBB, NewBB); in severSplitPHINodesOfExits()
1030 inst->replaceUsesOfWith(inputs[i], RewriteVal); in constructFunction()
1054 I->replaceUsesOfWith(header, newHeader); in constructFunction()
1264 inst->replaceUsesOfWith(outputs[i], load); in emitCallAndSwitchStatement()
H A DUnifyLoopExits.cpp134 U->replaceUsesOfWith(Def, NewPhi); in INITIALIZE_PASS_DEPENDENCY()
H A DLoopVersioning.cpp154 U->replaceUsesOfWith(Inst, PN); in addPHINodes()
H A DBreakCriticalEdges.cpp408 Src->getTerminator()->replaceUsesOfWith(Target, DirectSucc); in SplitIndirectBrCriticalEdges()
H A DSimplifyIndVar.cpp1456 DU.NarrowUse->replaceUsesOfWith(DU.NarrowDef, Trunc); in truncateIVUse()
1495 DU.NarrowUse->replaceUsesOfWith(DU.NarrowDef, DU.WideDef); in widenLoopCompare()
1500 DU.NarrowUse->replaceUsesOfWith(Op, ExtOp); in widenLoopCompare()
1763 DU.NarrowUse->replaceUsesOfWith(DU.NarrowDef, DU.WideDef); in widenIVUse()
/llvm-project-15.0.7/llvm/unittests/IR/
H A DUserTest.cpp147 EXPECT_TRUE(XUser->replaceUsesOfWith(&X, &I0)); in TEST()
152 EXPECT_FALSE(XUser->replaceUsesOfWith(&X, &I0)); in TEST()
/llvm-project-15.0.7/llvm/lib/Target/XCore/
H A DXCoreLowerThreadLocal.cpp97 Instr->replaceUsesOfWith(CE, NewInst); in replaceConstantExprOp()
163 U->replaceUsesOfWith(GV, Addr); in lowerGlobal()
/llvm-project-15.0.7/llvm/lib/Transforms/Scalar/
H A DLoopFuse.cpp1385 FC0.ExitingBlock->getTerminator()->replaceUsesOfWith(FC1.Preheader, in performFusion()
1396 FC0.ExitingBlock->getTerminator()->replaceUsesOfWith(FC0.ExitBlock, in performFusion()
1445 FC0.Latch->getTerminator()->replaceUsesOfWith(FC0.Header, FC1.Header); in performFusion()
1446 FC1.Latch->getTerminator()->replaceUsesOfWith(FC1.Header, FC0.Header); in performFusion()
1599 FC0.GuardBranch->replaceUsesOfWith(FC0NonLoopBlock, FC1NonLoopBlock); in fuseGuardedLoops()
1602 BBToUpdate->getTerminator()->replaceUsesOfWith(FC1GuardBlock, FC1.Header); in fuseGuardedLoops()
1667 FC0.ExitingBlock->getTerminator()->replaceUsesOfWith(FC0.ExitBlock, in fuseGuardedLoops()
1728 FC0.Latch->getTerminator()->replaceUsesOfWith(FC0.Header, FC1.Header); in fuseGuardedLoops()
1729 FC1.Latch->getTerminator()->replaceUsesOfWith(FC1.Header, FC0.Header); in fuseGuardedLoops()
H A DCorrelatedValuePropagation.cpp307 I->replaceUsesOfWith(Pointer, C); in processMemAccess()
1149 RI->replaceUsesOfWith(RetVal, C); in runImpl()
/llvm-project-15.0.7/llvm/lib/IR/
H A DPseudoProbe.cpp75 II->replaceUsesOfWith(II->getFactor(), Builder.getInt64(IntFactor)); in setProbeDistributionFactor()
H A DReplaceConstant.cpp85 II->replaceUsesOfWith(CE, NI); in convertConstantExprsToInstructions()
H A DUser.cpp21 bool User::replaceUsesOfWith(Value *From, Value *To) { in replaceUsesOfWith() function in llvm::User
/llvm-project-15.0.7/llvm/lib/Target/Hexagon/
H A DHexagonOptimizeSZextends.cpp132 J->replaceUsesOfWith(Ashr, I); in runOnFunction()
/llvm-project-15.0.7/llvm/unittests/Transforms/Scalar/
H A DLoopPassManagerTest.cpp972 Loop01BB.getTerminator()->replaceUsesOfWith(&Loop01BB, NewLoop010PHBB); in TEST_F()
1014 NewLoop010BB->getTerminator()->replaceUsesOfWith(NewLoop01LatchBB, in TEST_F()
1164 Loop00BB.getTerminator()->replaceUsesOfWith(&Loop02PHBB, NewLoop01PHBB); in TEST_F()
1219 Loop02BB.getTerminator()->replaceUsesOfWith(&Loop0LatchBB, NewLoop03PHBB); in TEST_F()
1286 Loop0BB.getTerminator()->replaceUsesOfWith(&Loop2PHBB, NewLoop1PHBB); in TEST_F()
1399 IDomBB.getTerminator()->replaceUsesOfWith(L.getHeader(), in TEST_F()
1522 Loop02PHBB.getTerminator()->replaceUsesOfWith(&Loop0LatchBB, in TEST_F()
/llvm-project-15.0.7/polly/test/GPGPU/
H A Dmanaged-memory-rewrite-malloc-free-inside-constexpr.ll12 ; Inst->replaceUsesOfWith(...) call does not actually work, because this does
/llvm-project-15.0.7/llvm/include/llvm/IR/
H A DUser.h308 bool replaceUsesOfWith(Value *From, Value *To);
/llvm-project-15.0.7/llvm/lib/Target/SPIRV/
H A DSPIRVEmitIntrinsics.cpp145 U->replaceUsesOfWith(Old, New); in replaceMemInstrUses()
170 I->replaceUsesOfWith(Op, CCI); in preprocessCompositeConstants()
H A DSPIRVPrepareFunctions.cpp116 U->replaceUsesOfWith(F, NewF); in processFunctionSignature()
/llvm-project-15.0.7/polly/lib/CodeGen/
H A DManagedMemoryRewrite.cpp159 I->replaceUsesOfWith(OldVal, NewVal); in rewriteOldValToNew()
/llvm-project-15.0.7/llvm/lib/Target/AMDGPU/
H A DAMDGPUReplaceLDSUseWithPointer.cpp286 II->replaceUsesOfWith(GV, ReplaceInst); in replaceLDSUseByPointer()
/llvm-project-15.0.7/llvm/lib/Transforms/Coroutines/
H A DCoroFrame.cpp1726 U->replaceUsesOfWith(Def, CurrentReload); in insertSpills()
1778 DVI->replaceUsesOfWith(Alloca, G); in insertSpills()
1781 I->replaceUsesOfWith(Alloca, G); in insertSpills()
2056 U->replaceUsesOfWith(Def, CurrentMaterialization); in rewriteMaterializableInstructions()
2513 NewLifetime->replaceUsesOfWith(NewLifetime->getOperand(1), NewBitCast); in sinkLifetimeStartMarkers()
/llvm-project-15.0.7/mlir/lib/Transforms/Utils/
H A DInliningUtils.cpp401 castResult.getDefiningOp()->replaceUsesOfWith(castResult, callResult); in inlineCall()

123