Lines Matching refs:buildConstant
83 auto Base = MIB.buildConstant(Ty, Ty.getScalarSizeInBits() - 1); in buildLogBase2()
1291 auto NewCst = Builder.buildConstant(MRI.getType(MatchInfo.Offset), in applyCombineIndexedLoadStore()
1458 auto True = Builder.buildConstant( in applyOptBrCondByInvertingCond()
1613 auto NewOffset = MIB.buildConstant(OffsetTy, MatchInfo.Imm); in applyPtrAddImmedChain()
1682 Builder.buildConstant(MI.getOperand(0), 0); in applyShiftImmedChain()
1692 Register NewImm = Builder.buildConstant(ImmTy, Imm).getReg(0); in applyShiftImmedChain()
1792 Register Const = Builder.buildConstant(ShlType, MatchInfo.ValSum).getReg(0); in applyShiftOfShiftedLogic()
1872 auto ShiftCst = MIB.buildConstant(ShiftTy, ShiftVal); in applyCombineMulToShl()
1927 auto ShiftAmt = Builder.buildConstant(ExtSrcTy, ShiftAmtVal); in applyCombineShlOfExtend()
2052 Builder.buildConstant(DstReg, Csts[Idx]); in applyCombineUnmergeConstant()
2158 ZeroReg = Builder.buildConstant(Dst0Ty, 0).getReg(0); in applyCombineUnmergeZExtToZExt()
2214 Builder.buildConstant(HalfTy, NarrowShiftAmt)).getReg(0); in applyCombineShiftToUnmerge()
2217 auto Zero = Builder.buildConstant(HalfTy, 0); in applyCombineShiftToUnmerge()
2227 Builder.buildConstant(HalfTy, NarrowShiftAmt)).getReg(0); in applyCombineShiftToUnmerge()
2230 auto Zero = Builder.buildConstant(HalfTy, 0); in applyCombineShiftToUnmerge()
2236 Builder.buildConstant(HalfTy, HalfSize - 1)); in applyCombineShiftToUnmerge()
2251 Builder.buildConstant(HalfTy, ShiftVal - HalfSize)); in applyCombineShiftToUnmerge()
2369 Builder.buildConstant(Dst, NewCst); in applyCombineConstPtrAddToI2P()
2817 auto NewConstInstr = Builder.buildConstant(ConstTy, NewConst.getZExtValue()); in applyFunnelShiftConstantModulo()
2867 Builder.buildConstant(MI.getOperand(0), C); in replaceInstWithConstant()
2874 Builder.buildConstant(MI.getOperand(0), C); in replaceInstWithConstant()
3136 B.buildAnd(Dst, R, B.buildConstant(Ty, C1 & C2)); in matchOverlappingAnd()
3139 auto Zero = B.buildConstant(Ty, 0); in matchOverlappingAnd()
3438 auto NegOne = Builder.buildConstant(Ty, -1); in applySimplifyURemByPow2()
4200 auto Bits = Builder.buildConstant(AmtTy, Bitsize); in applyRotateOutOfRange()
4359 auto Cst1 = B.buildConstant(ExtractTy, ShiftImm); in matchBitfieldExtractFromSExtInReg()
4360 auto Cst2 = B.buildConstant(ExtractTy, Width); in matchBitfieldExtractFromSExtInReg()
4395 auto WidthCst = B.buildConstant(ExtractTy, Width); in matchBitfieldExtractFromAnd()
4396 auto LSBCst = B.buildConstant(ExtractTy, LSBImm); in matchBitfieldExtractFromAnd()
4444 auto WidthCst = B.buildConstant(ExtractTy, Width); in matchBitfieldExtractFromShr()
4445 auto PosCst = B.buildConstant(ExtractTy, Pos); in matchBitfieldExtractFromShr()
4479 B.buildConstant(Dst, 0); in matchBitfieldExtractFromShrAnd()
4501 auto WidthCst = B.buildConstant(ExtractTy, Width); in matchBitfieldExtractFromShrAnd()
4502 auto PosCst = B.buildConstant(ExtractTy, Pos); in matchBitfieldExtractFromShrAnd()
4617 auto NewCst = B.buildConstant(MRI.getType(RHSReg), LHSCstOff->Value); in matchReassocConstantInnerLHS()
4648 auto NewCst = B.buildConstant(MRI.getType(Src2Reg), *C1 + *C2); in matchReassocFoldConstantsInSubTree()
4925 B.buildConstant(Dst, 0); in matchMulOBy0()
4926 B.buildConstant(Carry, 0); in matchMulOBy0()
4944 B.buildConstant(Carry, 0); in matchAddOBy0()
5017 auto Zero = B.buildConstant(MRI.getType(Dst), 0); in matchSubAddSameReg()
5071 MIB.buildConstant(ScalarShiftAmtTy, PreShift).getReg(0)); in buildUDivUsingMul()
5072 MagicFactors.push_back(MIB.buildConstant(ScalarTy, Magic).getReg(0)); in buildUDivUsingMul()
5074 MIB.buildConstant(ScalarTy, in buildUDivUsingMul()
5079 MIB.buildConstant(ScalarShiftAmtTy, PostShift).getReg(0)); in buildUDivUsingMul()
5118 NPQ = MIB.buildLShr(Ty, NPQ, MIB.buildConstant(ShiftAmtTy, 1)).getReg(0); in buildUDivUsingMul()
5124 auto One = MIB.buildConstant(Ty, 1); in buildUDivUsingMul()
5254 Shifts.push_back(MIB.buildConstant(ScalarShiftAmtTy, Shift).getReg(0)); in buildSDivUsingMul()
5255 Factors.push_back(MIB.buildConstant(ScalarTy, Factor).getReg(0)); in buildSDivUsingMul()
5308 Builder.buildSub(Ty, Builder.buildConstant(Ty, NumEltBits), LogBase2); in applyUMulHToLShr()
6221 auto Zero = B.buildConstant(MRI.getType(Y), 0); in matchRedundantBinOpInEquality()
6446 auto ShAmtC = B.buildConstant(ShiftTy, TrueValue.exactLogBase2()); in tryFoldSelectOfConstants()