Home
last modified time | relevance | path

Searched refs:NewRHS (Results 1 – 25 of 49) sorted by relevance

12

/external/swiftshader/third_party/LLVM/lib/CodeGen/SelectionDAG/
DLegalizeFloatTypes.cpp612 void DAGTypeLegalizer::SoftenSetCCOperands(SDValue &NewLHS, SDValue &NewRHS, in SoftenSetCCOperands() argument
615 SDValue RHSInt = GetSoftenedFloat(NewRHS); in SoftenSetCCOperands()
683 NewRHS = DAG.getConstant(0, RetVT); in SoftenSetCCOperands()
687 NewLHS, NewRHS, DAG.getCondCode(CCCode)); in SoftenSetCCOperands()
690 NewRHS, DAG.getCondCode(TLI.getCmpLibcallCC(LC2))); in SoftenSetCCOperands()
692 NewRHS = SDValue(); 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()
719 if (NewRHS.getNode() == 0) { in SoftenFloatOp_BR_CC()
720 NewRHS = DAG.getConstant(0, NewLHS.getValueType()); in SoftenFloatOp_BR_CC()
[all …]
DLegalizeIntegerTypes.cpp808 void DAGTypeLegalizer::PromoteSetCCOperands(SDValue &NewLHS,SDValue &NewRHS, in PromoteSetCCOperands() argument
825 NewRHS = ZExtPromotedInteger(NewRHS); in PromoteSetCCOperands()
832 NewRHS = SExtPromotedInteger(NewRHS); in PromoteSetCCOperands()
2469 SDValue &NewRHS, in IntegerExpandSetCCOperands() argument
2474 GetExpandedInteger(NewRHS, RHSLo, RHSHi); in IntegerExpandSetCCOperands()
2483 NewRHS = RHSLo; in IntegerExpandSetCCOperands()
2490 NewRHS = DAG.getNode(ISD::XOR, dl, LHSLo.getValueType(), LHSHi, RHSHi); in IntegerExpandSetCCOperands()
2491 NewLHS = DAG.getNode(ISD::OR, dl, NewLHS.getValueType(), NewLHS, NewRHS); in IntegerExpandSetCCOperands()
2492 NewRHS = DAG.getConstant(0, NewLHS.getValueType()); in IntegerExpandSetCCOperands()
2498 if (ConstantSDNode *CST = dyn_cast<ConstantSDNode>(NewRHS)) 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
869 NewRHS = GetSoftenedFloat(NewRHS); in SoftenFloatOp_BR_CC()
870 TLI.softenSetCCOperands(DAG, VT, NewLHS, NewRHS, CCCode, SDLoc(N)); in SoftenFloatOp_BR_CC()
874 if (!NewRHS.getNode()) { 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
921 NewRHS = GetSoftenedFloat(NewRHS); in SoftenFloatOp_SELECT_CC()
922 TLI.softenSetCCOperands(DAG, VT, NewLHS, NewRHS, CCCode, SDLoc(N)); in SoftenFloatOp_SELECT_CC()
926 if (!NewRHS.getNode()) { in SoftenFloatOp_SELECT_CC()
[all …]
DLegalizeIntegerTypes.cpp942 void DAGTypeLegalizer::PromoteSetCCOperands(SDValue &NewLHS,SDValue &NewRHS, in PromoteSetCCOperands() argument
952 SDValue OpR = GetPromotedInteger(NewRHS); in PromoteSetCCOperands()
961 cast<VTSDNode>(OpR->getOperand(1))->getVT() == NewRHS.getValueType()) { in PromoteSetCCOperands()
963 NewRHS = OpR; in PromoteSetCCOperands()
966 NewRHS = ZExtPromotedInteger(NewRHS); in PromoteSetCCOperands()
978 NewRHS = ZExtPromotedInteger(NewRHS); in PromoteSetCCOperands()
985 NewRHS = SExtPromotedInteger(NewRHS); in PromoteSetCCOperands()
2792 SDValue &NewRHS, in IntegerExpandSetCCOperands() argument
2797 GetExpandedInteger(NewRHS, RHSLo, RHSHi); in IntegerExpandSetCCOperands()
2806 NewRHS = RHSLo; in IntegerExpandSetCCOperands()
[all …]
/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
884 NewRHS = GetSoftenedFloat(NewRHS); in SoftenFloatOp_BR_CC()
885 TLI.softenSetCCOperands(DAG, VT, NewLHS, NewRHS, CCCode, SDLoc(N)); in SoftenFloatOp_BR_CC()
889 if (!NewRHS.getNode()) { 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
975 NewRHS = GetSoftenedFloat(NewRHS); in SoftenFloatOp_SELECT_CC()
976 TLI.softenSetCCOperands(DAG, VT, NewLHS, NewRHS, CCCode, SDLoc(N)); in SoftenFloatOp_SELECT_CC()
980 if (!NewRHS.getNode()) { in SoftenFloatOp_SELECT_CC()
[all …]
DLegalizeIntegerTypes.cpp982 void DAGTypeLegalizer::PromoteSetCCOperands(SDValue &NewLHS,SDValue &NewRHS, in PromoteSetCCOperands() argument
992 SDValue OpR = GetPromotedInteger(NewRHS); in PromoteSetCCOperands()
1003 OpREffectiveBits <= NewRHS.getScalarValueSizeInBits()) { in PromoteSetCCOperands()
1005 NewRHS = OpR; in PromoteSetCCOperands()
1008 NewRHS = ZExtPromotedInteger(NewRHS); in PromoteSetCCOperands()
1020 NewRHS = ZExtPromotedInteger(NewRHS); in PromoteSetCCOperands()
1027 NewRHS = SExtPromotedInteger(NewRHS); in PromoteSetCCOperands()
2951 SDValue &NewRHS, in IntegerExpandSetCCOperands() argument
2956 GetExpandedInteger(NewRHS, RHSLo, RHSHi); in IntegerExpandSetCCOperands()
2965 NewRHS = RHSLo; in IntegerExpandSetCCOperands()
[all …]
/external/swiftshader/third_party/LLVM/include/llvm/ADT/
DTwine.h481 Child NewLHS, NewRHS; in concat() local
483 NewRHS.twine = &Suffix; in concat()
490 NewRHS = Suffix.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
197 NewRHS = in eliminateIVComparison()
202 i != e && (!NewLHS || !NewRHS); in eliminateIVComparison()
247 if (!NewRHS && IncomingS == InvariantRHS) in eliminateIVComparison()
248 NewRHS = Incoming; in eliminateIVComparison()
251 if (!NewLHS || !NewRHS) in eliminateIVComparison()
260 ICmp->setOperand(1, NewRHS); in eliminateIVComparison()
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/ADT/
DTwine.h499 Child NewLHS, NewRHS; in concat() local
501 NewRHS.twine = &Suffix; in concat()
508 NewRHS = Suffix.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
500 NewRHS.twine = &Suffix; in concat()
507 NewRHS = Suffix.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
511 NewRHS.twine = &Suffix; in concat()
518 NewRHS = Suffix.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
91 NewRHS = PHINode::Create(RHSType, PN.getNumIncomingValues(), in FoldPHIArgBinOpIntoPHI()
93 NewRHS->addIncoming(InRHS, PN.getIncomingBlock(0)); in FoldPHIArgBinOpIntoPHI()
94 InsertNewInstBefore(NewRHS, PN); in FoldPHIArgBinOpIntoPHI()
95 RHSVal = NewRHS; in FoldPHIArgBinOpIntoPHI()
99 if (NewLHS || NewRHS) { in FoldPHIArgBinOpIntoPHI()
106 if (NewRHS) { in FoldPHIArgBinOpIntoPHI()
108 NewRHS->addIncoming(NewInRHS, PN.getIncomingBlock(i)); in FoldPHIArgBinOpIntoPHI()
DInstCombineAndOrXor.cpp1066 Value *NewRHS = Builder->CreateAnd(Op0RHS, AndRHS, in visitAnd() local
1068 return BinaryOperator::Create(Op0I->getOpcode(), Op0LHS, NewRHS); in visitAnd()
2174 Constant *NewRHS = ConstantExpr::getOr(Op0CI, RHS); in visitXor() local
2178 NewRHS = ConstantExpr::getAnd(NewRHS, in visitXor()
2182 I.setOperand(1, NewRHS); in visitXor()
DInstCombineShifts.cpp512 Constant *NewRHS = ConstantExpr::get(I.getOpcode(), Op0C, Op1); in FoldShiftByConstant() local
519 NewRHS); in FoldShiftByConstant()
/external/llvm/lib/Transforms/InstCombine/
DInstCombinePHI.cpp69 PHINode *NewLHS = nullptr, *NewRHS = nullptr; in FoldPHIArgBinOpIntoPHI() local
79 NewRHS = PHINode::Create(RHSType, PN.getNumIncomingValues(), in FoldPHIArgBinOpIntoPHI()
81 NewRHS->addIncoming(InRHS, PN.getIncomingBlock(0)); in FoldPHIArgBinOpIntoPHI()
82 InsertNewInstBefore(NewRHS, PN); in FoldPHIArgBinOpIntoPHI()
83 RHSVal = NewRHS; in FoldPHIArgBinOpIntoPHI()
87 if (NewLHS || NewRHS) { in FoldPHIArgBinOpIntoPHI()
94 if (NewRHS) { in FoldPHIArgBinOpIntoPHI()
96 NewRHS->addIncoming(NewInRHS, PN.getIncomingBlock(i)); in FoldPHIArgBinOpIntoPHI()
DInstCombineAndOrXor.cpp132 Value *NewRHS = IsBswapRHS ? IntrRHS->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()
1347 Value *NewRHS = Builder->CreateAnd(Op0RHS, AndRHS, in visitAnd() local
1349 return BinaryOperator::Create(Op0I->getOpcode(), Op0LHS, NewRHS); in visitAnd()
2592 Constant *NewRHS = ConstantExpr::getOr(Op0CI, RHS); in visitXor() local
2596 NewRHS = ConstantExpr::getAnd(NewRHS, in visitXor()
2600 I.setOperand(1, NewRHS); in visitXor()
DInstCombineSelect.cpp1164 Value *NewRHS = Builder->CreateNot(RHS); 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()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/InstCombine/
DInstCombineShifts.cpp512 Constant *NewRHS = ConstantExpr::get(I.getOpcode(), in FoldShiftByConstant() local
520 NewRHS); in FoldShiftByConstant()
529 Constant *NewRHS = ConstantExpr::get(I.getOpcode(), in FoldShiftByConstant() local
535 return BinaryOperator::CreateSub(NewRHS, NewShift); in FoldShiftByConstant()
556 Constant *NewRHS = ConstantExpr::get(I.getOpcode(), in FoldShiftByConstant() local
562 NewRHS); in FoldShiftByConstant()
575 Constant *NewRHS = ConstantExpr::get(I.getOpcode(), in FoldShiftByConstant() local
581 NewRHS); in FoldShiftByConstant()
DInstCombinePHI.cpp325 PHINode *NewLHS = nullptr, *NewRHS = nullptr; in FoldPHIArgBinOpIntoPHI() local
335 NewRHS = PHINode::Create(RHSType, PN.getNumIncomingValues(), in FoldPHIArgBinOpIntoPHI()
337 NewRHS->addIncoming(InRHS, PN.getIncomingBlock(0)); in FoldPHIArgBinOpIntoPHI()
338 InsertNewInstBefore(NewRHS, PN); in FoldPHIArgBinOpIntoPHI()
339 RHSVal = NewRHS; in FoldPHIArgBinOpIntoPHI()
343 if (NewLHS || NewRHS) { in FoldPHIArgBinOpIntoPHI()
350 if (NewRHS) { in FoldPHIArgBinOpIntoPHI()
352 NewRHS->addIncoming(NewInRHS, PN.getIncomingBlock(i)); in FoldPHIArgBinOpIntoPHI()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Utils/
DSimplifyIndVar.cpp211 Value *NewRHS = CheapExpansions[InvariantRHS]; in makeIVComparisonInvariant() local
216 if (!NewRHS) in makeIVComparisonInvariant()
218 NewRHS = ConstRHS->getValue(); in makeIVComparisonInvariant()
220 if (!NewLHS || !NewRHS) in makeIVComparisonInvariant()
229 ICmp->setOperand(1, NewRHS); in makeIVComparisonInvariant()
/external/llvm/lib/Transforms/Scalar/
DReassociate.cpp654 Value *NewRHS = Ops[i+1].Op; in RewriteExprTree() local
658 if (NewLHS == OldLHS && NewRHS == OldRHS) in RewriteExprTree()
662 if (NewLHS == OldRHS && NewRHS == OldLHS) { in RewriteExprTree()
681 if (NewRHS != OldRHS) { in RewriteExprTree()
685 Op->setOperand(1, NewRHS); in RewriteExprTree()
698 Value *NewRHS = Ops[i].Op; in RewriteExprTree() local
699 if (NewRHS != Op->getOperand(1)) { in RewriteExprTree()
701 if (NewRHS == Op->getOperand(0)) { in RewriteExprTree()
710 Op->setOperand(1, NewRHS); in RewriteExprTree()
DGuardWidening.cpp438 ConstantInt *NewRHS = ConstantInt::get(Cond0->getContext(), NewRHSAP); in widenCondCommon() local
439 Result = new ICmpInst(InsertPt, Pred, LHS, NewRHS, "wide.chk"); in widenCondCommon()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/
DReassociate.cpp671 Value *NewRHS = Ops[i+1].Op; in RewriteExprTree() local
675 if (NewLHS == OldLHS && NewRHS == OldRHS) in RewriteExprTree()
679 if (NewLHS == OldRHS && NewRHS == OldLHS) { in RewriteExprTree()
698 if (NewRHS != OldRHS) { in RewriteExprTree()
702 Op->setOperand(1, NewRHS); in RewriteExprTree()
715 Value *NewRHS = Ops[i].Op; in RewriteExprTree() local
716 if (NewRHS != Op->getOperand(1)) { in RewriteExprTree()
718 if (NewRHS == Op->getOperand(0)) { in RewriteExprTree()
727 Op->setOperand(1, NewRHS); in RewriteExprTree()
DGuardWidening.cpp495 ConstantInt *NewRHS = ConstantInt::get(Cond0->getContext(), NewRHSAP); in widenCondCommon() local
496 Result = new ICmpInst(InsertPt, Pred, LHS, NewRHS, "wide.chk"); in widenCondCommon()

12