Lines Matching refs:buildConstant
1079 auto True = Builder.buildConstant( in applyOptBrCondByInvertingCond()
1186 return MIB.buildConstant(Ty, SplatVal).getReg(0); in getMemsetValue()
1193 return MIB.buildConstant(Ty, 0).getReg(0); in getMemsetValue()
1200 auto MagicMI = MIB.buildConstant(ExtType, Magic); in getMemsetValue()
1311 MIB.buildConstant(LLT::scalar(PtrTy.getSizeInBits()), DstOff); in optimizeMemset()
1451 Offset = MIB.buildConstant(LLT::scalar(PtrTy.getSizeInBits()), CurrOffset) in optimizeMemcpy()
1547 MIB.buildConstant(LLT::scalar(PtrTy.getSizeInBits()), CurrOffset); in optimizeMemmove()
1564 MIB.buildConstant(LLT::scalar(PtrTy.getSizeInBits()), CurrOffset); in optimizeMemmove()
1741 auto NewOffset = MIB.buildConstant(OffsetTy, MatchInfo.Imm); in applyPtrAddImmedChain()
1809 Builder.buildConstant(MI.getOperand(0), 0); in applyShiftImmedChain()
1819 Register NewImm = Builder.buildConstant(ImmTy, Imm).getReg(0); in applyShiftImmedChain()
1919 Register Const = Builder.buildConstant(ShlType, MatchInfo.ValSum).getReg(0); in applyShiftOfShiftedLogic()
1958 auto ShiftCst = MIB.buildConstant(ShiftTy, ShiftVal); in applyCombineMulToShl()
2010 auto ShiftAmt = Builder.buildConstant(ExtSrcTy, ShiftAmtVal); in applyCombineShlOfExtend()
2129 Builder.buildConstant(DstReg, Csts[Idx]); in applyCombineUnmergeConstant()
2221 ZeroReg = Builder.buildConstant(Dst0Ty, 0).getReg(0); in applyCombineUnmergeZExtToZExt()
2277 Builder.buildConstant(HalfTy, NarrowShiftAmt)).getReg(0); in applyCombineShiftToUnmerge()
2280 auto Zero = Builder.buildConstant(HalfTy, 0); in applyCombineShiftToUnmerge()
2290 Builder.buildConstant(HalfTy, NarrowShiftAmt)).getReg(0); in applyCombineShiftToUnmerge()
2293 auto Zero = Builder.buildConstant(HalfTy, 0); in applyCombineShiftToUnmerge()
2299 Builder.buildConstant(HalfTy, HalfSize - 1)); in applyCombineShiftToUnmerge()
2314 Builder.buildConstant(HalfTy, ShiftVal - HalfSize)); in applyCombineShiftToUnmerge()
2435 Builder.buildConstant(Dst, NewCst); in applyCombineConstPtrAddToI2P()
2521 Builder.buildSub(DstReg, Builder.buildConstant(DstTy, 0), SrcReg, in applyCombineMulByNegativeOne()
2805 Builder.buildConstant(MI.getOperand(0), C); in replaceInstWithConstant()
2813 Builder.buildConstant(MI.getOperand(0), C); in replaceInstWithConstant()
3069 B.buildAnd(Dst, R, B.buildConstant(Ty, C1 & C2)); in matchOverlappingAnd()
3072 auto Zero = B.buildConstant(Ty, 0); in matchOverlappingAnd()
3382 auto NegOne = Builder.buildConstant(Ty, -1); in applySimplifyURemByPow2()
4007 auto Bits = Builder.buildConstant(AmtTy, Bitsize); in applyRotateOutOfRange()
4089 auto Cst1 = B.buildConstant(ExtractTy, ShiftImm); in matchBitfieldExtractFromSExtInReg()
4090 auto Cst2 = B.buildConstant(ExtractTy, Width); in matchBitfieldExtractFromSExtInReg()
4126 auto WidthCst = B.buildConstant(ExtractTy, Width); in matchBitfieldExtractFromAnd()
4127 auto LSBCst = B.buildConstant(ExtractTy, LSBImm); in matchBitfieldExtractFromAnd()
4247 auto NewCst = B.buildConstant(MRI.getType(Src2Reg), *C1 + *C2); in matchReassocPtrAdd()