Lines Matching refs:TLO
379 TargetLoweringOpt &TLO, in SimplifyDemandedBits() argument
395 TLO.DAG.computeKnownBits(Op, KnownZero, KnownOne, Depth); in SimplifyDemandedBits()
404 return TLO.CombineTo(Op, TLO.DAG.getUNDEF(Op.getValueType())); in SimplifyDemandedBits()
425 TLO.DAG.computeKnownBits(Op.getOperand(0), LHSZero, LHSOne, Depth); in SimplifyDemandedBits()
428 return TLO.CombineTo(Op, Op.getOperand(0)); in SimplifyDemandedBits()
431 if (TLO.ShrinkDemandedConstant(Op, ~LHSZero & NewMask)) in SimplifyDemandedBits()
436 KnownOne, TLO, Depth+1)) in SimplifyDemandedBits()
440 KnownZero2, KnownOne2, TLO, Depth+1)) in SimplifyDemandedBits()
447 return TLO.CombineTo(Op, Op.getOperand(0)); in SimplifyDemandedBits()
449 return TLO.CombineTo(Op, Op.getOperand(1)); in SimplifyDemandedBits()
452 return TLO.CombineTo(Op, TLO.DAG.getConstant(0, Op.getValueType())); in SimplifyDemandedBits()
454 if (TLO.ShrinkDemandedConstant(Op, ~KnownZero2 & NewMask)) in SimplifyDemandedBits()
457 if (TLO.ShrinkDemandedOp(Op, BitWidth, NewMask, dl)) in SimplifyDemandedBits()
467 KnownOne, TLO, Depth+1)) in SimplifyDemandedBits()
471 KnownZero2, KnownOne2, TLO, Depth+1)) in SimplifyDemandedBits()
478 return TLO.CombineTo(Op, Op.getOperand(0)); in SimplifyDemandedBits()
480 return TLO.CombineTo(Op, Op.getOperand(1)); in SimplifyDemandedBits()
484 return TLO.CombineTo(Op, Op.getOperand(0)); in SimplifyDemandedBits()
486 return TLO.CombineTo(Op, Op.getOperand(1)); in SimplifyDemandedBits()
488 if (TLO.ShrinkDemandedConstant(Op, NewMask)) in SimplifyDemandedBits()
491 if (TLO.ShrinkDemandedOp(Op, BitWidth, NewMask, dl)) in SimplifyDemandedBits()
501 KnownOne, TLO, Depth+1)) in SimplifyDemandedBits()
505 KnownOne2, TLO, Depth+1)) in SimplifyDemandedBits()
512 return TLO.CombineTo(Op, Op.getOperand(0)); in SimplifyDemandedBits()
514 return TLO.CombineTo(Op, Op.getOperand(1)); in SimplifyDemandedBits()
516 if (TLO.ShrinkDemandedOp(Op, BitWidth, NewMask, dl)) in SimplifyDemandedBits()
523 return TLO.CombineTo(Op, TLO.DAG.getNode(ISD::OR, dl, Op.getValueType(), in SimplifyDemandedBits()
540 SDValue ANDC = TLO.DAG.getConstant(~KnownOne & NewMask, VT); in SimplifyDemandedBits()
541 return TLO.CombineTo(Op, TLO.DAG.getNode(ISD::AND, dl, VT, in SimplifyDemandedBits()
555 SDValue New = TLO.DAG.getNode(Op.getOpcode(), dl,VT, Op.getOperand(0), in SimplifyDemandedBits()
556 TLO.DAG.getConstant(Expanded, VT)); in SimplifyDemandedBits()
557 return TLO.CombineTo(Op, New); in SimplifyDemandedBits()
561 } else if (TLO.ShrinkDemandedConstant(Op, NewMask)) { in SimplifyDemandedBits()
571 KnownOne, TLO, Depth+1)) in SimplifyDemandedBits()
574 KnownOne2, TLO, Depth+1)) in SimplifyDemandedBits()
580 if (TLO.ShrinkDemandedConstant(Op, NewMask)) in SimplifyDemandedBits()
589 KnownOne, TLO, Depth+1)) in SimplifyDemandedBits()
592 KnownOne2, TLO, Depth+1)) in SimplifyDemandedBits()
598 if (TLO.ShrinkDemandedConstant(Op, NewMask)) in SimplifyDemandedBits()
629 TLO.DAG.getConstant(Diff, Op.getOperand(1).getValueType()); in SimplifyDemandedBits()
631 return TLO.CombineTo(Op, TLO.DAG.getNode(Opc, dl, VT, in SimplifyDemandedBits()
637 KnownZero, KnownOne, TLO, Depth+1)) in SimplifyDemandedBits()
652 TLO.DAG.getNode(ISD::SHL, dl, InnerVT, InnerOp, in SimplifyDemandedBits()
653 TLO.DAG.getConstant(ShAmt, ShTy)); in SimplifyDemandedBits()
655 TLO.CombineTo(Op, in SimplifyDemandedBits()
656 TLO.DAG.getNode(ISD::ANY_EXTEND, dl, Op.getValueType(), in SimplifyDemandedBits()
675 TLO.DAG.getConstant(ShAmt - InnerShAmt, in SimplifyDemandedBits()
678 SDValue NewExt = TLO.DAG.getNode(ISD::ANY_EXTEND, dl, VT, in SimplifyDemandedBits()
680 return TLO.CombineTo(Op, TLO.DAG.getNode(ISD::SHL, dl, VT, in SimplifyDemandedBits()
718 TLO.DAG.getConstant(Diff, Op.getOperand(1).getValueType()); in SimplifyDemandedBits()
719 return TLO.CombineTo(Op, TLO.DAG.getNode(Opc, dl, VT, in SimplifyDemandedBits()
726 KnownZero, KnownOne, TLO, Depth+1)) in SimplifyDemandedBits()
742 return TLO.CombineTo(Op, in SimplifyDemandedBits()
743 TLO.DAG.getNode(ISD::SRL, dl, Op.getValueType(), in SimplifyDemandedBits()
763 KnownZero, KnownOne, TLO, Depth+1)) in SimplifyDemandedBits()
775 return TLO.CombineTo(Op, TLO.DAG.getNode(ISD::SRL, dl, VT, in SimplifyDemandedBits()
783 TLO.DAG.getConstant(BitWidth - 1 - Log2, in SimplifyDemandedBits()
785 return TLO.CombineTo(Op, TLO.DAG.getNode(ISD::SRL, dl, VT, in SimplifyDemandedBits()
804 TLO.DAG.ComputeNumSignBits(InOp) >= VTBits-ShAmt+1; in SimplifyDemandedBits()
811 if (TLO.LegalTypes() && !ShiftAmtTy.isVector()) in SimplifyDemandedBits()
814 SDValue ShiftAmt = TLO.DAG.getConstant(BitWidth - ShAmt, ShiftAmtTy); in SimplifyDemandedBits()
815 return TLO.CombineTo(Op, TLO.DAG.getNode(ISD::SHL, dl, in SimplifyDemandedBits()
829 return TLO.CombineTo(Op, Op.getOperand(0)); in SimplifyDemandedBits()
843 KnownZero, KnownOne, TLO, Depth+1)) in SimplifyDemandedBits()
852 return TLO.CombineTo(Op, in SimplifyDemandedBits()
853 TLO.DAG.getZeroExtendInReg(Op.getOperand(0),dl,ExVT)); in SimplifyDemandedBits()
875 KnownOneLo, TLO, Depth + 1)) in SimplifyDemandedBits()
879 KnownOneHi, TLO, Depth + 1)) in SimplifyDemandedBits()
898 return TLO.CombineTo(Op, TLO.DAG.getNode(ISD::ANY_EXTEND, dl, in SimplifyDemandedBits()
903 KnownZero, KnownOne, TLO, Depth+1)) in SimplifyDemandedBits()
920 return TLO.CombineTo(Op,TLO.DAG.getNode(ISD::ANY_EXTEND, dl, in SimplifyDemandedBits()
931 KnownOne, TLO, Depth+1)) in SimplifyDemandedBits()
938 return TLO.CombineTo(Op, TLO.DAG.getNode(ISD::ZERO_EXTEND, dl, in SimplifyDemandedBits()
957 KnownZero, KnownOne, TLO, Depth+1)) in SimplifyDemandedBits()
971 KnownZero, KnownOne, TLO, Depth+1)) in SimplifyDemandedBits()
985 if (TLO.LegalTypes() && in SimplifyDemandedBits()
994 if (TLO.LegalTypes()) { in SimplifyDemandedBits()
997 TLO.DAG.getConstant(ShVal, getShiftAmountTy(Op.getValueType())); in SimplifyDemandedBits()
1007 SDValue NewTrunc = TLO.DAG.getNode(ISD::TRUNCATE, dl, in SimplifyDemandedBits()
1010 return TLO.CombineTo(Op, TLO.DAG.getNode(ISD::SRL, dl, in SimplifyDemandedBits()
1029 KnownZero, KnownOne, TLO, Depth+1)) in SimplifyDemandedBits()
1039 if (!TLO.LegalOperations() && in SimplifyDemandedBits()
1050 SDValue Sign = TLO.DAG.getNode(ISD::FGETSIGN, dl, Ty, Op.getOperand(0)); in SimplifyDemandedBits()
1053 Sign = TLO.DAG.getNode(ISD::ZERO_EXTEND, dl, Op.getValueType(), Sign); in SimplifyDemandedBits()
1055 SDValue ShAmt = TLO.DAG.getConstant(ShVal, Op.getValueType()); in SimplifyDemandedBits()
1056 return TLO.CombineTo(Op, TLO.DAG.getNode(ISD::SHL, dl, in SimplifyDemandedBits()
1070 KnownOne2, TLO, Depth+1)) in SimplifyDemandedBits()
1073 KnownOne2, TLO, Depth+1)) in SimplifyDemandedBits()
1076 if (TLO.ShrinkDemandedOp(Op, BitWidth, NewMask, dl)) in SimplifyDemandedBits()
1082 TLO.DAG.computeKnownBits(Op, KnownZero, KnownOne, Depth); in SimplifyDemandedBits()
1089 return TLO.CombineTo(Op, TLO.DAG.getConstant(KnownOne, Op.getValueType())); in SimplifyDemandedBits()