Lines Matching refs:buildConstant
77 auto Base = MIB.buildConstant(Ty, Ty.getScalarSizeInBits() - 1); in buildLogBase2()
1229 auto True = Builder.buildConstant( in applyOptBrCondByInvertingCond()
1398 auto NewOffset = MIB.buildConstant(OffsetTy, MatchInfo.Imm); in applyPtrAddImmedChain()
1467 Builder.buildConstant(MI.getOperand(0), 0); in applyShiftImmedChain()
1477 Register NewImm = Builder.buildConstant(ImmTy, Imm).getReg(0); in applyShiftImmedChain()
1577 Register Const = Builder.buildConstant(ShlType, MatchInfo.ValSum).getReg(0); in applyShiftOfShiftedLogic()
1616 auto ShiftCst = MIB.buildConstant(ShiftTy, ShiftVal); in applyCombineMulToShl()
1668 auto ShiftAmt = Builder.buildConstant(ExtSrcTy, ShiftAmtVal); in applyCombineShlOfExtend()
1784 Builder.buildConstant(DstReg, Csts[Idx]); in applyCombineUnmergeConstant()
1890 ZeroReg = Builder.buildConstant(Dst0Ty, 0).getReg(0); in applyCombineUnmergeZExtToZExt()
1946 Builder.buildConstant(HalfTy, NarrowShiftAmt)).getReg(0); in applyCombineShiftToUnmerge()
1949 auto Zero = Builder.buildConstant(HalfTy, 0); in applyCombineShiftToUnmerge()
1959 Builder.buildConstant(HalfTy, NarrowShiftAmt)).getReg(0); in applyCombineShiftToUnmerge()
1962 auto Zero = Builder.buildConstant(HalfTy, 0); in applyCombineShiftToUnmerge()
1968 Builder.buildConstant(HalfTy, HalfSize - 1)); in applyCombineShiftToUnmerge()
1983 Builder.buildConstant(HalfTy, ShiftVal - HalfSize)); in applyCombineShiftToUnmerge()
2107 Builder.buildConstant(Dst, NewCst); in applyCombineConstPtrAddToI2P()
2193 Builder.buildSub(DstReg, Builder.buildConstant(DstTy, 0), SrcReg, in applyCombineMulByNegativeOne()
2520 Builder.buildConstant(MI.getOperand(0), C); in replaceInstWithConstant()
2528 Builder.buildConstant(MI.getOperand(0), C); in replaceInstWithConstant()
2784 B.buildAnd(Dst, R, B.buildConstant(Ty, C1 & C2)); in matchOverlappingAnd()
2787 auto Zero = B.buildConstant(Ty, 0); in matchOverlappingAnd()
3098 auto NegOne = Builder.buildConstant(Ty, -1); in applySimplifyURemByPow2()
3799 Builder.buildConstant(WideStoreTy, WideStoreTy.getSizeInBits() / 2); in applyTruncStoreMerge()
4136 auto Bits = Builder.buildConstant(AmtTy, Bitsize); in applyRotateOutOfRange()
4295 auto Cst1 = B.buildConstant(ExtractTy, ShiftImm); in matchBitfieldExtractFromSExtInReg()
4296 auto Cst2 = B.buildConstant(ExtractTy, Width); in matchBitfieldExtractFromSExtInReg()
4332 auto WidthCst = B.buildConstant(ExtractTy, Width); in matchBitfieldExtractFromAnd()
4333 auto LSBCst = B.buildConstant(ExtractTy, LSBImm); in matchBitfieldExtractFromAnd()
4381 auto WidthCst = B.buildConstant(ExtractTy, Width); in matchBitfieldExtractFromShr()
4382 auto PosCst = B.buildConstant(ExtractTy, Pos); in matchBitfieldExtractFromShr()
4417 B.buildConstant(Dst, 0); in matchBitfieldExtractFromShrAnd()
4439 auto WidthCst = B.buildConstant(ExtractTy, Width); in matchBitfieldExtractFromShrAnd()
4440 auto PosCst = B.buildConstant(ExtractTy, Pos); in matchBitfieldExtractFromShrAnd()
4587 auto NewCst = B.buildConstant(MRI.getType(Src2Reg), *C1 + *C2); in matchReassocFoldConstantsInSubTree()
4760 B.buildConstant(Dst, 0); in matchMulOBy0()
4761 B.buildConstant(Carry, 0); in matchMulOBy0()
4779 B.buildConstant(Carry, 0); in matchAddOBy0()
4830 MIB.buildConstant(ScalarShiftAmtTy, PreShift).getReg(0)); in buildUDivUsingMul()
4831 MagicFactors.push_back(MIB.buildConstant(ScalarTy, magics.Magic).getReg(0)); in buildUDivUsingMul()
4833 MIB.buildConstant(ScalarTy, in buildUDivUsingMul()
4838 MIB.buildConstant(ScalarShiftAmtTy, PostShift).getReg(0)); in buildUDivUsingMul()
4877 NPQ = MIB.buildLShr(Ty, NPQ, MIB.buildConstant(ShiftAmtTy, 1)).getReg(0); in buildUDivUsingMul()
4883 auto One = MIB.buildConstant(Ty, 1); in buildUDivUsingMul()
4965 Builder.buildSub(Ty, Builder.buildConstant(Ty, NumEltBits), LogBase2); in applyUMulHToLShr()