Home
last modified time | relevance | path

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

12

/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 …]
DLegalizeTypes.h386 void IntegerExpandSetCCOperands(SDValue &NewLHS, SDValue &NewRHS,
540 void FloatExpandSetCCOperands(SDValue &NewLHS, SDValue &NewRHS,
DTargetLowering.cpp151 SDValue &NewLHS, SDValue &NewRHS, in softenSetCCOperands() argument
254 SDValue Ops[2] = {NewLHS, NewRHS}; in softenSetCCOperands()
257 NewRHS = DAG.getConstant(0, dl, RetVT); in softenSetCCOperands()
267 NewLHS, NewRHS, DAG.getCondCode(CCCode)); in softenSetCCOperands()
273 NewLHS, NewRHS, DAG.getCondCode(getCmpLibcallCC(LC2))); in softenSetCCOperands()
275 NewRHS = SDValue(); in softenSetCCOperands()
/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 …]
DLegalizeTypes.h439 void IntegerExpandSetCCOperands(SDValue &NewLHS, SDValue &NewRHS,
592 void FloatExpandSetCCOperands(SDValue &NewLHS, SDValue &NewRHS,
/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/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()
DInstCombineShifts.cpp529 Constant *NewRHS = ConstantExpr::get(I.getOpcode(), Op0C, Op1); in FoldShiftByConstant() local
536 NewRHS); in FoldShiftByConstant()
/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()
DInstCombineAndOrXor.cpp94 Value *NewRHS; in SimplifyBSwap() local
97 if (match(OldRHS, m_BSwap(m_Value(NewRHS)))) { in SimplifyBSwap()
106 NewRHS = ConstantInt::get(I.getType(), C->byteSwap()); in SimplifyBSwap()
110 Value *BinOp = Builder.CreateBinOp(I.getOpcode(), NewLHS, NewRHS); in SimplifyBSwap()
1475 Value *NewRHS = Builder.CreateAnd(Y, Op1, Y->getName() + ".masked"); in visitAnd() local
1476 return BinaryOperator::Create(BinOp, X, NewRHS); in visitAnd()
/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()
DLoopStrengthReduce.cpp2022 Value *NewRHS = nullptr; in OptimizeMax() local
2028 NewRHS = BO->getOperand(0); in OptimizeMax()
2032 NewRHS = BO->getOperand(0); in OptimizeMax()
2033 if (!NewRHS) in OptimizeMax()
2036 NewRHS = Sel->getOperand(1); in OptimizeMax()
2038 NewRHS = Sel->getOperand(2); in OptimizeMax()
2040 NewRHS = SU->getValue(); in OptimizeMax()
2053 new ICmpInst(Cond, Pred, Cond->getOperand(0), NewRHS, "scmp"); in OptimizeMax()
/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()
DLoopStrengthReduce.cpp2280 Value *NewRHS = nullptr; in OptimizeMax() local
2286 NewRHS = BO->getOperand(0); in OptimizeMax()
2290 NewRHS = BO->getOperand(0); in OptimizeMax()
2291 if (!NewRHS) in OptimizeMax()
2294 NewRHS = Sel->getOperand(1); in OptimizeMax()
2296 NewRHS = Sel->getOperand(2); in OptimizeMax()
2298 NewRHS = SU->getValue(); in OptimizeMax()
2311 new ICmpInst(Cond, Pred, Cond->getOperand(0), NewRHS, "scmp"); in OptimizeMax()

12