Home
last modified time | relevance | path

Searched refs:OtherOp (Results 1 – 25 of 33) sorted by relevance

12

/freebsd-src/contrib/llvm-project/llvm/lib/CodeGen/AsmPrinter/
H A DDebugLocEntry.h162 DbgValueLocEntry OtherOp = Other.ValueLocEntries[0]; in isEquivalent() local
163 return ThisOp.isLocation() && OtherOp.isLocation() && in isEquivalent()
164 ThisOp.getLoc().getReg() == OtherOp.getLoc().getReg(); in isEquivalent()
/freebsd-src/contrib/llvm-project/llvm/lib/Target/RISCV/
H A DRISCVGatherScatterLowering.cpp265 Value *OtherOp; in matchStridedRecurrence() local
269 OtherOp = BO->getOperand(1); in matchStridedRecurrence()
274 OtherOp = BO->getOperand(0); in matchStridedRecurrence()
280 if (!L->isLoopInvariant(OtherOp)) in matchStridedRecurrence()
284 Value *SplatOp = getSplatValue(OtherOp); in matchStridedRecurrence()
/freebsd-src/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineNegator.cpp474 Value *NegatedOp, *OtherOp; in visitImpl()
479 OtherOp = Ops[0]; in negate()
482 OtherOp = Ops[1]; in negate()
486 return Builder.CreateMul(NegatedOp, OtherOp, I->getName() + ".neg", in negate()
457 Value *NegatedOp, *OtherOp; visitImpl() local
H A DInstCombineMulDivRem.cpp101 Value *Cond, *OtherOp; in foldMulSelectToNegate() local
103 // mul (select Cond, 1, -1), OtherOp --> select Cond, OtherOp, -OtherOp in foldMulSelectToNegate()
104 // mul OtherOp, (select Cond, 1, -1) --> select Cond, OtherOp, -OtherOp in foldMulSelectToNegate()
106 m_Value(OtherOp)))) { in foldMulSelectToNegate()
108 Value *Neg = Builder.CreateNeg(OtherOp, "", HasAnyNoWrap); in foldMulSelectToNegate()
109 return Builder.CreateSelect(Cond, OtherOp, Ne in foldMulSelectToNegate()
[all...]
H A DInstCombineSimplifyDemanded.cpp1901 Value *OtherOp = MatchShufAsOp0 ? Y : X;
1902 for (User *U : OtherOp->users()) {
1906 ? match(U, m_c_BinOp(Opcode, Shuf, m_Specific(OtherOp)))
1908 ? match(U, m_BinOp(Opcode, Shuf, m_Specific(OtherOp)))
1909 : match(U, m_BinOp(Opcode, m_Specific(OtherOp), Shuf)))
1845 Value *OtherOp = MatchShufAsOp0 ? Y : X; SimplifyDemandedVectorElts() local
H A DInstructionCombining.cpp639 Value *&LHS, Value *&RHS, BinaryOperator *OtherOp) { in getBinOpsForFactorization()
655 if (OtherOp && OtherOp->getOpcode() == Instruction::AShr && in tryFactorization()
2217 Value *Y, *OtherOp; in visitGEPOfGEP()
2222 !match(RHS, m_OneUse(m_BinOp(Opcode, m_Value(Y), m_Value(OtherOp))))) in visitGEPOfGEP()
2228 if (isSplatValue(OtherOp, SplatIndex)) { in visitGEPOfGEP()
2229 std::swap(Y, OtherOp); in visitGEPOfGEP()
2236 // bo (splat X), (bo Y, OtherOp) --> bo (splat (bo X, Y)), OtherOp in visitGEPOfGEP()
2240 Instruction *R = BinaryOperator::Create(Opcode, NewSplat, OtherOp); in visitGEPOfGEP()
621 getBinOpsForFactorization(Instruction::BinaryOps TopOpcode,BinaryOperator * Op,Value * & LHS,Value * & RHS,BinaryOperator * OtherOp) getBinOpsForFactorization() argument
2010 Value *Y, *OtherOp; foldVectorBinop() local
[all...]
H A DInstCombineCalls.cpp2444 Value *OtherOp = II->getOperand(OtherOpArg); in visitCallInst()
2447 VectorType *OtherOpTy = cast<VectorType>(OtherOp->getType()); in visitCallInst()
2454 Value *InverseOtherOp = Builder.CreateFNeg(OtherOp); in visitCallInst()
2329 Value *OtherOp = II->getOperand(OtherOpArg); visitCallInst() local
/freebsd-src/contrib/llvm-project/llvm/lib/Target/SystemZ/
H A DSystemZTargetTransformInfo.cpp1183 if (Instruction *OtherOp = dyn_cast<Instruction>(UserI->getOperand(i))){ in getMemoryOpCost()
1184 LoadInst *OtherLoad = dyn_cast<LoadInst>(OtherOp); in getMemoryOpCost()
1186 (isa<TruncInst>(OtherOp) || isa<SExtInst>(OtherOp) || in getMemoryOpCost()
1187 isa<ZExtInst>(OtherOp))) in getMemoryOpCost()
1188 OtherLoad = dyn_cast<LoadInst>(OtherOp->getOperand(0)); in getMemoryOpCost()
1181 if (Instruction *OtherOp = dyn_cast<Instruction>(UserI->getOperand(i))){ getMemoryOpCost() local
/freebsd-src/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DSIOptimizeExecMasking.cpp539 MachineOperand *OtherOp = nullptr; in optimizeExecSequence() local
542 OtherOp = &Src1; in optimizeExecSequence()
547 OtherOp = &Src0; in optimizeExecSequence()
558 .addReg(OtherOp->getReg()); in optimizeExecSequence()
H A DAMDGPUPromoteAlloca.cpp1121 Value *OtherOp = Inst->getOperand(OpIdx0); in collectUsesWithPtrTypes()
1122 if (Val == OtherOp) in collectUsesWithPtrTypes()
1123 OtherOp = Inst->getOperand(OpIdx1); in collectUsesWithPtrTypes()
1125 if (isa<ConstantPointerNull>(OtherOp)) in collectUsesWithPtrTypes()
1128 Value *OtherObj = getUnderlyingObject(OtherOp); in collectUsesWithPtrTypes()
1039 Value *OtherOp = Inst->getOperand(OpIdx0); binaryOpIsDerivedFromSameAlloca() local
H A DSIFoldOperands.cpp588 MachineOperand &OtherOp = MI->getOperand(OpNo); in tryAddToFoldList()
589 if (!OtherOp.isReg() || in tryAddToFoldList()
590 !TII->getRegisterInfo().isVGPR(*MRI, OtherOp.getReg())) in tryAddToFoldList()
586 MachineOperand &OtherOp = MI->getOperand(OpNo); tryAddToFoldList() local
H A DAMDGPULibCalls.cpp1427 auto *OtherOp = cast<FPMathOperator>(XI); in evaluateScalarMathFunc()
1428 FMF &= OtherOp->getFastMathFlags(); in evaluateScalarMathFunc()
1385 auto *OtherOp = cast<FPMathOperator>(XI); fold_sincos() local
H A DSIISelLowering.cpp12107 SDValue &OtherOp) { in performOrCombine()
12112 auto TempOtherOp = peekThroughBitcasts(OtherOp); in performOrCombine()
12248 SDValue OtherOp = SecondSrc ? *PermNodes[SecondSrc->first].Src : Op; in performSignExtendInRegCombine()
12251 OtherOp = getDWordFromOffset(DAG, DL, OtherOp, SecondSrc->second); in performSignExtendInRegCombine()
12252 assert(OtherOp.getValueSizeInBits() == 32); in performSignExtendInRegCombine()
12255 if (hasNon16BitAccesses(PermMask, Op, OtherOp)) { in performSignExtendInRegCombine()
12258 OtherOp.getValueType().isByteSized()); in performSignExtendInRegCombine()
12266 OtherOp = DAG.getBitcastedAnyExtOrTrunc(OtherOp, D in performSignExtendInRegCombine()
11891 hasNon16BitAccesses(uint64_t PermMask,SDValue & Op,SDValue & OtherOp) hasNon16BitAccesses() argument
11962 SDValue OtherOp = SecondSrc.has_value() ? *PermNodes[*SecondSrc].Src matchPERM() local
[all...]
/freebsd-src/contrib/llvm-project/llvm/lib/Target/Lanai/
H A DLanaiISelLowering.cpp1343 // * OtherOp is set to the alternative value of N.
1346 // * X = 0, Invert = False and OtherOp = Y
1347 // * Y = 0, Invert = True and OtherOp = X
1349 bool &Invert, SDValue &OtherOp, in isConditionalZeroOrAllOnes()
1360 OtherOp = N2; in isConditionalZeroOrAllOnes()
1365 OtherOp = N1; in isConditionalZeroOrAllOnes()
1379 OtherOp = DAG.getConstant(1, dl, VT); in isConditionalZeroOrAllOnes()
1393 OtherOp = DAG.getConstant(0, dl, VT); in isConditionalZeroOrAllOnes()
1395 OtherOp = DAG.getAllOnesConstant(dl, VT); in isConditionalZeroOrAllOnes()
1418 static SDValue combineSelectAndUse(SDNode *N, SDValue Slct, SDValue OtherOp,
1350 isConditionalZeroOrAllOnes(SDNode * N,bool AllOnes,SDValue & CC,bool & Invert,SDValue & OtherOp,SelectionDAG & DAG) isConditionalZeroOrAllOnes() argument
1419 combineSelectAndUse(SDNode * N,SDValue Slct,SDValue OtherOp,TargetLowering::DAGCombinerInfo & DCI,bool AllOnes) combineSelectAndUse() argument
[all...]
/freebsd-src/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DPredicateInfo.cpp798 Value *OtherOp; in getConstraint()
801 OtherOp = Cmp->getOperand(1); in getConstraint()
804 OtherOp = Cmp->getOperand(0); in getConstraint()
814 return {{Pred, OtherOp}}; in getConstraint()
800 Value *OtherOp; getConstraint() local
H A DSCCPSolver.cpp1790 Value *OtherOp = Constraint->OtherOp; in handleCallResult()
1792 // Wait until OtherOp is resolved. in handleCallResult()
1793 if (getValueState(OtherOp).isUnknown()) { in handleCallResult()
1794 addAdditionalUser(OtherOp, &CB); in handleCallResult()
1798 ValueLatticeElement CondVal = getValueState(OtherOp); in handleCallResult()
1828 addAdditionalUser(OtherOp, &CB); in handleCallResult()
1837 addAdditionalUser(OtherOp, &CB); in handleCallResult()
1842 addAdditionalUser(OtherOp, &CB); in solve()
1739 Value *OtherOp = Constraint->OtherOp; handleCallResult() local
H A DSimplifyLibCalls.cpp2725 Value *OtherOp = nullptr; in optimizeSinCosPi()
2741 OtherOp = Op1; in optimizeSinCosPi()
2757 if (OtherOp) { in classifyArgUse()
2762 B.CreateUnaryIntrinsic(Intrinsic::sqrt, OtherOp, nullptr, "sqrt"); in classifyArgUse()
2566 Value *OtherOp = nullptr; optimizeSqrt() local
/freebsd-src/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyISelDAGToDAG.cpp347 SDValue OtherOp = N.getOperand(i == 0 ? 1 : 0); in SelectAddrOperands()
352 Addr = OtherOp; in SelectAddrOperands()
326 SDValue OtherOp = N.getOperand(i == 0 ? 1 : 0); SelectAddrAddOperands() local
/freebsd-src/contrib/llvm-project/llvm/include/llvm/Transforms/Scalar/
H A DReassociate.h141 Value *OtherOp);
/freebsd-src/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/
H A DPredicateInfo.h76 Value *OtherOp; member
/freebsd-src/contrib/llvm-project/llvm/lib/Target/XCore/
H A DXCoreISelLowering.cpp578 SDValue OtherOp; in isADDADDMUL() local
581 OtherOp = N1; in isADDADDMUL()
584 OtherOp = N0; in isADDADDMUL()
590 if (OtherOp.getOpcode() == ISD::MUL) { in isADDADDMUL()
592 if (requireIntermediatesHaveOneUse && !OtherOp.hasOneUse()) in isADDADDMUL()
594 Mul0 = OtherOp.getOperand(0); in isADDADDMUL()
595 Mul1 = OtherOp.getOperand(1); in isADDADDMUL()
607 Addend1 = OtherOp; in isADDADDMUL()
617 Addend1 = OtherOp; in isADDADDMUL()
/freebsd-src/contrib/llvm-project/llvm/include/llvm/Target/
H A DTargetSelectionDAG.td42 class SDTCisSameAs<int OpNum, int OtherOp> : SDTypeConstraint<OpNum> {
43 int OtherOperandNum = OtherOp;
48 class SDTCisVTSmallerThanOp<int OpNum, int OtherOp> : SDTypeConstraint<OpNum> {
49 int OtherOperandNum = OtherOp;
57 /// type as the element type of OtherOp, which is a vector type.
58 class SDTCisEltOfVec<int ThisOp, int OtherOp>
60 int OtherOpNum = OtherOp;
64 /// with length less that of OtherOp, which is a vector type.
65 class SDTCisSubVecOfVec<int ThisOp, int OtherOp>
67 int OtherOpNum = OtherOp;
[all...]
/freebsd-src/contrib/llvm-project/llvm/include/llvm/CodeGen/GlobalISel/
H A DGIMatchTableExecutorImpl.h956 MachineOperand &OtherOp = State.MIs[OtherInsnID]->getOperand(OtherOpIdx); in executeMatchTable()
959 if (Op.isReg() && OtherOp.isReg()) { in executeMatchTable()
961 getSrcRegIgnoringCopies(OtherOp.getReg(), MRI)) in executeMatchTable()
966 if (!Op.isIdenticalTo(OtherOp)) { in executeMatchTable()
926 MachineOperand &OtherOp = State.MIs[OtherInsnID]->getOperand(OtherOpIdx); executeMatchTable() local
/freebsd-src/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DReassociate.cpp2063 Value *OtherOp) { in EraseInst()
2109 Value *NewInst = IsFSub ? Builder.CreateFAddFMF(OtherOp, Op, I) in getNegatibleInsts()
2110 : Builder.CreateFSubFMF(OtherOp, Op, I); in getNegatibleInsts()
2118 /// OtherOp + (subtree) -> OtherOp {+/-} (canonical subtree) in getNegatibleInsts()
2119 /// (subtree) + OtherOp -> OtherOp {+/-} (canonical subtree) in getNegatibleInsts()
2120 /// OtherOp - (subtree) -> OtherOp {+/-} (canonical subtree) in getNegatibleInsts()
2146 canonicalizeNegFPConstantsForOp(Instruction * I,Instruction * Op,Value * OtherOp) canonicalizeNegFPConstantsForOp() argument
/freebsd-src/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86ISelDAGToDAG.cpp384 SDValue OtherOp = User->getOperand(0); in shouldAvoidImmediateInstFormsForSize() local
385 if (OtherOp.getNode() == N) in shouldAvoidImmediateInstFormsForSize()
386 OtherOp = User->getOperand(1); in shouldAvoidImmediateInstFormsForSize()
390 if (OtherOp->getOpcode() == ISD::CopyFromReg && in shouldAvoidImmediateInstFormsForSize()
392 OtherOp->getOperand(1).getNode()))) in shouldAvoidImmediateInstFormsForSize()

12