Home
last modified time | relevance | path

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

12

/openbsd/src/gnu/llvm/llvm/lib/CodeGen/AsmPrinter/
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()
/openbsd/src/gnu/llvm/llvm/lib/Target/RISCV/
DRISCVGatherScatterLowering.cpp252 Value *OtherOp; in matchStridedRecurrence() local
256 OtherOp = BO->getOperand(1); in matchStridedRecurrence()
260 OtherOp = BO->getOperand(0); in matchStridedRecurrence()
266 if (!L->isLoopInvariant(OtherOp)) in matchStridedRecurrence()
270 Value *SplatOp = getSplatValue(OtherOp); in matchStridedRecurrence()
DRISCVISelLowering.cpp8319 static SDValue combineSelectAndUse(SDNode *N, SDValue Slct, SDValue OtherOp, in combineSelectAndUse() argument
8353 TrueVal = OtherOp; in combineSelectAndUse()
8354 FalseVal = DAG.getNode(N->getOpcode(), SDLoc(N), VT, OtherOp, NonConstantVal); in combineSelectAndUse()
10059 SDValue OtherOp = TrueVal.getOperand(1 - OpToFold); in tryFoldSelectIntoOp() local
10062 std::swap(OtherOp, Zero); in tryFoldSelectIntoOp()
10063 SDValue NewSel = DAG.getSelect(DL, VT, N->getOperand(0), OtherOp, Zero); in tryFoldSelectIntoOp()
/openbsd/src/gnu/llvm/llvm/lib/Transforms/InstCombine/
DInstCombineNegator.cpp458 Value *NegatedOp, *OtherOp; in visitImpl() local
463 OtherOp = Ops[0]; in visitImpl()
466 OtherOp = Ops[1]; in visitImpl()
470 return Builder.CreateMul(NegatedOp, OtherOp, I->getName() + ".neg"); in visitImpl()
DInstCombineMulDivRem.cpp101 Value *Cond, *OtherOp; in foldMulSelectToNegate() local
106 m_Value(OtherOp)))) { in foldMulSelectToNegate()
108 Value *Neg = Builder.CreateNeg(OtherOp, "", false, HasAnyNoWrap); in foldMulSelectToNegate()
109 return Builder.CreateSelect(Cond, OtherOp, Neg); in foldMulSelectToNegate()
114 m_Value(OtherOp)))) { in foldMulSelectToNegate()
116 Value *Neg = Builder.CreateNeg(OtherOp, "", false, HasAnyNoWrap); in foldMulSelectToNegate()
117 return Builder.CreateSelect(Cond, Neg, OtherOp); in foldMulSelectToNegate()
124 m_Value(OtherOp)))) { in foldMulSelectToNegate()
127 return Builder.CreateSelect(Cond, OtherOp, Builder.CreateFNeg(OtherOp)); in foldMulSelectToNegate()
134 m_Value(OtherOp)))) { in foldMulSelectToNegate()
[all …]
DInstructionCombining.cpp1856 Value *Y, *OtherOp; in foldVectorBinop() local
1861 !match(RHS, m_OneUse(m_BinOp(Opcode, m_Value(Y), m_Value(OtherOp))))) in foldVectorBinop()
1867 if (isSplatValue(OtherOp, SplatIndex)) { in foldVectorBinop()
1868 std::swap(Y, OtherOp); in foldVectorBinop()
1879 Instruction *R = BinaryOperator::Create(Opcode, NewSplat, OtherOp); in foldVectorBinop()
DInstCombineCalls.cpp1897 Value *OtherOp = II->getOperand(OtherOpArg); in visitCallInst() local
1900 VectorType *OtherOpTy = cast<VectorType>(OtherOp->getType()); in visitCallInst()
1907 Value *InverseOtherOp = Builder.CreateFNeg(OtherOp); in visitCallInst()
/openbsd/src/gnu/llvm/llvm/lib/Target/SystemZ/
DSystemZTargetTransformInfo.cpp1140 if (Instruction *OtherOp = dyn_cast<Instruction>(UserI->getOperand(i))){ in getMemoryOpCost() local
1141 LoadInst *OtherLoad = dyn_cast<LoadInst>(OtherOp); in getMemoryOpCost()
1143 (isa<TruncInst>(OtherOp) || isa<SExtInst>(OtherOp) || in getMemoryOpCost()
1144 isa<ZExtInst>(OtherOp))) in getMemoryOpCost()
1145 OtherLoad = dyn_cast<LoadInst>(OtherOp->getOperand(0)); in getMemoryOpCost()
/openbsd/src/gnu/llvm/llvm/lib/Target/AMDGPU/
DSIOptimizeExecMasking.cpp519 MachineOperand *OtherOp = nullptr; in optimizeExecSequence() local
522 OtherOp = &Src1; in optimizeExecSequence()
527 OtherOp = &Src0; in optimizeExecSequence()
538 .addReg(OtherOp->getReg()); in optimizeExecSequence()
DAMDGPUPromoteAlloca.cpp651 Value *OtherOp = Inst->getOperand(OpIdx0); in binaryOpIsDerivedFromSameAlloca() local
652 if (Val == OtherOp) in binaryOpIsDerivedFromSameAlloca()
653 OtherOp = Inst->getOperand(OpIdx1); in binaryOpIsDerivedFromSameAlloca()
655 if (isa<ConstantPointerNull>(OtherOp)) in binaryOpIsDerivedFromSameAlloca()
658 Value *OtherObj = getUnderlyingObject(OtherOp); in binaryOpIsDerivedFromSameAlloca()
DSIFoldOperands.cpp412 MachineOperand &OtherOp = MI->getOperand(OtherIdx); in tryAddToFoldList() local
413 if (!OtherOp.isReg() || in tryAddToFoldList()
414 !TII->getRegisterInfo().isVGPR(*MRI, OtherOp.getReg())) in tryAddToFoldList()
/openbsd/src/gnu/llvm/llvm/lib/Target/Lanai/
DLanaiISelLowering.cpp1348 bool &Invert, SDValue &OtherOp, in isConditionalZeroOrAllOnes() argument
1359 OtherOp = N2; in isConditionalZeroOrAllOnes()
1364 OtherOp = N1; in isConditionalZeroOrAllOnes()
1378 OtherOp = DAG.getConstant(1, dl, VT); in isConditionalZeroOrAllOnes()
1392 OtherOp = DAG.getConstant(0, dl, VT); in isConditionalZeroOrAllOnes()
1394 OtherOp = DAG.getAllOnesConstant(dl, VT); in isConditionalZeroOrAllOnes()
1417 static SDValue combineSelectAndUse(SDNode *N, SDValue Slct, SDValue OtherOp, in combineSelectAndUse() argument
1430 SDValue TrueVal = OtherOp; in combineSelectAndUse()
1432 DAG.getNode(N->getOpcode(), SDLoc(N), VT, OtherOp, NonConstantVal); in combineSelectAndUse()
/openbsd/src/gnu/llvm/llvm/lib/Transforms/Utils/
DSCCPSolver.cpp1561 Value *OtherOp = Constraint->OtherOp; in handleCallResult() local
1564 if (getValueState(OtherOp).isUnknown()) { in handleCallResult()
1565 addAdditionalUser(OtherOp, &CB); in handleCallResult()
1569 ValueLatticeElement CondVal = getValueState(OtherOp); in handleCallResult()
1595 addAdditionalUser(OtherOp, &CB); in handleCallResult()
1604 addAdditionalUser(OtherOp, &CB); in handleCallResult()
1609 addAdditionalUser(OtherOp, &CB); in handleCallResult()
DPredicateInfo.cpp807 Value *OtherOp; in getConstraint() local
810 OtherOp = Cmp->getOperand(1); in getConstraint()
813 OtherOp = Cmp->getOperand(0); in getConstraint()
823 return {{Pred, OtherOp}}; in getConstraint()
DSimplifyLibCalls.cpp2443 Value *OtherOp = nullptr; in optimizeSqrt() local
2459 OtherOp = Op1; in optimizeSqrt()
2476 if (OtherOp) { in optimizeSqrt()
2481 Value *SqrtCall = B.CreateCall(Sqrt, OtherOp, "sqrt"); in optimizeSqrt()
/openbsd/src/gnu/llvm/llvm/lib/Target/WebAssembly/
DWebAssemblyISelDAGToDAG.cpp310 SDValue OtherOp = N.getOperand(i == 0 ? 1 : 0); in SelectAddrAddOperands() local
315 Addr = OtherOp; in SelectAddrAddOperands()
/openbsd/src/gnu/llvm/llvm/include/llvm/Transforms/Scalar/
DReassociate.h126 Value *OtherOp);
/openbsd/src/gnu/llvm/llvm/include/llvm/Transforms/Utils/
DPredicateInfo.h77 Value *OtherOp; member
/openbsd/src/gnu/llvm/llvm/include/llvm/Target/
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 …]
/openbsd/src/gnu/llvm/llvm/lib/Target/XCore/
DXCoreISelLowering.cpp583 SDValue OtherOp; in isADDADDMUL() local
586 OtherOp = N1; in isADDADDMUL()
589 OtherOp = N0; in isADDADDMUL()
595 if (OtherOp.getOpcode() == ISD::MUL) { in isADDADDMUL()
597 if (requireIntermediatesHaveOneUse && !OtherOp.hasOneUse()) in isADDADDMUL()
599 Mul0 = OtherOp.getOperand(0); in isADDADDMUL()
600 Mul1 = OtherOp.getOperand(1); in isADDADDMUL()
612 Addend1 = OtherOp; in isADDADDMUL()
622 Addend1 = OtherOp; in isADDADDMUL()
/openbsd/src/gnu/llvm/llvm/lib/Transforms/Scalar/
DReassociate.cpp2109 Value *OtherOp) { in canonicalizeNegFPConstantsForOp() argument
2155 Value *NewInst = IsFSub ? Builder.CreateFAddFMF(OtherOp, Op, I) in canonicalizeNegFPConstantsForOp()
2156 : Builder.CreateFSubFMF(OtherOp, Op, I); in canonicalizeNegFPConstantsForOp()
DLoopStrengthReduce.cpp3566 Value *OtherOp = const_cast<Value *>(ICI->getOperand(OtherIdx)); in CollectLoopInvariantFixupsAndFormulae() local
3567 if (SE.hasComputableLoopEvolution(SE.getSCEV(OtherOp), L)) in CollectLoopInvariantFixupsAndFormulae()
/openbsd/src/gnu/llvm/llvm/lib/Target/X86/
DX86ISelDAGToDAG.cpp382 SDValue OtherOp = User->getOperand(0); in shouldAvoidImmediateInstFormsForSize() local
383 if (OtherOp.getNode() == N) in shouldAvoidImmediateInstFormsForSize()
384 OtherOp = User->getOperand(1); in shouldAvoidImmediateInstFormsForSize()
388 if (OtherOp->getOpcode() == ISD::CopyFromReg && in shouldAvoidImmediateInstFormsForSize()
390 OtherOp->getOperand(1).getNode()))) in shouldAvoidImmediateInstFormsForSize()
/openbsd/src/gnu/llvm/llvm/lib/Analysis/
DInstructionSimplify.cpp240 Value *OtherOp, Instruction::BinaryOps OpcodeToExpand, in expandBinOp() argument
247 simplifyBinOp(Opcode, B0, OtherOp, Q.getWithoutUndef(), MaxRecurse); in expandBinOp()
251 simplifyBinOp(Opcode, B1, OtherOp, Q.getWithoutUndef(), MaxRecurse); in expandBinOp()
/openbsd/src/gnu/llvm/llvm/lib/Target/ARM/
DARMISelLowering.cpp12354 SDValue &OtherOp, in isConditionalZeroOrAllOnes() argument
12364 OtherOp = N2; in isConditionalZeroOrAllOnes()
12369 OtherOp = N1; in isConditionalZeroOrAllOnes()
12389 OtherOp = DAG.getConstant(0, dl, VT); in isConditionalZeroOrAllOnes()
12392 OtherOp = DAG.getConstant(1, dl, VT); in isConditionalZeroOrAllOnes()
12394 OtherOp = DAG.getAllOnesConstant(dl, VT); in isConditionalZeroOrAllOnes()
12425 SDValue combineSelectAndUse(SDNode *N, SDValue Slct, SDValue OtherOp, in combineSelectAndUse() argument
12438 SDValue TrueVal = OtherOp; in combineSelectAndUse()
12440 OtherOp, NonConstantVal); in combineSelectAndUse()

12