Home
last modified time | relevance | path

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

12

/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/
DSIOptimizeExecMasking.cpp392 MachineOperand *OtherOp = nullptr; in runOnMachineFunction() local
395 OtherOp = &Src1; in runOnMachineFunction()
400 OtherOp = &Src0; in runOnMachineFunction()
411 .addReg(OtherOp->getReg()); in runOnMachineFunction()
DAMDGPUPromoteAlloca.cpp497 Value *OtherOp = Inst->getOperand(OpIdx0); in binaryOpIsDerivedFromSameAlloca() local
498 if (Val == OtherOp) in binaryOpIsDerivedFromSameAlloca()
499 OtherOp = Inst->getOperand(OpIdx1); in binaryOpIsDerivedFromSameAlloca()
501 if (isa<ConstantPointerNull>(OtherOp)) in binaryOpIsDerivedFromSameAlloca()
504 Value *OtherObj = GetUnderlyingObject(OtherOp, *DL); in binaryOpIsDerivedFromSameAlloca()
DSIFoldOperands.cpp408 MachineOperand &OtherOp = MI->getOperand(OtherIdx); in tryAddToFoldList() local
409 if (!OtherOp.isReg() || in tryAddToFoldList()
410 !TII->getRegisterInfo().isVGPR(MRI, OtherOp.getReg())) in tryAddToFoldList()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/
DInstCombineMulDivRem.cpp134 Value *Cond, *OtherOp; in foldMulSelectToNegate() local
139 m_Value(OtherOp)))) in foldMulSelectToNegate()
140 return Builder.CreateSelect(Cond, OtherOp, Builder.CreateNeg(OtherOp)); in foldMulSelectToNegate()
145 m_Value(OtherOp)))) in foldMulSelectToNegate()
146 return Builder.CreateSelect(Cond, Builder.CreateNeg(OtherOp), OtherOp); in foldMulSelectToNegate()
152 m_Value(OtherOp)))) { in foldMulSelectToNegate()
155 return Builder.CreateSelect(Cond, OtherOp, Builder.CreateFNeg(OtherOp)); in foldMulSelectToNegate()
162 m_Value(OtherOp)))) { in foldMulSelectToNegate()
165 return Builder.CreateSelect(Cond, Builder.CreateFNeg(OtherOp), OtherOp); in foldMulSelectToNegate()
/external/llvm/lib/Target/AMDGPU/
DAMDGPUPromoteAlloca.cpp511 Value *OtherOp = Inst->getOperand(OpIdx0); in binaryOpIsDerivedFromSameAlloca() local
512 if (Val == OtherOp) in binaryOpIsDerivedFromSameAlloca()
513 OtherOp = Inst->getOperand(OpIdx1); in binaryOpIsDerivedFromSameAlloca()
515 if (isa<ConstantPointerNull>(OtherOp)) in binaryOpIsDerivedFromSameAlloca()
518 Value *OtherObj = GetUnderlyingObject(OtherOp, *DL); in binaryOpIsDerivedFromSameAlloca()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/SystemZ/
DSystemZTargetTransformInfo.cpp1014 if (Instruction *OtherOp = dyn_cast<Instruction>(UserI->getOperand(i))){ in getMemoryOpCost() local
1015 LoadInst *OtherLoad = dyn_cast<LoadInst>(OtherOp); in getMemoryOpCost()
1017 (isa<TruncInst>(OtherOp) || isa<SExtInst>(OtherOp) || in getMemoryOpCost()
1018 isa<ZExtInst>(OtherOp))) in getMemoryOpCost()
1019 OtherLoad = dyn_cast<LoadInst>(OtherOp->getOperand(0)); in getMemoryOpCost()
/external/llvm/include/llvm/Target/
DTargetSelectionDAG.td43 class SDTCisSameAs<int OpNum, int OtherOp> : SDTypeConstraint<OpNum> {
44 int OtherOperandNum = OtherOp;
49 class SDTCisVTSmallerThanOp<int OpNum, int OtherOp> : SDTypeConstraint<OpNum> {
50 int OtherOperandNum = OtherOp;
58 /// type as the element type of OtherOp, which is a vector type.
59 class SDTCisEltOfVec<int ThisOp, int OtherOp>
61 int OtherOpNum = OtherOp;
65 /// with length less that of OtherOp, which is a vector type.
66 class SDTCisSubVecOfVec<int ThisOp, int OtherOp>
68 int OtherOpNum = OtherOp;
[all …]
/external/swiftshader/third_party/llvm-10.0/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 = in isConditionalZeroOrAllOnes()
1418 static SDValue combineSelectAndUse(SDNode *N, SDValue Slct, SDValue OtherOp, in combineSelectAndUse() argument
1431 SDValue TrueVal = OtherOp; in combineSelectAndUse()
1433 DAG.getNode(N->getOpcode(), SDLoc(N), VT, OtherOp, NonConstantVal); in combineSelectAndUse()
/external/llvm/lib/Target/Lanai/
DLanaiISelLowering.cpp1302 bool &Invert, SDValue &OtherOp, in isConditionalZeroOrAllOnes() argument
1313 OtherOp = N2; in isConditionalZeroOrAllOnes()
1318 OtherOp = N1; in isConditionalZeroOrAllOnes()
1332 OtherOp = DAG.getConstant(1, dl, VT); in isConditionalZeroOrAllOnes()
1346 OtherOp = DAG.getConstant(0, dl, VT); in isConditionalZeroOrAllOnes()
1348 OtherOp = in isConditionalZeroOrAllOnes()
1372 static SDValue combineSelectAndUse(SDNode *N, SDValue Slct, SDValue OtherOp, in combineSelectAndUse() argument
1385 SDValue TrueVal = OtherOp; in combineSelectAndUse()
1387 DAG.getNode(N->getOpcode(), SDLoc(N), VT, OtherOp, NonConstantVal); in combineSelectAndUse()
/external/swiftshader/third_party/llvm-10.0/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 …]
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Transforms/Scalar/
DReassociate.h126 Value *OtherOp);
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/XCore/
DXCoreISelLowering.cpp587 SDValue OtherOp; in isADDADDMUL() local
590 OtherOp = N1; in isADDADDMUL()
593 OtherOp = N0; in isADDADDMUL()
599 if (OtherOp.getOpcode() == ISD::MUL) { in isADDADDMUL()
601 if (requireIntermediatesHaveOneUse && !OtherOp.hasOneUse()) in isADDADDMUL()
603 Mul0 = OtherOp.getOperand(0); in isADDADDMUL()
604 Mul1 = OtherOp.getOperand(1); in isADDADDMUL()
616 Addend1 = OtherOp; in isADDADDMUL()
626 Addend1 = OtherOp; in isADDADDMUL()
/external/llvm/lib/Target/XCore/
DXCoreISelLowering.cpp612 SDValue OtherOp; in isADDADDMUL() local
615 OtherOp = N1; in isADDADDMUL()
618 OtherOp = N0; in isADDADDMUL()
624 if (OtherOp.getOpcode() == ISD::MUL) { in isADDADDMUL()
626 if (requireIntermediatesHaveOneUse && !OtherOp.hasOneUse()) in isADDADDMUL()
628 Mul0 = OtherOp.getOperand(0); in isADDADDMUL()
629 Mul1 = OtherOp.getOperand(1); in isADDADDMUL()
641 Addend1 = OtherOp; in isADDADDMUL()
651 Addend1 = OtherOp; in isADDADDMUL()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineMulDivRem.cpp376 Value *BoolCast = nullptr, *OtherOp = nullptr; in visitMul() local
379 OtherOp = Op1; in visitMul()
382 OtherOp = Op0; in visitMul()
388 return BinaryOperator::CreateAnd(V, OtherOp); in visitMul()
/external/llvm/lib/Target/X86/
DX86ISelDAGToDAG.cpp340 SDValue OtherOp = User->getOperand(0); in shouldAvoidImmediateInstFormsForSize() local
341 if (OtherOp.getNode() == N) in shouldAvoidImmediateInstFormsForSize()
342 OtherOp = User->getOperand(1); in shouldAvoidImmediateInstFormsForSize()
346 if (OtherOp->getOpcode() == ISD::CopyFromReg && in shouldAvoidImmediateInstFormsForSize()
348 OtherOp->getOperand(1).getNode()))) in shouldAvoidImmediateInstFormsForSize()
/external/llvm/lib/Transforms/Utils/
DSimplifyLibCalls.cpp1270 Value *OtherOp = nullptr; in optimizeSqrt() local
1287 OtherOp = Op1; in optimizeSqrt()
1305 if (OtherOp) { in optimizeSqrt()
1310 Value *SqrtCall = B.CreateCall(Sqrt, OtherOp, "sqrt"); in optimizeSqrt()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/
DReassociate.cpp1995 Value *OtherOp) { in canonicalizeNegFPConstantsForOp() argument
2041 Value *NewInst = IsFSub ? Builder.CreateFAddFMF(OtherOp, Op, I) in canonicalizeNegFPConstantsForOp()
2042 : Builder.CreateFSubFMF(OtherOp, Op, I); in canonicalizeNegFPConstantsForOp()
DLoopStrengthReduce.cpp3454 Value *OtherOp = const_cast<Value *>(ICI->getOperand(OtherIdx)); in CollectLoopInvariantFixupsAndFormulae() local
3455 if (SE.hasComputableLoopEvolution(SE.getSCEV(OtherOp), L)) in CollectLoopInvariantFixupsAndFormulae()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/
DSimplifyLibCalls.cpp2036 Value *OtherOp = nullptr; in optimizeSqrt() local
2052 OtherOp = Op1; in optimizeSqrt()
2070 if (OtherOp) { in optimizeSqrt()
2075 Value *SqrtCall = B.CreateCall(Sqrt, OtherOp, "sqrt"); in optimizeSqrt()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/X86/
DX86ISelDAGToDAG.cpp386 SDValue OtherOp = User->getOperand(0); in shouldAvoidImmediateInstFormsForSize() local
387 if (OtherOp.getNode() == N) in shouldAvoidImmediateInstFormsForSize()
388 OtherOp = User->getOperand(1); in shouldAvoidImmediateInstFormsForSize()
392 if (OtherOp->getOpcode() == ISD::CopyFromReg && in shouldAvoidImmediateInstFormsForSize()
394 OtherOp->getOperand(1).getNode()))) in shouldAvoidImmediateInstFormsForSize()
/external/llvm/lib/CodeGen/SelectionDAG/
DDAGCombiner.cpp8841 SDValue OtherOp; in visitFDIV() local
8844 OtherOp = N1.getOperand(1); in visitFDIV()
8847 OtherOp = N1.getOperand(0); in visitFDIV()
8853 RV = DAG.getNode(ISD::FDIV, SDLoc(N1), VT, RV, OtherOp, Flags); in visitFDIV()
11168 SDNode *OtherOp; in isMulAddWithConstProfitable() local
11173 OtherOp = Use->getOperand(1).getNode(); in isMulAddWithConstProfitable()
11175 OtherOp = Use->getOperand(0).getNode(); in isMulAddWithConstProfitable()
11187 if (OtherOp == MulVar) in isMulAddWithConstProfitable()
11203 if (OtherOp->getOpcode() == ISD::ADD && in isMulAddWithConstProfitable()
11204 DAG.isConstantIntBuildVectorOrConstantInt(OtherOp->getOperand(1)) && in isMulAddWithConstProfitable()
[all …]
/external/llvm/lib/Target/ARM/
DARMISelLowering.cpp8606 SDValue &OtherOp, in isConditionalZeroOrAllOnes() argument
8616 OtherOp = N2; in isConditionalZeroOrAllOnes()
8621 OtherOp = N1; in isConditionalZeroOrAllOnes()
8641 OtherOp = DAG.getConstant(0, dl, VT); in isConditionalZeroOrAllOnes()
8644 OtherOp = DAG.getConstant(1, dl, VT); in isConditionalZeroOrAllOnes()
8646 OtherOp = DAG.getConstant(APInt::getAllOnesValue(VT.getSizeInBits()), dl, in isConditionalZeroOrAllOnes()
8678 SDValue combineSelectAndUse(SDNode *N, SDValue Slct, SDValue OtherOp, in combineSelectAndUse() argument
8691 SDValue TrueVal = OtherOp; in combineSelectAndUse()
8693 OtherOp, NonConstantVal); in combineSelectAndUse()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/SelectionDAG/
DDAGCombiner.cpp12798 SDValue OtherOp; in visitFDIV() local
12801 OtherOp = N1.getOperand(1); in visitFDIV()
12804 OtherOp = N1.getOperand(0); in visitFDIV()
12810 RV = DAG.getNode(ISD::FDIV, SDLoc(N1), VT, RV, OtherOp, Flags); in visitFDIV()
15293 SDNode *OtherOp; in isMulAddWithConstProfitable() local
15298 OtherOp = Use->getOperand(1).getNode(); in isMulAddWithConstProfitable()
15300 OtherOp = Use->getOperand(0).getNode(); in isMulAddWithConstProfitable()
15312 if (OtherOp == MulVar) in isMulAddWithConstProfitable()
15328 if (OtherOp->getOpcode() == ISD::ADD && in isMulAddWithConstProfitable()
15329 DAG.isConstantIntBuildVectorOrConstantInt(OtherOp->getOperand(1)) && in isMulAddWithConstProfitable()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/ARM/
DARMISelLowering.cpp10979 SDValue &OtherOp, in isConditionalZeroOrAllOnes() argument
10989 OtherOp = N2; in isConditionalZeroOrAllOnes()
10994 OtherOp = N1; in isConditionalZeroOrAllOnes()
11014 OtherOp = DAG.getConstant(0, dl, VT); in isConditionalZeroOrAllOnes()
11017 OtherOp = DAG.getConstant(1, dl, VT); in isConditionalZeroOrAllOnes()
11019 OtherOp = DAG.getConstant(APInt::getAllOnesValue(VT.getSizeInBits()), dl, in isConditionalZeroOrAllOnes()
11051 SDValue combineSelectAndUse(SDNode *N, SDValue Slct, SDValue OtherOp, in combineSelectAndUse() argument
11064 SDValue TrueVal = OtherOp; in combineSelectAndUse()
11066 OtherOp, NonConstantVal); in combineSelectAndUse()
/external/llvm/lib/Transforms/Scalar/
DLoopStrengthReduce.cpp3128 Value *OtherOp = const_cast<Value *>(ICI->getOperand(OtherIdx)); in CollectLoopInvariantFixupsAndFormulae() local
3129 if (SE.hasComputableLoopEvolution(SE.getSCEV(OtherOp), L)) in CollectLoopInvariantFixupsAndFormulae()

12