Home
last modified time | relevance | path

Searched refs:getOperandUse (Results 1 – 25 of 42) sorted by relevance

12

/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DGuardUtils.cpp83 WC = &BI->getOperandUse(0); in parseWidenableBranch()
103 WC = &And->getOperandUse(0); in parseWidenableBranch()
104 C = &And->getOperandUse(1); in parseWidenableBranch()
110 WC = &And->getOperandUse(1); in parseWidenableBranch()
111 C = &And->getOperandUse(0); in parseWidenableBranch()
/freebsd/contrib/llvm-project/llvm/include/llvm/SandboxIR/
H A DUser.h86 auto UseA = getOperandUse(OpIdxA); in swapOperandsInternal()
87 auto UseB = getOperandUse(OpIdxB); in swapOperandsInternal()
123 Value *getOperand(unsigned OpIdx) const { return getOperandUse(OpIdx).get(); } in getOperand()
126 Use getOperandUse(unsigned OpIdx) const { in getOperandUse() function
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DCorrelatedValuePropagation.cpp296 ConstantRange CR1 = LVI->getConstantRangeAtUse(Cmp->getOperandUse(0), in processICmp()
298 CR2 = LVI->getConstantRangeAtUse(Cmp->getOperandUse(1), in processICmp()
374 LVI->getConstantRangeAtUse(I->getOperandUse(0), /*UndefAllowed=*/false); in processSwitch()
461 LVI->getConstantRangeAtUse(BO->getOperandUse(0), /*UndefAllowed*/ false); in willNotOverflow()
463 LVI->getConstantRangeAtUse(BO->getOperandUse(1), /*UndefAllowed*/ false); in willNotOverflow()
526 II->getOperandUse(0), /*UndefAllowed*/ IsIntMinPoison); in processAbsIntrinsic()
565 LVI->getConstantRangeAtUse(CI->getOperandUse(0), /*UndefAllowed*/ false); in processCmpIntrinsic()
567 LVI->getConstantRangeAtUse(CI->getOperandUse(1), /*UndefAllowed*/ false); in processCmpIntrinsic()
595 ConstantRange LHS_CR = LVI->getConstantRangeAtUse(MM->getOperandUse(0), in processMinMaxIntrinsic()
597 ConstantRange RHS_CR = LVI->getConstantRangeAtUse(MM->getOperandUse(1), in processMinMaxIntrinsic()
[all …]
H A DInductiveRangeCheckElimination.cpp489 extractRangeChecksFromCond(L, SE, cast<User>(Condition)->getOperandUse(0), in extractRangeChecksFromCond()
491 extractRangeChecksFromCond(L, SE, cast<User>(Condition)->getOperandUse(1), in extractRangeChecksFromCond()
567 InductiveRangeCheck::extractRangeChecksFromCond(L, SE, BI->getOperandUse(0), in extractRangeChecksFromBranch()
H A DGVNSink.cpp829 I0->getOperandUse(O).set(NewOperands[O]); in sinkLastInstruction()
/freebsd/contrib/llvm-project/llvm/lib/SandboxIR/
H A DUser.cpp63 LLVMUse = &cast<llvm::User>(Val)->getOperandUse(OpIdx); in getOperandUseDefault()
93 const auto &U = getOperandUse(OperandIdx); in setOperand()
103 auto Use = getOperandUse(OpIdx); in replaceUsesOfWith()
H A DInstruction.cpp341 Ctx.getTracker().emplaceIfTracking<UseSwap>(getOperandUse(1), in swapValues()
342 getOperandUse(2)); in swapValues()
1506 Ctx.getTracker().emplaceIfTracking<UseSwap>(getOperandUse(0), in commute()
1507 getOperandUse(1)); in commute()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DCanonicalizeFreezeInLoops.cpp212 InsertFreezeAndForgetFromSCEV(StepI->getOperandUse(Info.StepValIdx)); in run()
216 InsertFreezeAndForgetFromSCEV(PHI->getOperandUse(OperandIdx)); in run()
H A DLCSSA.cpp185 &PN->getOperandUse(PN->getOperandNumForIncomingValue( in formLCSSAForInstructionsImpl()
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Instrumentation/
H A DAddressSanitizerCommon.h48 PtrUse = &I->getOperandUse(OperandNo); in IsWrite()
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DUser.h245 const Use &getOperandUse(unsigned i) const { in getOperandUse() function
249 Use &getOperandUse(unsigned i) { in getOperandUse() function
H A DAbstractCallSite.h208 return getInstruction()->getOperandUse(CalleeArgIdx); in getCalleeUseForCallback()
/freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyTargetTransformInfo.cpp306 Ops.push_back(&cast<Instruction>(V)->getOperandUse(0)); in isProfitableToSinkOperands()
308 Ops.push_back(&I->getOperandUse(1)); in isProfitableToSinkOperands()
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64TargetTransformInfo.cpp6083 Ops.push_back(&GEP->getOperandUse(1)); in shouldSinkVectorOfPtrs()
6098 Ops.push_back(&cast<Instruction>(Op)->getOperandUse(0)); in shouldSinkVScale()
6104 Ops.push_back(&cast<Instruction>(ZExtOp)->getOperandUse(0)); in shouldSinkVScale()
6105 Ops.push_back(&cast<Instruction>(Op)->getOperandUse(0)); in shouldSinkVScale()
6122 Ops.push_back(&II->getOperandUse(0)); in isProfitableToSinkOperands()
6123 Ops.push_back(&II->getOperandUse(1)); in isProfitableToSinkOperands()
6140 Ops.push_back(&II->getOperandUse(0)); in isProfitableToSinkOperands()
6142 Ops.push_back(&II->getOperandUse(1)); in isProfitableToSinkOperands()
6150 Ops.push_back(&II->getOperandUse(1)); in isProfitableToSinkOperands()
6152 Ops.push_back(&II->getOperandUse(2)); in isProfitableToSinkOperands()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DSafepointIRVerifier.cpp78 return PU.getUser()->getOperandUse(PU.getOperandNo()); in getEdge()
118 const Use &U = PU.getUser()->getOperandUse(PU.getOperandNo()); in hasLiveIncomingEdges()
153 addDeadEdge(BI->getOperandUse(Cond->getZExtValue() ? 1 : 2)); in processFunction()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUAtomicOptimizer.cpp224 if (UA.isDivergentUse(I.getOperandUse(PtrIdx))) { in visitAtomicRMWInst()
228 bool ValDivergent = UA.isDivergentUse(I.getOperandUse(ValIdx)); in visitAtomicRMWInst()
312 const bool ValDivergent = UA.isDivergentUse(I.getOperandUse(ValIdx)); in visitIntrinsicInst()
329 if (UA.isDivergentUse(I.getOperandUse(Idx))) in visitIntrinsicInst()
H A DAMDGPUInstCombineIntrinsic.cpp539 II.getOperandUse(LaneArgIdx).set(MaskedConst); in simplifyDemandedLaneMaskArg()
629 if (isTriviallyUniform(OpInst->getOperandUse(0))) in hoistLaneIntrinsicThroughOperand()
631 if (isTriviallyUniform(OpInst->getOperandUse(1))) in hoistLaneIntrinsicThroughOperand()
/freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/
H A DPPCBoolRetToInt.cpp201 runOnUse(R->getOperandUse(0), PromotablePHINodes, Bool2IntMap); in runOnFunction()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DFunctionAttrs.cpp697 if (SI->isSimple() && &SI->getOperandUse(1) == ArgUse.U) { in getArgumentAccessInfo()
709 assert(&LI->getOperandUse(0) == ArgUse.U); in getArgumentAccessInfo()
727 if (&MTI->getOperandUse(0) == ArgUse.U) { in getArgumentAccessInfo()
733 } else if (&MTI->getOperandUse(1) == ArgUse.U) { in getArgumentAccessInfo()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineCalls.cpp3295 replaceUse(II->getOperandUse(0), ConstantInt::getTrue(II->getContext())); in visitCallInst()
3638 replaceUse(II->getOperandUse(0), NewOp); in visitCallInst()
3676 replaceUse(II->getOperandUse(0), NewOp); in visitCallInst()
3711 replaceUse(II->getOperandUse(0), NewOp); in visitCallInst()
3741 replaceUse(II->getOperandUse(0), NewOp); in visitCallInst()
3772 replaceUse(II->getOperandUse(0), NewOp); in visitCallInst()
3814 replaceUse(II->getOperandUse(0), NewOp); in visitCallInst()
3849 replaceUse(II->getOperandUse(ArgIdx), NewOp); in visitCallInst()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/ObjCARC/
H A DObjCARCContract.cpp691 &PHI->getOperandUse( in run()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DGlobalMergeFunctions.cpp44 return &CI->getCalledOperandUse() == &CI->getOperandUse(OpIdx); in isCalleeOperand()
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/
H A DRISCVTargetTransformInfo.cpp2860 Use &InsertElt = cast<Instruction>(Op)->getOperandUse(0); in isProfitableToSinkOperands()
2861 Use &Not = cast<Instruction>(InsertElt)->getOperandUse(1); in isProfitableToSinkOperands()
2914 Ops.push_back(&Op->getOperandUse(0)); in isProfitableToSinkOperands()
2916 Use *InsertEltUse = &Op->getOperandUse(0); in isProfitableToSinkOperands()
2919 Ops.push_back(&InsertElt->getOperandUse(1)); in isProfitableToSinkOperands()
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonCommonGEP.cpp1012 if (&Ld->getOperandUse(PtrX) == U) in separateConstantChains()
1016 if (&St->getOperandUse(PtrX) == U) in separateConstantChains()
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/
H A DARMTargetTransformInfo.cpp2785 Ops.push_back(&I->getOperandUse(0)); in isProfitableToSinkOperands()
2786 Ops.push_back(&I->getOperandUse(1)); in isProfitableToSinkOperands()
2888 Ops.push_back(&Shuffle->getOperandUse(0)); in isProfitableToSinkOperands()
2890 Ops.push_back(&Op->getOperandUse(0)); in isProfitableToSinkOperands()

12