Lines Matching refs:getConstant
257 NewRHS = DAG.getConstant(0, dl, RetVT); in softenSetCCOperands()
361 DAG.getConstant(Demanded & in ShrinkDemandedConstant()
506 return TLO.CombineTo(Op, TLO.DAG.getConstant(0, dl, Op.getValueType())); in SimplifyDemandedBits()
594 SDValue ANDC = TLO.DAG.getConstant(~KnownOne & NewMask, dl, VT); in SimplifyDemandedBits()
610 TLO.DAG.getConstant(Expanded, dl, VT)); in SimplifyDemandedBits()
683 TLO.DAG.getConstant(Diff, dl, Op.getOperand(1).getValueType()); in SimplifyDemandedBits()
707 TLO.DAG.getConstant(ShAmt, dl, ShTy)); in SimplifyDemandedBits()
729 TLO.DAG.getConstant(ShAmt - InnerShAmt, dl, in SimplifyDemandedBits()
779 TLO.DAG.getConstant(Diff, dl, Op.getOperand(1).getValueType()); in SimplifyDemandedBits()
852 TLO.DAG.getConstant(BitWidth - 1 - Log2, dl, in SimplifyDemandedBits()
883 SDValue ShiftAmt = TLO.DAG.getConstant(BitWidth - ShAmt, dl, in SimplifyDemandedBits()
1066 Shift = TLO.DAG.getConstant(ShVal, dl, in SimplifyDemandedBits()
1127 SDValue ShAmt = TLO.DAG.getConstant(ShVal, dl, Op.getValueType()); in SimplifyDemandedBits()
1171 TLO.DAG.getConstant(KnownOne, dl, Op.getValueType())); in SimplifyDemandedBits()
1308 SDValue Zero = DAG.getConstant(0, DL, OpVT); in simplifySetCCWithAnd()
1352 case ISD::SETFALSE2: return DAG.getConstant(0, dl, VT); in SimplifySetCC()
1357 return DAG.getConstant( in SimplifySetCC()
1393 SDValue Zero = DAG.getConstant(0, dl, N0.getValueType()); in SimplifySetCC()
1414 DAG.getConstant(1, dl, CTVT)); in SimplifySetCC()
1417 return DAG.getSetCC(dl, VT, And, DAG.getConstant(0, dl, CTVT), CC); in SimplifySetCC()
1471 SDValue C = DAG.getConstant(C1.trunc(MinBits), dl, MinVT); in SimplifySetCC()
1554 DAG.getConstant(bestOffset, dl, PtrType)); in SimplifySetCC()
1561 DAG.getConstant(bestMask.trunc(bestWidth), in SimplifySetCC()
1563 DAG.getConstant(0LL, dl, newVT), Cond); in SimplifySetCC()
1579 case ISD::SETEQ: return DAG.getConstant(0, dl, VT); in SimplifySetCC()
1582 case ISD::SETNE: return DAG.getConstant(1, dl, VT); in SimplifySetCC()
1586 return DAG.getConstant(C1.isNegative(), dl, VT); in SimplifySetCC()
1590 return DAG.getConstant(C1.isNonNegative(), dl, VT); in SimplifySetCC()
1610 SDValue NewConst = DAG.getConstant(C1.trunc(InSize), dl, newVT); in SimplifySetCC()
1631 return DAG.getConstant(Cond == ISD::SETNE, dl, VT); in SimplifySetCC()
1640 DAG.getConstant(Imm, dl, Op0Ty)); in SimplifySetCC()
1646 DAG.getConstant(C1 & APInt::getLowBitsSet( in SimplifySetCC()
1719 DAG.getConstant(1, dl, VT)); in SimplifySetCC()
1723 DAG.getConstant(1, dl, VT)); in SimplifySetCC()
1726 DAG.getConstant(0, dl, Op0.getValueType()), in SimplifySetCC()
1732 DAG.getConstant(0, dl, Op0.getValueType()), in SimplifySetCC()
1749 if (C1 == MinVal) return DAG.getConstant(1, dl, VT); // X >= MIN --> true in SimplifySetCC()
1758 DAG.getConstant(C, dl, N1.getValueType()), in SimplifySetCC()
1764 if (C1 == MaxVal) return DAG.getConstant(1, dl, VT); // X <= MAX --> true in SimplifySetCC()
1773 DAG.getConstant(C, dl, N1.getValueType()), in SimplifySetCC()
1779 return DAG.getConstant(0, dl, VT); // X < MIN --> false in SimplifySetCC()
1781 return DAG.getConstant(1, dl, VT); // X >= MIN --> true in SimplifySetCC()
1783 return DAG.getConstant(0, dl, VT); // X > MAX --> false in SimplifySetCC()
1785 return DAG.getConstant(1, dl, VT); // X <= MAX --> true in SimplifySetCC()
1797 DAG.getConstant(MinVal, dl, N0.getValueType()), in SimplifySetCC()
1802 DAG.getConstant(MaxVal, dl, N0.getValueType()), in SimplifySetCC()
1812 DAG.getConstant(0, dl, N1.getValueType()), in SimplifySetCC()
1819 DAG.getConstant(APInt::getAllOnesValue(OperandBitSize), dl, in SimplifySetCC()
1839 DAG.getConstant(AndRHS->getAPIntValue().logBase2(), dl, in SimplifySetCC()
1848 DAG.getConstant(C1.logBase2(), dl, in SimplifySetCC()
1870 DAG.getConstant(ShiftBits, dl, in SimplifySetCC()
1872 SDValue CmpRHS = DAG.getConstant(C1.lshr(ShiftBits), dl, CmpTy); in SimplifySetCC()
1902 DAG.getConstant(ShiftBits, dl, ShiftTy)); in SimplifySetCC()
1903 SDValue CmpRHS = DAG.getConstant(NewC, dl, CmpTy); in SimplifySetCC()
1922 return DAG.getConstant(0, dl, VT); in SimplifySetCC()
1924 return DAG.getConstant(1, dl, VT); in SimplifySetCC()
1991 return DAG.getConstant(EqVal, dl, VT); in SimplifySetCC()
1995 return DAG.getConstant(EqVal, dl, VT); in SimplifySetCC()
1997 return DAG.getConstant(EqVal, dl, VT); in SimplifySetCC()
2036 DAG.getConstant(RHSC->getAPIntValue()- in SimplifySetCC()
2048 DAG.getConstant(LHSR->getAPIntValue() ^ in SimplifySetCC()
2059 DAG.getConstant(SUBC->getAPIntValue() - in SimplifySetCC()
2078 DAG.getConstant(0, dl, N0.getValueType()), Cond); in SimplifySetCC()
2082 DAG.getConstant(0, dl, N0.getValueType()), in SimplifySetCC()
2090 DAG.getConstant(1, dl, in SimplifySetCC()
2105 DAG.getConstant(0, dl, N1.getValueType()), Cond); in SimplifySetCC()
2109 DAG.getConstant(0, dl, N1.getValueType()), Cond); in SimplifySetCC()
2116 DAG.getConstant(1, dl, getShiftAmountTy(N0.getValueType(), DL))); in SimplifySetCC()
2797 DAG.getConstant(ShAmt, dl, TLI.getShiftAmountTy(Op1.getValueType(), in BuildExactSDIV()
2811 SDValue Op2 = DAG.getConstant(xn, dl, Op1.getValueType()); in BuildExactSDIV()
2856 DAG.getConstant(magics.m, dl, VT)); in BuildSDIV()
2861 DAG.getConstant(magics.m, dl, VT)).getNode(), 1); in BuildSDIV()
2879 DAG.getConstant(magics.s, dl, getShiftAmountTy(Q.getValueType(), DL))); in BuildSDIV()
2885 DAG.getConstant(VT.getScalarSizeInBits() - 1, dl, in BuildSDIV()
2921 DAG.getConstant(Shift, dl, getShiftAmountTy(Q.getValueType(), DL))); in BuildUDIV()
2933 Q = DAG.getNode(ISD::MULHU, dl, VT, Q, DAG.getConstant(magics.m, dl, VT)); in BuildUDIV()
2937 DAG.getConstant(magics.m, dl, VT)).getNode(), 1); in BuildUDIV()
2948 DAG.getConstant(magics.s, dl, getShiftAmountTy(Q.getValueType(), DL))); in BuildUDIV()
2954 DAG.getConstant(1, dl, getShiftAmountTy(NPQ.getValueType(), DL))); in BuildUDIV()
2960 DAG.getConstant(magics.s - 1, dl, in BuildUDIV()
3049 SDValue Shift = DAG.getConstant(ShiftAmt, dl, getShiftAmountTy(VT, DL)); in expandMUL()
3099 SDValue ExponentMask = DAG.getConstant(0x7F800000, dl, IntVT); in expandFP_TO_SINT()
3100 SDValue ExponentLoBit = DAG.getConstant(23, dl, IntVT); in expandFP_TO_SINT()
3101 SDValue Bias = DAG.getConstant(127, dl, IntVT); in expandFP_TO_SINT()
3102 SDValue SignMask = DAG.getConstant(APInt::getSignBit(VT.getSizeInBits()), dl, in expandFP_TO_SINT()
3104 SDValue SignLowBit = DAG.getConstant(VT.getSizeInBits() - 1, dl, IntVT); in expandFP_TO_SINT()
3105 SDValue MantissaMask = DAG.getConstant(0x007FFFFF, dl, IntVT); in expandFP_TO_SINT()
3122 DAG.getConstant(0x00800000, dl, IntVT)); in expandFP_TO_SINT()
3142 Result = DAG.getSelectCC(dl, Exponent, DAG.getConstant(0, dl, IntVT), in expandFP_TO_SINT()
3143 DAG.getConstant(0, dl, NVT), Ret, ISD::SETLT); in expandFP_TO_SINT()
3177 DAG.getConstant(Stride, SL, PtrVT)); in scalarizeVectorLoad()
3225 DAG.getConstant(Idx, SL, IdxVT)); in scalarizeVectorStore()
3228 DAG.getConstant(Idx * Stride, SL, PtrVT)); in scalarizeVectorStore()
3290 SDValue PtrIncrement = DAG.getConstant(RegBytes, dl, PtrVT); in expandUnalignedLoad()
3291 SDValue StackPtrIncrement = DAG.getConstant(RegBytes, dl, StackPtrVT); in expandUnalignedLoad()
3367 DAG.getConstant(IncrementSize, dl, Ptr.getValueType())); in expandUnalignedLoad()
3379 DAG.getConstant(IncrementSize, dl, Ptr.getValueType())); in expandUnalignedLoad()
3389 DAG.getConstant(NumBits, dl, getShiftAmountTy(Hi.getValueType(), in expandUnalignedLoad()
3451 SDValue PtrIncrement = DAG.getConstant(RegBytes, dl, PtrVT); in expandUnalignedStore()
3452 SDValue StackPtrIncrement = DAG.getConstant(RegBytes, dl, StackPtrVT); in expandUnalignedStore()
3507 DAG.getConstant(NumBits, dl, getShiftAmountTy(Val.getValueType(), in expandUnalignedStore()
3521 DAG.getConstant(IncrementSize, dl, PtrVT)); in expandUnalignedStore()