Home
last modified time | relevance | path

Searched refs:NewLHS (Results 1 – 25 of 36) sorted by relevance

12

/external/swiftshader/third_party/LLVM/lib/CodeGen/SelectionDAG/
DLegalizeFloatTypes.cpp612 void DAGTypeLegalizer::SoftenSetCCOperands(SDValue &NewLHS, SDValue &NewRHS, in SoftenSetCCOperands() argument
614 SDValue LHSInt = GetSoftenedFloat(NewLHS); in SoftenSetCCOperands()
616 EVT VT = NewLHS.getValueType(); in SoftenSetCCOperands()
682 NewLHS = MakeLibCall(LC1, RetVT, Ops, 2, false/*sign irrelevant*/, dl); in SoftenSetCCOperands()
687 NewLHS, NewRHS, DAG.getCondCode(CCCode)); in SoftenSetCCOperands()
688 NewLHS = MakeLibCall(LC2, RetVT, Ops, 2, false/*sign irrelevant*/, dl); in SoftenSetCCOperands()
689 NewLHS = DAG.getNode(ISD::SETCC, dl, TLI.getSetCCResultType(RetVT), NewLHS, in SoftenSetCCOperands()
691 NewLHS = DAG.getNode(ISD::OR, dl, Tmp.getValueType(), Tmp, NewLHS); in SoftenSetCCOperands()
713 SDValue NewLHS = N->getOperand(2), NewRHS = N->getOperand(3); in SoftenFloatOp_BR_CC() local
715 SoftenSetCCOperands(NewLHS, NewRHS, CCCode, N->getDebugLoc()); in SoftenFloatOp_BR_CC()
[all …]
DLegalizeIntegerTypes.cpp808 void DAGTypeLegalizer::PromoteSetCCOperands(SDValue &NewLHS,SDValue &NewRHS, in PromoteSetCCOperands() argument
824 NewLHS = ZExtPromotedInteger(NewLHS); in PromoteSetCCOperands()
831 NewLHS = SExtPromotedInteger(NewLHS); in PromoteSetCCOperands()
2468 void DAGTypeLegalizer::IntegerExpandSetCCOperands(SDValue &NewLHS, in IntegerExpandSetCCOperands() argument
2473 GetExpandedInteger(NewLHS, LHSLo, LHSHi); in IntegerExpandSetCCOperands()
2481 NewLHS = DAG.getNode(ISD::AND, dl, in IntegerExpandSetCCOperands()
2489 NewLHS = DAG.getNode(ISD::XOR, dl, LHSLo.getValueType(), LHSLo, RHSLo); in IntegerExpandSetCCOperands()
2491 NewLHS = DAG.getNode(ISD::OR, dl, NewLHS.getValueType(), NewLHS, NewRHS); in IntegerExpandSetCCOperands()
2492 NewRHS = DAG.getConstant(0, NewLHS.getValueType()); in IntegerExpandSetCCOperands()
2501 NewLHS = LHSHi; in IntegerExpandSetCCOperands()
[all …]
DLegalizeTypes.h361 void IntegerExpandSetCCOperands(SDValue &NewLHS, SDValue &NewRHS,
434 void SoftenSetCCOperands(SDValue &NewLHS, SDValue &NewRHS,
490 void FloatExpandSetCCOperands(SDValue &NewLHS, SDValue &NewRHS,
/external/llvm/lib/CodeGen/SelectionDAG/
DLegalizeFloatTypes.cpp864 SDValue NewLHS = N->getOperand(2), NewRHS = N->getOperand(3); in SoftenFloatOp_BR_CC() local
867 EVT VT = NewLHS.getValueType(); in SoftenFloatOp_BR_CC()
868 NewLHS = GetSoftenedFloat(NewLHS); in SoftenFloatOp_BR_CC()
870 TLI.softenSetCCOperands(DAG, VT, NewLHS, NewRHS, CCCode, SDLoc(N)); in SoftenFloatOp_BR_CC()
875 NewRHS = DAG.getConstant(0, SDLoc(N), NewLHS.getValueType()); in SoftenFloatOp_BR_CC()
881 DAG.getCondCode(CCCode), NewLHS, NewRHS, in SoftenFloatOp_BR_CC()
916 SDValue NewLHS = N->getOperand(0), NewRHS = N->getOperand(1); in SoftenFloatOp_SELECT_CC() local
919 EVT VT = NewLHS.getValueType(); in SoftenFloatOp_SELECT_CC()
920 NewLHS = GetSoftenedFloat(NewLHS); in SoftenFloatOp_SELECT_CC()
922 TLI.softenSetCCOperands(DAG, VT, NewLHS, NewRHS, CCCode, SDLoc(N)); in SoftenFloatOp_SELECT_CC()
[all …]
DLegalizeIntegerTypes.cpp942 void DAGTypeLegalizer::PromoteSetCCOperands(SDValue &NewLHS,SDValue &NewRHS, in PromoteSetCCOperands() argument
951 SDValue OpL = GetPromotedInteger(NewLHS); in PromoteSetCCOperands()
959 cast<VTSDNode>(OpL->getOperand(1))->getVT() == NewLHS.getValueType() && in PromoteSetCCOperands()
962 NewLHS = OpL; in PromoteSetCCOperands()
965 NewLHS = ZExtPromotedInteger(NewLHS); in PromoteSetCCOperands()
977 NewLHS = ZExtPromotedInteger(NewLHS); in PromoteSetCCOperands()
984 NewLHS = SExtPromotedInteger(NewLHS); in PromoteSetCCOperands()
2791 void DAGTypeLegalizer::IntegerExpandSetCCOperands(SDValue &NewLHS, in IntegerExpandSetCCOperands() argument
2796 GetExpandedInteger(NewLHS, LHSLo, LHSHi); in IntegerExpandSetCCOperands()
2804 NewLHS = DAG.getNode(ISD::AND, dl, in IntegerExpandSetCCOperands()
[all …]
DTargetLowering.cpp151 SDValue &NewLHS, SDValue &NewRHS, in softenSetCCOperands() argument
254 SDValue Ops[2] = {NewLHS, NewRHS}; in softenSetCCOperands()
255 NewLHS = makeLibCall(DAG, LC1, RetVT, Ops, false /*sign irrelevant*/, in softenSetCCOperands()
267 NewLHS, NewRHS, DAG.getCondCode(CCCode)); in softenSetCCOperands()
268 NewLHS = makeLibCall(DAG, LC2, RetVT, Ops, false/*sign irrelevant*/, in softenSetCCOperands()
270 NewLHS = DAG.getNode( in softenSetCCOperands()
273 NewLHS, NewRHS, DAG.getCondCode(getCmpLibcallCC(LC2))); in softenSetCCOperands()
274 NewLHS = DAG.getNode(ISD::OR, dl, Tmp.getValueType(), Tmp, NewLHS); in softenSetCCOperands()
DLegalizeTypes.h386 void IntegerExpandSetCCOperands(SDValue &NewLHS, SDValue &NewRHS,
540 void FloatExpandSetCCOperands(SDValue &NewLHS, SDValue &NewRHS,
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/SelectionDAG/
DLegalizeFloatTypes.cpp879 SDValue NewLHS = N->getOperand(2), NewRHS = N->getOperand(3); in SoftenFloatOp_BR_CC() local
882 EVT VT = NewLHS.getValueType(); in SoftenFloatOp_BR_CC()
883 NewLHS = GetSoftenedFloat(NewLHS); in SoftenFloatOp_BR_CC()
885 TLI.softenSetCCOperands(DAG, VT, NewLHS, NewRHS, CCCode, SDLoc(N)); in SoftenFloatOp_BR_CC()
890 NewRHS = DAG.getConstant(0, SDLoc(N), NewLHS.getValueType()); in SoftenFloatOp_BR_CC()
896 DAG.getCondCode(CCCode), NewLHS, NewRHS, in SoftenFloatOp_BR_CC()
970 SDValue NewLHS = N->getOperand(0), NewRHS = N->getOperand(1); in SoftenFloatOp_SELECT_CC() local
973 EVT VT = NewLHS.getValueType(); in SoftenFloatOp_SELECT_CC()
974 NewLHS = GetSoftenedFloat(NewLHS); in SoftenFloatOp_SELECT_CC()
976 TLI.softenSetCCOperands(DAG, VT, NewLHS, NewRHS, CCCode, SDLoc(N)); in SoftenFloatOp_SELECT_CC()
[all …]
DLegalizeIntegerTypes.cpp982 void DAGTypeLegalizer::PromoteSetCCOperands(SDValue &NewLHS,SDValue &NewRHS, in PromoteSetCCOperands() argument
991 SDValue OpL = GetPromotedInteger(NewLHS); in PromoteSetCCOperands()
1002 if (OpLEffectiveBits <= NewLHS.getScalarValueSizeInBits() && in PromoteSetCCOperands()
1004 NewLHS = OpL; in PromoteSetCCOperands()
1007 NewLHS = ZExtPromotedInteger(NewLHS); in PromoteSetCCOperands()
1019 NewLHS = ZExtPromotedInteger(NewLHS); in PromoteSetCCOperands()
1026 NewLHS = SExtPromotedInteger(NewLHS); in PromoteSetCCOperands()
2950 void DAGTypeLegalizer::IntegerExpandSetCCOperands(SDValue &NewLHS, in IntegerExpandSetCCOperands() argument
2955 GetExpandedInteger(NewLHS, LHSLo, LHSHi); in IntegerExpandSetCCOperands()
2963 NewLHS = DAG.getNode(ISD::AND, dl, in IntegerExpandSetCCOperands()
[all …]
DTargetLowering.cpp156 SDValue &NewLHS, SDValue &NewRHS, in softenSetCCOperands() argument
259 SDValue Ops[2] = {NewLHS, NewRHS}; in softenSetCCOperands()
260 NewLHS = makeLibCall(DAG, LC1, RetVT, Ops, false /*sign irrelevant*/, in softenSetCCOperands()
272 NewLHS, NewRHS, DAG.getCondCode(CCCode)); in softenSetCCOperands()
273 NewLHS = makeLibCall(DAG, LC2, RetVT, Ops, false/*sign irrelevant*/, in softenSetCCOperands()
275 NewLHS = DAG.getNode( in softenSetCCOperands()
278 NewLHS, NewRHS, DAG.getCondCode(getCmpLibcallCC(LC2))); in softenSetCCOperands()
279 NewLHS = DAG.getNode(ISD::OR, dl, Tmp.getValueType(), Tmp, NewLHS); in softenSetCCOperands()
DLegalizeTypes.h439 void IntegerExpandSetCCOperands(SDValue &NewLHS, SDValue &NewRHS,
592 void FloatExpandSetCCOperands(SDValue &NewLHS, SDValue &NewRHS,
/external/swiftshader/third_party/LLVM/include/llvm/ADT/
DTwine.h481 Child NewLHS, NewRHS; in concat() local
482 NewLHS.twine = this; in concat()
486 NewLHS = LHS; in concat()
494 return Twine(NewLHS, NewLHSKind, NewRHS, NewRHSKind); in concat()
/external/llvm/lib/Transforms/Utils/
DSimplifyIndVar.cpp190 Value *NewLHS = nullptr, *NewRHS = nullptr; in eliminateIVComparison() local
193 NewLHS = in eliminateIVComparison()
202 i != e && (!NewLHS || !NewRHS); in eliminateIVComparison()
245 if (!NewLHS && IncomingS == InvariantLHS) in eliminateIVComparison()
246 NewLHS = Incoming; in eliminateIVComparison()
251 if (!NewLHS || !NewRHS) in eliminateIVComparison()
259 ICmp->setOperand(0, NewLHS); in eliminateIVComparison()
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/ADT/
DTwine.h499 Child NewLHS, NewRHS; in concat() local
500 NewLHS.twine = this; in concat()
504 NewLHS = LHS; in concat()
512 return Twine(NewLHS, NewLHSKind, NewRHS, NewRHSKind); in concat()
/external/llvm/include/llvm/ADT/
DTwine.h498 Child NewLHS, NewRHS; in concat() local
499 NewLHS.twine = this; in concat()
503 NewLHS = LHS; in concat()
511 return Twine(NewLHS, NewLHSKind, NewRHS, NewRHSKind); in concat()
/external/swiftshader/third_party/llvm-subzero/include/llvm/ADT/
DTwine.h509 Child NewLHS, NewRHS; in concat() local
510 NewLHS.twine = this; in concat()
514 NewLHS = LHS; in concat()
522 return Twine(NewLHS, NewLHSKind, NewRHS, NewRHSKind); in concat()
/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/
DInstCombinePHI.cpp81 PHINode *NewLHS = 0, *NewRHS = 0; in FoldPHIArgBinOpIntoPHI() local
83 NewLHS = PHINode::Create(LHSType, PN.getNumIncomingValues(), in FoldPHIArgBinOpIntoPHI()
85 NewLHS->addIncoming(InLHS, PN.getIncomingBlock(0)); in FoldPHIArgBinOpIntoPHI()
86 InsertNewInstBefore(NewLHS, PN); in FoldPHIArgBinOpIntoPHI()
87 LHSVal = NewLHS; in FoldPHIArgBinOpIntoPHI()
99 if (NewLHS || NewRHS) { in FoldPHIArgBinOpIntoPHI()
102 if (NewLHS) { in FoldPHIArgBinOpIntoPHI()
104 NewLHS->addIncoming(NewInLHS, PN.getIncomingBlock(i)); in FoldPHIArgBinOpIntoPHI()
/external/llvm/lib/Transforms/InstCombine/
DInstCombinePHI.cpp69 PHINode *NewLHS = nullptr, *NewRHS = nullptr; in FoldPHIArgBinOpIntoPHI() local
71 NewLHS = PHINode::Create(LHSType, PN.getNumIncomingValues(), in FoldPHIArgBinOpIntoPHI()
73 NewLHS->addIncoming(InLHS, PN.getIncomingBlock(0)); in FoldPHIArgBinOpIntoPHI()
74 InsertNewInstBefore(NewLHS, PN); in FoldPHIArgBinOpIntoPHI()
75 LHSVal = NewLHS; in FoldPHIArgBinOpIntoPHI()
87 if (NewLHS || NewRHS) { in FoldPHIArgBinOpIntoPHI()
90 if (NewLHS) { in FoldPHIArgBinOpIntoPHI()
92 NewLHS->addIncoming(NewInLHS, PN.getIncomingBlock(i)); in FoldPHIArgBinOpIntoPHI()
DInstCombineSelect.cpp1163 Value *NewLHS = Builder->CreateNot(LHS); in visitSelectInst() local
1166 ? Builder->CreateICmpSLT(NewLHS, NewRHS) in visitSelectInst()
1167 : Builder->CreateICmpULT(NewLHS, NewRHS); in visitSelectInst()
1169 Builder->CreateNot(Builder->CreateSelect(NewCmp, NewLHS, NewRHS)); in visitSelectInst()
DInstCombineAndOrXor.cpp129 Value *NewLHS = IsBswapLHS ? IntrLHS->getOperand(0) : in SimplifyBSwap() local
137 BinOp = Builder->CreateAnd(NewLHS, NewRHS); in SimplifyBSwap()
139 BinOp = Builder->CreateOr(NewLHS, NewRHS); in SimplifyBSwap()
141 BinOp = Builder->CreateXor(NewLHS, NewRHS); in SimplifyBSwap()
1354 Value *NewLHS = Builder->CreateAnd(Op0LHS, AndRHS, in visitAnd() local
1356 return BinaryOperator::Create(Op0I->getOpcode(), NewLHS, Op0RHS); in visitAnd()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/InstCombine/
DInstCombinePHI.cpp325 PHINode *NewLHS = nullptr, *NewRHS = nullptr; in FoldPHIArgBinOpIntoPHI() local
327 NewLHS = PHINode::Create(LHSType, PN.getNumIncomingValues(), in FoldPHIArgBinOpIntoPHI()
329 NewLHS->addIncoming(InLHS, PN.getIncomingBlock(0)); in FoldPHIArgBinOpIntoPHI()
330 InsertNewInstBefore(NewLHS, PN); in FoldPHIArgBinOpIntoPHI()
331 LHSVal = NewLHS; in FoldPHIArgBinOpIntoPHI()
343 if (NewLHS || NewRHS) { in FoldPHIArgBinOpIntoPHI()
346 if (NewLHS) { in FoldPHIArgBinOpIntoPHI()
348 NewLHS->addIncoming(NewInLHS, PN.getIncomingBlock(i)); in FoldPHIArgBinOpIntoPHI()
DInstCombineAndOrXor.cpp90 Value *NewLHS; in SimplifyBSwap() local
91 if (!match(OldLHS, m_BSwap(m_Value(NewLHS)))) in SimplifyBSwap()
110 Value *BinOp = Builder.CreateBinOp(I.getOpcode(), NewLHS, NewRHS); in SimplifyBSwap()
1481 Value *NewLHS = Builder.CreateAnd(X, Op1, X->getName() + ".masked"); in visitAnd() local
1482 return BinaryOperator::Create(BinOp, NewLHS, Y); in visitAnd()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Utils/
DSimplifyIndVar.cpp210 Value *NewLHS = CheapExpansions[InvariantLHS]; in makeIVComparisonInvariant() local
213 if (!NewLHS) in makeIVComparisonInvariant()
215 NewLHS = ConstLHS->getValue(); in makeIVComparisonInvariant()
220 if (!NewLHS || !NewRHS) in makeIVComparisonInvariant()
228 ICmp->setOperand(0, NewLHS); in makeIVComparisonInvariant()
/external/llvm/lib/Transforms/Scalar/
DReassociate.cpp653 Value *NewLHS = Ops[i].Op; in RewriteExprTree() local
658 if (NewLHS == OldLHS && NewRHS == OldRHS) in RewriteExprTree()
662 if (NewLHS == OldRHS && NewRHS == OldLHS) { in RewriteExprTree()
675 if (NewLHS != OldLHS) { in RewriteExprTree()
679 Op->setOperand(0, NewLHS); in RewriteExprTree()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/
DReassociate.cpp670 Value *NewLHS = Ops[i].Op; in RewriteExprTree() local
675 if (NewLHS == OldLHS && NewRHS == OldRHS) in RewriteExprTree()
679 if (NewLHS == OldRHS && NewRHS == OldLHS) { in RewriteExprTree()
692 if (NewLHS != OldLHS) { in RewriteExprTree()
696 Op->setOperand(0, NewLHS); in RewriteExprTree()

12