Lines Matching refs:getConstant
264 NewRHS = DAG.getConstant(0, dl, RetVT); in softenSetCCOperands()
375 SDValue NewC = DAG.getConstant(Demanded & C, DL, VT); in ShrinkDemandedConstant()
659 return TLO.CombineTo(Op, TLO.DAG.getConstant(0, dl, VT)); in SimplifyDemandedBits()
744 TLO.DAG.getConstant(~C->getAPIntValue() & DemandedBits, dl, VT); in SimplifyDemandedBits()
857 SDValue NewSA = TLO.DAG.getConstant(Diff, dl, Op1.getValueType()); in SimplifyDemandedBits()
882 TLO.DAG.getConstant(ShAmt, dl, ShTy)); in SimplifyDemandedBits()
900 SDValue NewSA = TLO.DAG.getConstant(ShAmt - InnerShAmt, dl, in SimplifyDemandedBits()
951 SDValue NewSA = TLO.DAG.getConstant(Diff, dl, Op1.getValueType()); in SimplifyDemandedBits()
1019 TLO.DAG.getConstant(BitWidth - 1 - Log2, dl, Op1.getValueType()); in SimplifyDemandedBits()
1048 TLO.DAG.getConstant(BitWidth - ExVTBits, dl, ShiftAmtTy); in SimplifyDemandedBits()
1207 Shift = TLO.DAG.getConstant(ShVal, dl, getShiftAmountTy(VT, DL)); in SimplifyDemandedBits()
1295 SDValue ShAmt = TLO.DAG.getConstant(ShVal, dl, VT); in SimplifyDemandedBits()
1413 return TLO.CombineTo(Op, TLO.DAG.getConstant(Known.One, dl, VT)); in SimplifyDemandedBits()
1804 return TLO.CombineTo(Op, TLO.DAG.getConstant(0, SDLoc(Op), VT)); in SimplifyDemandedVectorElts()
1855 return TLO.CombineTo(Op, TLO.DAG.getConstant(0, SDLoc(Op), VT)); in SimplifyDemandedVectorElts()
2074 SDValue Zero = DAG.getConstant(0, DL, OpVT); in simplifySetCCWithAnd()
2195 SDValue ShiftAmt = DAG.getConstant(MaskedBits, DL, XVT); in optimizeSetCCOfSignedTruncationCheck()
2251 SDValue Zero = DAG.getConstant(0, dl, N0.getValueType()); in SimplifySetCC()
2272 DAG.getConstant(1, dl, CTVT)); in SimplifySetCC()
2275 return DAG.getSetCC(dl, VT, And, DAG.getConstant(0, dl, CTVT), CC); in SimplifySetCC()
2331 return DAG.getSetCC(dl, VT, Trunc, DAG.getConstant(0, dl, MVT::i1), in SimplifySetCC()
2333 SDValue C = DAG.getConstant(C1.trunc(MinBits), dl, MinVT); in SimplifySetCC()
2416 DAG.getConstant(bestOffset, dl, PtrType)); in SimplifySetCC()
2423 DAG.getConstant(bestMask.trunc(bestWidth), in SimplifySetCC()
2425 DAG.getConstant(0LL, dl, newVT), Cond); in SimplifySetCC()
2442 return DAG.getConstant(0, dl, VT); in SimplifySetCC()
2446 return DAG.getConstant(1, dl, VT); in SimplifySetCC()
2450 return DAG.getConstant(C1.isNegative(), dl, VT); in SimplifySetCC()
2454 return DAG.getConstant(C1.isNonNegative(), dl, VT); in SimplifySetCC()
2474 SDValue NewConst = DAG.getConstant(C1.trunc(InSize), dl, newVT); in SimplifySetCC()
2495 return DAG.getConstant(Cond == ISD::SETNE, dl, VT); in SimplifySetCC()
2504 DAG.getConstant(Imm, dl, Op0Ty)); in SimplifySetCC()
2510 DAG.getConstant(C1 & APInt::getLowBitsSet( in SimplifySetCC()
2583 DAG.getConstant(1, dl, VT)); in SimplifySetCC()
2587 DAG.getConstant(1, dl, VT)); in SimplifySetCC()
2590 DAG.getConstant(0, dl, Op0.getValueType()), in SimplifySetCC()
2596 DAG.getConstant(0, dl, Op0.getValueType()), in SimplifySetCC()
2636 DAG.getConstant(C, dl, N1.getValueType()), in SimplifySetCC()
2656 DAG.getConstant(C, dl, N1.getValueType()), in SimplifySetCC()
2675 DAG.getConstant(MinVal, dl, N0.getValueType()), in SimplifySetCC()
2693 DAG.getConstant(MaxVal, dl, N0.getValueType()), in SimplifySetCC()
2706 DAG.getConstant(0, dl, N1.getValueType()), in SimplifySetCC()
2713 DAG.getConstant(APInt::getAllOnesValue(OperandBitSize), dl, in SimplifySetCC()
2739 DAG.getConstant(AndRHS->getAPIntValue().logBase2(), dl, in SimplifySetCC()
2748 DAG.getConstant(C1.logBase2(), dl, in SimplifySetCC()
2769 DAG.getConstant(ShiftBits, dl, in SimplifySetCC()
2771 SDValue CmpRHS = DAG.getConstant(C1.lshr(ShiftBits), dl, CmpTy); in SimplifySetCC()
2800 DAG.getConstant(ShiftBits, dl, ShiftTy)); in SimplifySetCC()
2801 SDValue CmpRHS = DAG.getConstant(NewC, dl, CmpTy); in SimplifySetCC()
2937 DAG.getConstant(RHSC->getAPIntValue()- in SimplifySetCC()
2949 DAG.getConstant(LHSR->getAPIntValue() ^ in SimplifySetCC()
2960 DAG.getConstant(SUBC->getAPIntValue() - in SimplifySetCC()
2979 DAG.getConstant(0, dl, N0.getValueType()), Cond); in SimplifySetCC()
2983 DAG.getConstant(0, dl, N0.getValueType()), in SimplifySetCC()
2991 DAG.getConstant(1, dl, in SimplifySetCC()
3007 DAG.getConstant(0, dl, N1.getValueType()), Cond); in SimplifySetCC()
3011 DAG.getConstant(0, dl, N1.getValueType()), Cond); in SimplifySetCC()
3018 DAG.getConstant(1, dl, getShiftAmountTy(N0.getValueType(), DL, in SimplifySetCC()
3719 Shifts.push_back(DAG.getConstant(Shift, dl, ShSVT)); in BuildExactSDIV()
3720 Factors.push_back(DAG.getConstant(Factor, dl, SVT)); in BuildExactSDIV()
3809 MagicFactors.push_back(DAG.getConstant(magics.m, dl, SVT)); in BuildSDIV()
3810 Factors.push_back(DAG.getConstant(NumeratorFactor, dl, SVT)); in BuildSDIV()
3811 Shifts.push_back(DAG.getConstant(magics.s, dl, ShSVT)); in BuildSDIV()
3812 ShiftMasks.push_back(DAG.getConstant(ShiftMask, dl, SVT)); in BuildSDIV()
3862 SDValue SignShift = DAG.getConstant(EltBits - 1, dl, ShVT); in BuildSDIV()
3923 PreShifts.push_back(DAG.getConstant(PreShift, dl, ShSVT)); in BuildUDIV()
3924 MagicFactors.push_back(DAG.getConstant(Magic, dl, SVT)); in BuildUDIV()
3926 DAG.getConstant(SelNPQ ? APInt::getOneBitSet(EltBits, EltBits - 1) in BuildUDIV()
3929 PostShifts.push_back(DAG.getConstant(PostShift, dl, ShSVT)); in BuildUDIV()
3987 NPQ = DAG.getNode(ISD::SRL, dl, VT, NPQ, DAG.getConstant(1, dl, ShVT)); in BuildUDIV()
3998 SDValue One = DAG.getConstant(1, dl, VT); in BuildUDIV()
4083 SDValue Zero = DAG.getConstant(0, dl, HiLoVT); in expandMUL_LOHI()
4110 SDValue Shift = DAG.getConstant(ShiftAmount, dl, ShiftAmountTy); in expandMUL_LOHI()
4157 SDValue Zero = DAG.getConstant(0, dl, HiLoVT); in expandMUL_LOHI()
4167 Merge(Lo, Hi), DAG.getConstant(0, dl, BoolType)); in expandMUL_LOHI()
4238 SDValue BitWidthC = DAG.getConstant(EltSizeInBits, DL, ShVT); in expandFunnelShift()
4239 SDValue Zero = DAG.getConstant(0, DL, ShVT); in expandFunnelShift()
4243 SDValue Mask = DAG.getConstant(EltSizeInBits - 1, DL, ShVT); in expandFunnelShift()
4276 SDValue BitWidthC = DAG.getConstant(EltSizeInBits, DL, ShVT); in expandROT()
4301 SDValue BitWidthMinusOneC = DAG.getConstant(EltSizeInBits - 1, DL, ShVT); in expandROT()
4328 SDValue ExponentMask = DAG.getConstant(0x7F800000, dl, IntVT); in expandFP_TO_SINT()
4329 SDValue ExponentLoBit = DAG.getConstant(23, dl, IntVT); in expandFP_TO_SINT()
4330 SDValue Bias = DAG.getConstant(127, dl, IntVT); in expandFP_TO_SINT()
4331 SDValue SignMask = DAG.getConstant(APInt::getSignMask(SrcEltBits), dl, IntVT); in expandFP_TO_SINT()
4332 SDValue SignLowBit = DAG.getConstant(SrcEltBits - 1, dl, IntVT); in expandFP_TO_SINT()
4333 SDValue MantissaMask = DAG.getConstant(0x007FFFFF, dl, IntVT); in expandFP_TO_SINT()
4349 DAG.getConstant(0x00800000, dl, IntVT)); in expandFP_TO_SINT()
4368 Result = DAG.getSelectCC(dl, Exponent, DAG.getConstant(0, dl, IntVT), in expandFP_TO_SINT()
4369 DAG.getConstant(0, dl, DstVT), Ret, ISD::SETLT); in expandFP_TO_SINT()
4415 SDValue Ofs = DAG.getSelect(dl, DstVT, Sel, DAG.getConstant(0, dl, DstVT), in expandFP_TO_UINT()
4416 DAG.getConstant(SignMask, dl, DstVT)); in expandFP_TO_UINT()
4430 DAG.getConstant(SignMask, dl, DstVT)); in expandFP_TO_UINT()
4463 SDValue ShiftConst = DAG.getConstant(1, dl, ShiftVT); in expandUINT_TO_FP()
4465 SDValue AndConst = DAG.getConstant(1, dl, SrcVT); in expandUINT_TO_FP()
4480 dl, SetCCVT, Src, DAG.getConstant(0, dl, SrcVT), ISD::SETLT); in expandUINT_TO_FP()
4500 SDValue TwoP52 = DAG.getConstant(UINT64_C(0x4330000000000000), dl, SrcVT); in expandUINT_TO_FP()
4503 SDValue TwoP84 = DAG.getConstant(UINT64_C(0x4530000000000000), dl, SrcVT); in expandUINT_TO_FP()
4504 SDValue LoMask = DAG.getConstant(UINT64_C(0x00000000FFFFFFFF), dl, SrcVT); in expandUINT_TO_FP()
4505 SDValue HiShift = DAG.getConstant(32, dl, ShiftVT); in expandUINT_TO_FP()
4574 DAG.getConstant(APInt::getSplat(Len, APInt(8, 0x55)), dl, VT); in expandCTPOP()
4576 DAG.getConstant(APInt::getSplat(Len, APInt(8, 0x33)), dl, VT); in expandCTPOP()
4578 DAG.getConstant(APInt::getSplat(Len, APInt(8, 0x0F)), dl, VT); in expandCTPOP()
4580 DAG.getConstant(APInt::getSplat(Len, APInt(8, 0x01)), dl, VT); in expandCTPOP()
4586 DAG.getConstant(1, dl, ShVT)), in expandCTPOP()
4592 DAG.getConstant(2, dl, ShVT)), in expandCTPOP()
4598 DAG.getConstant(4, dl, ShVT))), in expandCTPOP()
4604 DAG.getConstant(Len - 8, dl, ShVT)); in expandCTPOP()
4630 SDValue Zero = DAG.getConstant(0, dl, VT); in expandCTLZ()
4633 DAG.getConstant(NumBitsPerElt, dl, VT), CTLZ); in expandCTLZ()
4654 SDValue Tmp = DAG.getConstant(1ULL << i, dl, ShVT); in expandCTLZ()
4682 SDValue Zero = DAG.getConstant(0, dl, VT); in expandCTTZ()
4685 DAG.getConstant(NumBitsPerElt, dl, VT), CTTZ); in expandCTTZ()
4704 DAG.getNode(ISD::SUB, dl, VT, Op, DAG.getConstant(1, dl, VT))); in expandCTTZ()
4709 DAG.getNode(ISD::SUB, dl, VT, DAG.getConstant(NumBitsPerElt, dl, VT), in expandCTTZ()
4733 DAG.getConstant(VT.getScalarSizeInBits() - 1, dl, ShVT)); in expandABS()
4806 SDValue CurrVal = DAG.getConstant(0, SL, IntVT); in scalarizeVectorStore()
4810 DAG.getConstant(Idx, SL, IdxVT)); in scalarizeVectorStore()
4816 DAG.getConstant(ShiftIntoIdx * MemSclVT.getSizeInBits(), SL, IntVT); in scalarizeVectorStore()
4835 DAG.getConstant(Idx, SL, IdxVT)); in scalarizeVectorStore()
4903 SDValue PtrIncrement = DAG.getConstant(RegBytes, dl, PtrVT); in expandUnalignedLoad()
4904 SDValue StackPtrIncrement = DAG.getConstant(RegBytes, dl, StackPtrVT); in expandUnalignedLoad()
4995 DAG.getConstant(NumBits, dl, getShiftAmountTy(Hi.getValueType(), in expandUnalignedLoad()
5060 SDValue PtrIncrement = DAG.getConstant(RegBytes, dl, PtrVT); in expandUnalignedStore()
5061 SDValue StackPtrIncrement = DAG.getConstant(RegBytes, dl, StackPtrVT); in expandUnalignedStore()
5113 DAG.getConstant(NumBits, dl, getShiftAmountTy(Val.getValueType(), in expandUnalignedStore()
5160 SDValue Scale = DAG.getConstant(DataVT.getScalarSizeInBits() / 8, DL, in IncrementMemoryAddress()
5164 Increment = DAG.getConstant(DataVT.getStoreSize(), DL, AddrVT); in IncrementMemoryAddress()
5182 DAG.getConstant(Imm, dl, IdxVT)); in clampDynamicVectorIndex()
5186 DAG.getConstant(NElts - 1, dl, IdxVT)); in clampDynamicVectorIndex()
5208 DAG.getConstant(EltSize, dl, IdxVT)); in getVectorElementPointer()
5271 DAG.getConstant(Log2b, dl, MVT::i32)); in lowerCmpEqZeroToCtlzSrl()
5332 SDValue Zero = DAG.getConstant(0, dl, ResultType); in expandAddSubSat()
5337 SDValue SatMax = DAG.getConstant(MaxVal, dl, ResultType); in expandAddSubSat()
5342 SDValue SatMin = DAG.getConstant(MinVal, dl, ResultType); in expandAddSubSat()
5349 SDValue SatMin = DAG.getConstant(MinVal, dl, ResultType); in expandAddSubSat()
5350 SDValue SatMax = DAG.getConstant(MaxVal, dl, ResultType); in expandAddSubSat()
5402 Lo = DAG.getNode(ISD::SRL, dl, VT, Lo, DAG.getConstant(Scale, dl, ShiftTy)); in getExpandedFixedPointMultiplication()
5405 DAG.getConstant(VT.getScalarSizeInBits() - Scale, dl, ShiftTy)); in getExpandedFixedPointMultiplication()