Home
last modified time | relevance | path

Searched refs:NewRHS (Results 1 – 25 of 29) 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 …]
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/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/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()
DInstCombineCompares.cpp1011 APInt NewRHS = RHS->getValue().zext(SrcBits); in visitICmpInstWithInstAndIntCst() local
1012 NewRHS |= KnownOne; in visitICmpInstWithInstAndIntCst()
1014 ConstantInt::get(ICI.getContext(), NewRHS)); in visitICmpInstWithInstAndIntCst()
/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()
DInstCombineCompares.cpp911 Value *NewRHS = rewriteGEPAsOffset(RHS, PtrBase, DL, Nodes); in transformToIndexedCompare() local
917 return new ICmpInst(ICmpInst::getSignedPredicate(Cond), Index, NewRHS); in transformToIndexedCompare()
1564 APInt NewRHS = RHS->getValue().zext(SrcBits); in visitICmpInstWithInstAndIntCst() local
1565 NewRHS |= KnownOne & APInt::getHighBitsSet(SrcBits, SrcBits-DstBits); in visitICmpInstWithInstAndIntCst()
1567 Builder->getInt(NewRHS)); in visitICmpInstWithInstAndIntCst()
DInstructionCombining.cpp1320 Value *NewRHS = isa<Constant>(LHS) ? Shuffle->getOperand(0) : C2; in SimplifyVectorOp() local
1321 Value *NewBO = CreateBinOpAsGiven(Inst, NewLHS, NewRHS, Builder); in SimplifyVectorOp()
/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/lib/Transforms/Scalar/
DLoopStrengthReduce.cpp1708 Value *NewRHS = 0; in OptimizeMax() local
1715 NewRHS = BO->getOperand(0); in OptimizeMax()
1720 NewRHS = BO->getOperand(0); in OptimizeMax()
1721 if (!NewRHS) in OptimizeMax()
1724 NewRHS = Sel->getOperand(1); in OptimizeMax()
1726 NewRHS = Sel->getOperand(2); in OptimizeMax()
1728 NewRHS = SU->getValue(); in OptimizeMax()
1741 new ICmpInst(Cond, Pred, Cond->getOperand(0), NewRHS, "scmp"); in OptimizeMax()

12