Lines Matching refs:TLO
432 TargetLoweringOpt &TLO, in SimplifyDemandedBits() argument
439 auto &DL = TLO.DAG.getDataLayout(); in SimplifyDemandedBits()
449 TLO.DAG.computeKnownBits(Op, KnownZero, KnownOne, Depth); in SimplifyDemandedBits()
458 return TLO.CombineTo(Op, TLO.DAG.getUNDEF(Op.getValueType())); in SimplifyDemandedBits()
479 TLO.DAG.computeKnownBits(Op.getOperand(0), LHSZero, LHSOne, Depth); in SimplifyDemandedBits()
482 return TLO.CombineTo(Op, Op.getOperand(0)); in SimplifyDemandedBits()
485 if (TLO.ShrinkDemandedConstant(Op, ~LHSZero & NewMask)) in SimplifyDemandedBits()
490 KnownOne, TLO, Depth+1)) in SimplifyDemandedBits()
494 KnownZero2, KnownOne2, TLO, Depth+1)) in SimplifyDemandedBits()
501 return TLO.CombineTo(Op, Op.getOperand(0)); in SimplifyDemandedBits()
503 return TLO.CombineTo(Op, Op.getOperand(1)); in SimplifyDemandedBits()
506 return TLO.CombineTo(Op, TLO.DAG.getConstant(0, dl, Op.getValueType())); in SimplifyDemandedBits()
508 if (TLO.ShrinkDemandedConstant(Op, ~KnownZero2 & NewMask)) in SimplifyDemandedBits()
511 if (TLO.ShrinkDemandedOp(Op, BitWidth, NewMask, dl)) in SimplifyDemandedBits()
521 KnownOne, TLO, Depth+1)) in SimplifyDemandedBits()
525 KnownZero2, KnownOne2, TLO, Depth+1)) in SimplifyDemandedBits()
532 return TLO.CombineTo(Op, Op.getOperand(0)); in SimplifyDemandedBits()
534 return TLO.CombineTo(Op, Op.getOperand(1)); in SimplifyDemandedBits()
538 return TLO.CombineTo(Op, Op.getOperand(0)); in SimplifyDemandedBits()
540 return TLO.CombineTo(Op, Op.getOperand(1)); in SimplifyDemandedBits()
542 if (TLO.ShrinkDemandedConstant(Op, NewMask)) in SimplifyDemandedBits()
545 if (TLO.ShrinkDemandedOp(Op, BitWidth, NewMask, dl)) in SimplifyDemandedBits()
555 KnownOne, TLO, Depth+1)) in SimplifyDemandedBits()
559 KnownOne2, TLO, Depth+1)) in SimplifyDemandedBits()
566 return TLO.CombineTo(Op, Op.getOperand(0)); in SimplifyDemandedBits()
568 return TLO.CombineTo(Op, Op.getOperand(1)); in SimplifyDemandedBits()
570 if (TLO.ShrinkDemandedOp(Op, BitWidth, NewMask, dl)) in SimplifyDemandedBits()
577 return TLO.CombineTo(Op, TLO.DAG.getNode(ISD::OR, dl, Op.getValueType(), in SimplifyDemandedBits()
594 SDValue ANDC = TLO.DAG.getConstant(~KnownOne & NewMask, dl, VT); in SimplifyDemandedBits()
595 return TLO.CombineTo(Op, TLO.DAG.getNode(ISD::AND, dl, VT, in SimplifyDemandedBits()
609 SDValue New = TLO.DAG.getNode(Op.getOpcode(), dl,VT, Op.getOperand(0), in SimplifyDemandedBits()
610 TLO.DAG.getConstant(Expanded, dl, VT)); in SimplifyDemandedBits()
611 return TLO.CombineTo(Op, New); in SimplifyDemandedBits()
615 } else if (TLO.ShrinkDemandedConstant(Op, NewMask)) { in SimplifyDemandedBits()
625 KnownOne, TLO, Depth+1)) in SimplifyDemandedBits()
628 KnownOne2, TLO, Depth+1)) in SimplifyDemandedBits()
634 if (TLO.ShrinkDemandedConstant(Op, NewMask)) in SimplifyDemandedBits()
643 KnownOne, TLO, Depth+1)) in SimplifyDemandedBits()
646 KnownOne2, TLO, Depth+1)) in SimplifyDemandedBits()
652 if (TLO.ShrinkDemandedConstant(Op, NewMask)) in SimplifyDemandedBits()
683 TLO.DAG.getConstant(Diff, dl, Op.getOperand(1).getValueType()); in SimplifyDemandedBits()
685 return TLO.CombineTo(Op, TLO.DAG.getNode(Opc, dl, VT, in SimplifyDemandedBits()
691 KnownZero, KnownOne, TLO, Depth+1)) in SimplifyDemandedBits()
706 TLO.DAG.getNode(ISD::SHL, dl, InnerVT, InnerOp, in SimplifyDemandedBits()
707 TLO.DAG.getConstant(ShAmt, dl, ShTy)); in SimplifyDemandedBits()
709 TLO.CombineTo(Op, in SimplifyDemandedBits()
710 TLO.DAG.getNode(ISD::ANY_EXTEND, dl, Op.getValueType(), in SimplifyDemandedBits()
729 TLO.DAG.getConstant(ShAmt - InnerShAmt, dl, in SimplifyDemandedBits()
732 SDValue NewExt = TLO.DAG.getNode(ISD::ANY_EXTEND, dl, VT, in SimplifyDemandedBits()
734 return TLO.CombineTo(Op, TLO.DAG.getNode(ISD::SHL, dl, VT, in SimplifyDemandedBits()
779 TLO.DAG.getConstant(Diff, dl, Op.getOperand(1).getValueType()); in SimplifyDemandedBits()
780 return TLO.CombineTo(Op, TLO.DAG.getNode(Opc, dl, VT, in SimplifyDemandedBits()
787 KnownZero, KnownOne, TLO, Depth+1)) in SimplifyDemandedBits()
803 return TLO.CombineTo(Op, in SimplifyDemandedBits()
804 TLO.DAG.getNode(ISD::SRL, dl, Op.getValueType(), in SimplifyDemandedBits()
829 KnownZero, KnownOne, TLO, Depth+1)) in SimplifyDemandedBits()
843 return TLO.CombineTo(Op, in SimplifyDemandedBits()
844 TLO.DAG.getNode(ISD::SRL, dl, VT, Op.getOperand(0), in SimplifyDemandedBits()
852 TLO.DAG.getConstant(BitWidth - 1 - Log2, dl, in SimplifyDemandedBits()
854 return TLO.CombineTo(Op, TLO.DAG.getNode(ISD::SRL, dl, VT, in SimplifyDemandedBits()
873 TLO.DAG.ComputeNumSignBits(InOp) >= VTBits-ShAmt+1; in SimplifyDemandedBits()
880 if (TLO.LegalTypes() && !ShiftAmtTy.isVector()) in SimplifyDemandedBits()
883 SDValue ShiftAmt = TLO.DAG.getConstant(BitWidth - ShAmt, dl, in SimplifyDemandedBits()
885 return TLO.CombineTo(Op, TLO.DAG.getNode(ISD::SHL, dl, in SimplifyDemandedBits()
899 return TLO.CombineTo(Op, Op.getOperand(0)); in SimplifyDemandedBits()
913 KnownZero, KnownOne, TLO, Depth+1)) in SimplifyDemandedBits()
922 return TLO.CombineTo(Op, in SimplifyDemandedBits()
923 TLO.DAG.getZeroExtendInReg(Op.getOperand(0),dl,ExVT)); in SimplifyDemandedBits()
945 KnownOneLo, TLO, Depth + 1)) in SimplifyDemandedBits()
949 KnownOneHi, TLO, Depth + 1)) in SimplifyDemandedBits()
968 return TLO.CombineTo(Op, TLO.DAG.getNode(ISD::ANY_EXTEND, dl, in SimplifyDemandedBits()
973 KnownZero, KnownOne, TLO, Depth+1)) in SimplifyDemandedBits()
990 return TLO.CombineTo(Op,TLO.DAG.getNode(ISD::ANY_EXTEND, dl, in SimplifyDemandedBits()
1001 KnownOne, TLO, Depth+1)) in SimplifyDemandedBits()
1008 return TLO.CombineTo(Op, TLO.DAG.getNode(ISD::ZERO_EXTEND, dl, in SimplifyDemandedBits()
1027 KnownZero, KnownOne, TLO, Depth+1)) in SimplifyDemandedBits()
1041 KnownZero, KnownOne, TLO, Depth+1)) in SimplifyDemandedBits()
1055 if (TLO.LegalTypes() && in SimplifyDemandedBits()
1064 if (TLO.LegalTypes()) { in SimplifyDemandedBits()
1066 Shift = TLO.DAG.getConstant(ShVal, dl, in SimplifyDemandedBits()
1077 SDValue NewTrunc = TLO.DAG.getNode(ISD::TRUNCATE, dl, in SimplifyDemandedBits()
1080 return TLO.CombineTo(Op, TLO.DAG.getNode(ISD::SRL, dl, in SimplifyDemandedBits()
1099 KnownZero, KnownOne, TLO, Depth+1)) in SimplifyDemandedBits()
1109 if (!TLO.LegalOperations() && in SimplifyDemandedBits()
1122 SDValue Sign = TLO.DAG.getNode(ISD::FGETSIGN, dl, Ty, Op.getOperand(0)); in SimplifyDemandedBits()
1125 Sign = TLO.DAG.getNode(ISD::ZERO_EXTEND, dl, Op.getValueType(), Sign); in SimplifyDemandedBits()
1127 SDValue ShAmt = TLO.DAG.getConstant(ShVal, dl, Op.getValueType()); in SimplifyDemandedBits()
1128 return TLO.CombineTo(Op, TLO.DAG.getNode(ISD::SHL, dl, in SimplifyDemandedBits()
1142 KnownOne2, TLO, Depth+1)) in SimplifyDemandedBits()
1145 KnownOne2, TLO, Depth+1)) in SimplifyDemandedBits()
1148 if (TLO.ShrinkDemandedOp(Op, BitWidth, NewMask, dl)) in SimplifyDemandedBits()
1154 TLO.DAG.computeKnownBits(Op, KnownZero, KnownOne, Depth); in SimplifyDemandedBits()
1170 return TLO.CombineTo(Op, in SimplifyDemandedBits()
1171 TLO.DAG.getConstant(KnownOne, dl, Op.getValueType())); in SimplifyDemandedBits()