Searched defs:NewRHS (Results 1 - 21 of 21) sorted by relevance

/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/
H A DInstCombineShifts.cpp512 Constant *NewRHS = ConstantExpr::get(I.getOpcode(), Op0C, Op1); local
519 NewRHS);
H A DInstCombinePHI.cpp81 PHINode *NewLHS = 0, *NewRHS = 0; local
91 NewRHS = PHINode::Create(RHSType, PN.getNumIncomingValues(),
93 NewRHS->addIncoming(InRHS, PN.getIncomingBlock(0));
94 InsertNewInstBefore(NewRHS, PN);
95 RHSVal = NewRHS;
99 if (NewLHS || NewRHS) {
106 if (NewRHS) {
108 NewRHS->addIncoming(NewInRHS, PN.getIncomingBlock(i));
H A DInstCombineAndOrXor.cpp1066 Value *NewRHS = Builder->CreateAnd(Op0RHS, AndRHS, local
1068 return BinaryOperator::Create(Op0I->getOpcode(), Op0LHS, NewRHS);
2174 Constant *NewRHS = ConstantExpr::getOr(Op0CI, RHS); local
2176 // NewRHS.
2178 NewRHS = ConstantExpr::getAnd(NewRHS,
2182 I.setOperand(1, NewRHS);
H A DInstCombineCompares.cpp1011 APInt NewRHS = RHS->getValue().zext(SrcBits); local
1012 NewRHS |= KnownOne;
1014 ConstantInt::get(ICI.getContext(), NewRHS));
/external/llvm/lib/Transforms/InstCombine/
H A DInstCombineShifts.cpp529 Constant *NewRHS = ConstantExpr::get(I.getOpcode(), Op0C, Op1); local
536 NewRHS);
H A DInstCombinePHI.cpp69 PHINode *NewLHS = nullptr, *NewRHS = nullptr; local
79 NewRHS = PHINode::Create(RHSType, PN.getNumIncomingValues(),
81 NewRHS->addIncoming(InRHS, PN.getIncomingBlock(0));
82 InsertNewInstBefore(NewRHS, PN);
83 RHSVal = NewRHS;
87 if (NewLHS || NewRHS) {
94 if (NewRHS) {
96 NewRHS->addIncoming(NewInRHS, PN.getIncomingBlock(i));
H A DInstCombineSelect.cpp1164 Value *NewRHS = Builder->CreateNot(RHS); local
1166 ? Builder->CreateICmpSLT(NewLHS, NewRHS)
1167 : Builder->CreateICmpULT(NewLHS, NewRHS);
1169 Builder->CreateNot(Builder->CreateSelect(NewCmp, NewLHS, NewRHS));
H A DInstCombineAndOrXor.cpp132 Value *NewRHS = IsBswapRHS ? IntrRHS->getOperand(0) : local
137 BinOp = Builder->CreateAnd(NewLHS, NewRHS);
139 BinOp = Builder->CreateOr(NewLHS, NewRHS);
141 BinOp = Builder->CreateXor(NewLHS, NewRHS);
1347 Value *NewRHS = Builder->CreateAnd(Op0RHS, AndRHS, local
1349 return BinaryOperator::Create(Op0I->getOpcode(), Op0LHS, NewRHS);
2592 Constant *NewRHS = ConstantExpr::getOr(Op0CI, RHS); local
2594 // NewRHS.
2596 NewRHS = ConstantExpr::getAnd(NewRHS,
[all...]
H A DInstructionCombining.cpp1320 Value *NewRHS = isa<Constant>(LHS) ? Shuffle->getOperand(0) : C2; local
1321 Value *NewBO = CreateBinOpAsGiven(Inst, NewLHS, NewRHS, Builder);
H A DInstCombineCompares.cpp911 Value *NewRHS = rewriteGEPAsOffset(RHS, PtrBase, DL, Nodes);
914 // GEP having PtrBase as the pointer base, and has returned in NewRHS the
917 return new ICmpInst(ICmpInst::getSignedPredicate(Cond), Index, NewRHS);
1564 APInt NewRHS = RHS->getValue().zext(SrcBits); local
1565 NewRHS |= KnownOne & APInt::getHighBitsSet(SrcBits, SrcBits-DstBits);
1567 Builder->getInt(NewRHS));
/external/llvm/lib/Transforms/Utils/
H A DSimplifyIndVar.cpp190 Value *NewLHS = nullptr, *NewRHS = nullptr; local
197 NewRHS =
202 i != e && (!NewLHS || !NewRHS);
247 if (!NewRHS && IncomingS == InvariantRHS)
248 NewRHS = Incoming;
251 if (!NewLHS || !NewRHS)
260 ICmp->setOperand(1, NewRHS);
/external/llvm/lib/Transforms/Scalar/
H A DReassociate.cpp654 Value *NewRHS = Ops[i+1].Op; local
658 if (NewLHS == OldLHS && NewRHS == OldRHS)
662 if (NewLHS == OldRHS && NewRHS == OldLHS) {
681 if (NewRHS != OldRHS) {
685 Op->setOperand(1, NewRHS);
698 Value *NewRHS = Ops[i].Op; local
699 if (NewRHS != Op->getOperand(1)) {
701 if (NewRHS == Op->getOperand(0)) {
710 Op->setOperand(1, NewRHS);
H A DLoopStrengthReduce.cpp2022 Value *NewRHS = nullptr; local
2028 NewRHS = BO->getOperand(0);
2032 NewRHS = BO->getOperand(0);
2033 if (!NewRHS)
2036 NewRHS = Sel->getOperand(1);
2038 NewRHS = Sel->getOperand(2);
2040 NewRHS = SU->getValue();
2053 new ICmpInst(Cond, Pred, Cond->getOperand(0), NewRHS, "scmp");
/external/swiftshader/third_party/LLVM/lib/CodeGen/SelectionDAG/
H A DLegalizeFloatTypes.cpp612 void DAGTypeLegalizer::SoftenSetCCOperands(SDValue &NewLHS, SDValue &NewRHS, argument
615 SDValue RHSInt = GetSoftenedFloat(NewRHS);
683 NewRHS = DAG.getConstant(0, RetVT);
687 NewLHS, NewRHS, DAG.getCondCode(CCCode));
690 NewRHS, DAG.getCondCode(TLI.getCmpLibcallCC(LC2)));
692 NewRHS = SDValue();
713 SDValue NewLHS = N->getOperand(2), NewRHS = N->getOperand(3); local
715 SoftenSetCCOperands(NewLHS, NewRHS, CCCode, N->getDebugLoc());
719 if (NewRHS.getNode() == 0) {
720 NewRHS
755 SDValue NewLHS = N->getOperand(0), NewRHS = N->getOperand(1); local
774 SDValue NewLHS = N->getOperand(0), NewRHS = N->getOperand(1); local
1293 FloatExpandSetCCOperands(SDValue &NewLHS, SDValue &NewRHS, ISD::CondCode &CCCode, DebugLoc dl) argument
1324 SDValue NewLHS = N->getOperand(2), NewRHS = N->getOperand(3); local
1405 SDValue NewLHS = N->getOperand(0), NewRHS = N->getOperand(1); local
1423 SDValue NewLHS = N->getOperand(0), NewRHS = N->getOperand(1); local
[all...]
H A DLegalizeIntegerTypes.cpp808 void DAGTypeLegalizer::PromoteSetCCOperands(SDValue &NewLHS,SDValue &NewRHS, argument
825 NewRHS = ZExtPromotedInteger(NewRHS);
832 NewRHS = SExtPromotedInteger(NewRHS);
2469 SDValue &NewRHS,
2474 GetExpandedInteger(NewRHS, RHSLo, RHSHi);
2483 NewRHS = RHSLo;
2490 NewRHS = DAG.getNode(ISD::XOR, dl, LHSLo.getValueType(), LHSHi, RHSHi);
2491 NewLHS = DAG.getNode(ISD::OR, dl, NewLHS.getValueType(), NewLHS, NewRHS);
2468 IntegerExpandSetCCOperands(SDValue &NewLHS, SDValue &NewRHS, ISD::CondCode &CCCode, DebugLoc dl) argument
2569 SDValue NewLHS = N->getOperand(2), NewRHS = N->getOperand(3); local
2587 SDValue NewLHS = N->getOperand(0), NewRHS = N->getOperand(1); local
2605 SDValue NewLHS = N->getOperand(0), NewRHS = N->getOperand(1); local
[all...]
H A DDAGCombiner.cpp3226 SDValue NewRHS = DAG.getNode(N->getOpcode(), LHS->getOperand(1).getDebugLoc(), local
3236 return DAG.getNode(LHS->getOpcode(), N->getDebugLoc(), VT, NewShift, NewRHS);
/external/llvm/lib/CodeGen/SelectionDAG/
H A DLegalizeFloatTypes.cpp864 SDValue NewLHS = N->getOperand(2), NewRHS = N->getOperand(3); local
869 NewRHS = GetSoftenedFloat(NewRHS);
870 TLI.softenSetCCOperands(DAG, VT, NewLHS, NewRHS, CCCode, SDLoc(N));
874 if (!NewRHS.getNode()) {
875 NewRHS = DAG.getConstant(0, SDLoc(N), NewLHS.getValueType());
881 DAG.getCondCode(CCCode), NewLHS, NewRHS,
916 SDValue NewLHS = N->getOperand(0), NewRHS = N->getOperand(1); local
921 NewRHS = GetSoftenedFloat(NewRHS);
939 SDValue NewLHS = N->getOperand(0), NewRHS = N->getOperand(1); local
1534 FloatExpandSetCCOperands(SDValue &NewLHS, SDValue &NewRHS, ISD::CondCode &CCCode, const SDLoc &dl) argument
1565 SDValue NewLHS = N->getOperand(2), NewRHS = N->getOperand(3); local
1660 SDValue NewLHS = N->getOperand(0), NewRHS = N->getOperand(1); local
1678 SDValue NewLHS = N->getOperand(0), NewRHS = N->getOperand(1); local
[all...]
H A DLegalizeIntegerTypes.cpp942 void DAGTypeLegalizer::PromoteSetCCOperands(SDValue &NewLHS,SDValue &NewRHS, argument
952 SDValue OpR = GetPromotedInteger(NewRHS);
961 cast<VTSDNode>(OpR->getOperand(1))->getVT() == NewRHS.getValueType()) {
963 NewRHS = OpR;
966 NewRHS = ZExtPromotedInteger(NewRHS);
978 NewRHS = ZExtPromotedInteger(NewRHS);
985 NewRHS = SExtPromotedInteger(NewRHS);
2791 IntegerExpandSetCCOperands(SDValue &NewLHS, SDValue &NewRHS, ISD::CondCode &CCCode, const SDLoc &dl) argument
2938 SDValue NewLHS = N->getOperand(2), NewRHS = N->getOperand(3); local
2956 SDValue NewLHS = N->getOperand(0), NewRHS = N->getOperand(1); local
2974 SDValue NewLHS = N->getOperand(0), NewRHS = N->getOperand(1); local
[all...]
H A DTargetLowering.cpp151 SDValue &NewLHS, SDValue &NewRHS,
254 SDValue Ops[2] = {NewLHS, NewRHS};
257 NewRHS = DAG.getConstant(0, dl, RetVT);
267 NewLHS, NewRHS, DAG.getCondCode(CCCode));
273 NewLHS, NewRHS, DAG.getCondCode(getCmpLibcallCC(LC2)));
275 NewRHS = SDValue();
150 softenSetCCOperands(SelectionDAG &DAG, EVT VT, SDValue &NewLHS, SDValue &NewRHS, ISD::CondCode &CCCode, const SDLoc &dl) const argument
/external/llvm/lib/Analysis/
H A DInstructionSimplify.cpp3112 Constant *NewRHS = ConstantExpr::getGetElementPtr( local
3114 return ConstantExpr::getICmp(Pred, NewLHS, NewRHS);
/external/swiftshader/third_party/LLVM/lib/Transforms/Scalar/
H A DLoopStrengthReduce.cpp1708 Value *NewRHS = 0; local
1715 NewRHS = BO->getOperand(0);
1720 NewRHS = BO->getOperand(0);
1721 if (!NewRHS)
1724 NewRHS = Sel->getOperand(1);
1726 NewRHS = Sel->getOperand(2);
1728 NewRHS = SU->getValue();
1741 new ICmpInst(Cond, Pred, Cond->getOperand(0), NewRHS, "scmp");

Completed in 402 milliseconds