Lines Matching refs:getConstant
1133 auto Ops = {DAG.getConstant(0, SDLoc(), Op.getValueType()), Op.getOperand(0)}; in LowerDYNAMIC_STACKALLOC()
1227 return DAG.getConstant(Offset, SDLoc(Op), Op.getValueType()); in LowerGlobalAddress()
1350 const SDValue Zero = DAG.getConstant(0, SL, MVT::i32); in split64BitValue()
1351 const SDValue One = DAG.getConstant(1, SL, MVT::i32); in split64BitValue()
1363 const SDValue Zero = DAG.getConstant(0, SL, MVT::i32); in getLoHalf64()
1371 const SDValue One = DAG.getConstant(1, SL, MVT::i32); in getHiHalf64()
1492 SDValue jq = DAG.getConstant(1, DL, IntVT); in LowerDIVREM24()
1500 DAG.getConstant(BitSize - 2, DL, VT)); in LowerDIVREM24()
1503 jq = DAG.getNode(ISD::OR, DL, VT, jq, DAG.getConstant(1, DL, VT)); in LowerDIVREM24()
1548 jq = DAG.getNode(ISD::SELECT, DL, VT, cv, jq, DAG.getConstant(0, DL, VT)); in LowerDIVREM24()
1564 SDValue TruncMask = DAG.getConstant((UINT64_C(1) << DivBits) - 1, DL, VT); in LowerDIVREM24()
1582 SDValue One = DAG.getConstant(1, DL, HalfVT); in LowerUDIVREM64()
1583 SDValue Zero = DAG.getConstant(0, DL, HalfVT); in LowerUDIVREM64()
1633 SDValue Zero64 = DAG.getConstant(0, DL, VT); in LowerUDIVREM64()
1634 SDValue One64 = DAG.getConstant(1, DL, VT); in LowerUDIVREM64()
1635 SDValue Zero1 = DAG.getConstant(0, DL, MVT::i1); in LowerUDIVREM64()
1683 SDValue MinusOne = DAG.getConstant(0xffffffffu, DL, HalfVT); in LowerUDIVREM64()
1755 SDValue POS = DAG.getConstant(bitPos, DL, HalfVT); in LowerUDIVREM64()
1762 REM = DAG.getNode(ISD::SHL, DL, VT, REM, DAG.getConstant(1, DL, VT)); in LowerUDIVREM64()
1766 SDValue BIT = DAG.getConstant(1ULL << bitPos, DL, HalfVT); in LowerUDIVREM64()
1812 SDValue NEG_RCP_LO = DAG.getNode(ISD::SUB, DL, VT, DAG.getConstant(0, DL, VT), in LowerUDIVREM()
1816 SDValue ABS_RCP_LO = DAG.getSelectCC(DL, RCP_HI, DAG.getConstant(0, DL, VT), in LowerUDIVREM()
1830 SDValue Tmp0 = DAG.getSelectCC(DL, RCP_HI, DAG.getConstant(0, DL, VT), in LowerUDIVREM()
1844 DAG.getConstant(-1, DL, VT), in LowerUDIVREM()
1845 DAG.getConstant(0, DL, VT), in LowerUDIVREM()
1850 DAG.getConstant(-1, DL, VT), in LowerUDIVREM()
1851 DAG.getConstant(0, DL, VT), in LowerUDIVREM()
1861 DAG.getConstant(1, DL, VT)); in LowerUDIVREM()
1865 DAG.getConstant(1, DL, VT)); in LowerUDIVREM()
1868 SDValue Div = DAG.getSelectCC(DL, Tmp1, DAG.getConstant(0, DL, VT), in LowerUDIVREM()
1872 Div = DAG.getSelectCC(DL, Remainder_GE_Zero, DAG.getConstant(0, DL, VT), in LowerUDIVREM()
1884 SDValue Rem = DAG.getSelectCC(DL, Tmp1, DAG.getConstant(0, DL, VT), in LowerUDIVREM()
1888 Rem = DAG.getSelectCC(DL, Remainder_GE_Zero, DAG.getConstant(0, DL, VT), in LowerUDIVREM()
1905 SDValue Zero = DAG.getConstant(0, DL, VT); in LowerSDIVREM()
1906 SDValue NegOne = DAG.getConstant(-1, DL, VT); in LowerSDIVREM()
2005 DAG.getConstant(FractBits - 32, SL, MVT::i32), in extractF64Exponent()
2006 DAG.getConstant(ExpBits, SL, MVT::i32)); in extractF64Exponent()
2008 DAG.getConstant(1023, SL, MVT::i32)); in extractF64Exponent()
2019 const SDValue Zero = DAG.getConstant(0, SL, MVT::i32); in LowerFTRUNC()
2020 const SDValue One = DAG.getConstant(1, SL, MVT::i32); in LowerFTRUNC()
2033 const SDValue SignBitMask = DAG.getConstant(UINT32_C(1) << 31, SL, MVT::i32); in LowerFTRUNC()
2042 = DAG.getConstant((UINT64_C(1) << FractBits) - 1, SL, MVT::i64); in LowerFTRUNC()
2051 const SDValue FiftyOne = DAG.getConstant(FractBits - 1, SL, MVT::i32); in LowerFTRUNC()
2136 const SDValue Zero = DAG.getConstant(0, SL, MVT::i32); in LowerFROUND64()
2137 const SDValue One = DAG.getConstant(1, SL, MVT::i32); in LowerFROUND64()
2138 const SDValue NegOne = DAG.getConstant(-1, SL, MVT::i32); in LowerFROUND64()
2139 const SDValue FiftyOne = DAG.getConstant(51, SL, MVT::i32); in LowerFROUND64()
2149 const SDValue Mask = DAG.getConstant(INT64_C(0x000fffffffffffff), SL, in LowerFROUND64()
2154 DAG.getConstant(INT64_C(0x0008000000000000), SL, in LowerFROUND64()
2160 DAG.getConstant(0, SL, MVT::i64), Tmp0, in LowerFROUND64()
2164 D, DAG.getConstant(0, SL, MVT::i64)); in LowerFROUND64()
2294 const SDValue Zero = DAG.getConstant(0, SL, MVT::i32); in LowerCTLZ_CTTZ()
2295 const SDValue One = DAG.getConstant(1, SL, MVT::i32); in LowerCTLZ_CTTZ()
2309 const SDValue Bits32 = DAG.getConstant(32, SL, MVT::i32); in LowerCTLZ_CTTZ()
2335 const SDValue Bits32 = DAG.getConstant(64, SL, MVT::i32); in LowerCTLZ_CTTZ()
2373 const SDValue SignBit = DAG.getConstant(63, SL, MVT::i64); in LowerINT_TO_FP32()
2384 SDValue ZeroI32 = DAG.getConstant(0, SL, MVT::i32); in LowerINT_TO_FP32()
2385 SDValue ZeroI64 = DAG.getConstant(0, SL, MVT::i64); in LowerINT_TO_FP32()
2389 SDValue K = DAG.getConstant(127U + 63U, SL, MVT::i32); in LowerINT_TO_FP32()
2397 DAG.getConstant((-1ULL) >> 1, SL, MVT::i64)); in LowerINT_TO_FP32()
2400 DAG.getConstant(0xffffffffffULL, SL, MVT::i64)); in LowerINT_TO_FP32()
2403 U, DAG.getConstant(40, SL, MVT::i64)); in LowerINT_TO_FP32()
2406 DAG.getNode(ISD::SHL, SL, MVT::i32, E, DAG.getConstant(23, SL, MVT::i32)), in LowerINT_TO_FP32()
2409 SDValue C = DAG.getConstant(0x8000000000ULL, SL, MVT::i64); in LowerINT_TO_FP32()
2413 SDValue One = DAG.getConstant(1, SL, MVT::i32); in LowerINT_TO_FP32()
2439 DAG.getConstant(0, SL, MVT::i32)); in LowerINT_TO_FP64()
2441 DAG.getConstant(1, SL, MVT::i32)); in LowerINT_TO_FP64()
2449 DAG.getConstant(32, SL, MVT::i32)); in LowerINT_TO_FP64()
2556 SDValue Zero = DAG.getConstant(0, DL, MVT::i32); in LowerFP_TO_FP16()
2557 SDValue One = DAG.getConstant(1, DL, MVT::i32); in LowerFP_TO_FP16()
2560 DAG.getConstant(32, DL, MVT::i64)); in LowerFP_TO_FP16()
2564 DAG.getConstant(20, DL, MVT::i64)); in LowerFP_TO_FP16()
2566 DAG.getConstant(ExpMask, DL, MVT::i32)); in LowerFP_TO_FP16()
2570 DAG.getConstant(-ExpBiasf64 + ExpBiasf16, DL, MVT::i32)); in LowerFP_TO_FP16()
2573 DAG.getConstant(8, DL, MVT::i32)); in LowerFP_TO_FP16()
2575 DAG.getConstant(0xffe, DL, MVT::i32)); in LowerFP_TO_FP16()
2578 DAG.getConstant(0x1ff, DL, MVT::i32)); in LowerFP_TO_FP16()
2586 DAG.getSelectCC(DL, M, Zero, DAG.getConstant(0x0200, DL, MVT::i32), in LowerFP_TO_FP16()
2587 Zero, ISD::SETNE), DAG.getConstant(0x7c00, DL, MVT::i32)); in LowerFP_TO_FP16()
2592 DAG.getConstant(12, DL, MVT::i32))); in LowerFP_TO_FP16()
2599 DAG.getConstant(13, DL, MVT::i32)); in LowerFP_TO_FP16()
2602 DAG.getConstant(0x1000, DL, MVT::i32)); in LowerFP_TO_FP16()
2611 DAG.getConstant(0x7, DL, MVT::i32)); in LowerFP_TO_FP16()
2613 DAG.getConstant(2, DL, MVT::i32)); in LowerFP_TO_FP16()
2614 SDValue V0 = DAG.getSelectCC(DL, VLow3, DAG.getConstant(3, DL, MVT::i32), in LowerFP_TO_FP16()
2616 SDValue V1 = DAG.getSelectCC(DL, VLow3, DAG.getConstant(5, DL, MVT::i32), in LowerFP_TO_FP16()
2621 V = DAG.getSelectCC(DL, E, DAG.getConstant(30, DL, MVT::i32), in LowerFP_TO_FP16()
2622 DAG.getConstant(0x7c00, DL, MVT::i32), V, ISD::SETGT); in LowerFP_TO_FP16()
2623 V = DAG.getSelectCC(DL, E, DAG.getConstant(1039, DL, MVT::i32), in LowerFP_TO_FP16()
2628 DAG.getConstant(16, DL, MVT::i32)); in LowerFP_TO_FP16()
2630 DAG.getConstant(0x8000, DL, MVT::i32)); in LowerFP_TO_FP16()
2755 return DAG.getConstant(Result, DL, MVT::i32); in constantFoldBFE()
2758 return DAG.getConstant(Src0 >> Offset, DL, MVT::i32); in constantFoldBFE()
2932 SDValue LoRHS = DAG.getConstant(ValLo, SL, MVT::i32); in splitBinaryBitConstantOpImpl()
2933 SDValue HiRHS = DAG.getConstant(ValHi, SL, MVT::i32); in splitBinaryBitConstantOpImpl()
2976 { DAG.getConstant(0, SL, MVT::i16), LHS->getOperand(0) }); in performShlCombine()
3004 SDValue ShiftAmt = DAG.getConstant(RHSVal - 32, SL, MVT::i32); in performShlCombine()
3009 const SDValue Zero = DAG.getConstant(0, SL, MVT::i32); in performShlCombine()
3032 DAG.getConstant(31, SL, MVT::i32)); in performSraCombine()
3042 DAG.getConstant(31, SL, MVT::i32)); in performSraCombine()
3070 SDValue One = DAG.getConstant(1, SL, MVT::i32); in performSrlCombine()
3071 SDValue Zero = DAG.getConstant(0, SL, MVT::i32); in performSrlCombine()
3077 SDValue NewConst = DAG.getConstant(ShiftAmt - 32, SL, MVT::i32); in performSrlCombine()
3144 if ((Known.isConstant() && Known.getConstant().ule(Size)) || in performTruncateCombine()
3737 DAG.getConstant(0x8000, SL, SrcVT)); in performFNegCombine()
3762 DAG.getConstant(0x7fff, SL, SrcVT)); in performFAbsCombine()
3832 DAG.getConstant(Lo_32(CVal), SL, MVT::i32), in PerformDAGCombine()
3833 DAG.getConstant(Hi_32(CVal), SL, MVT::i32)); in PerformDAGCombine()
3843 DAG.getConstant(Lo_32(CVal), SL, MVT::i32), in PerformDAGCombine()
3844 DAG.getConstant(Hi_32(CVal), SL, MVT::i32)); in PerformDAGCombine()
3904 return DAG.getConstant(0, DL, MVT::i32); in PerformDAGCombine()
3956 SDValue ShiftVal = DAG.getConstant(OffsetVal, DL, MVT::i32); in PerformDAGCombine()
4042 SDValue Ptr = DAG.getConstant(Offset, SL, MVT::i32); in storeStackInputValue()