Lines Matching refs:DstTy
1269 static Optional<APFloat> constantFoldFpUnary(unsigned Opcode, LLT DstTy, in constantFoldFpUnary() argument
1307 V.convert(getFltSemanticForLLT(DstTy), APFloat::rmNearestTiesToEven, &Unused); in constantFoldFpUnary()
1315 LLT DstTy = MRI.getType(DstReg); in matchCombineConstantFoldFpUnary() local
1316 Cst = constantFoldFpUnary(MI.getOpcode(), DstTy, SrcReg, MRI); in matchCombineConstantFoldFpUnary()
1735 LLT DstTy = MRI.getType(MI.getOperand(0).getReg()); in applyCombineUnmergeMergeToPlainValues() local
1736 bool CanReuseInputDirectly = DstTy == SrcTy; in applyCombineUnmergeMergeToPlainValues()
2008 LLT DstTy = MRI.getType(DstReg); in matchCombineI2PToP2I() local
2011 m_GPtrToInt(m_all_of(m_SpecificType(DstTy), m_Reg(Reg)))); in matchCombineI2PToP2I()
2090 auto DstTy = MRI.getType(PtrAdd.getReg(0)); in matchCombineConstPtrAddToI2P() local
2092 NewCst = Cst.zextOrTrunc(DstTy.getSizeInBits()); in matchCombineConstPtrAddToI2P()
2093 NewCst += RHSCst->sextOrTrunc(DstTy.getSizeInBits()); in matchCombineConstPtrAddToI2P()
2115 LLT DstTy = MRI.getType(DstReg); in matchCombineAnyExtTrunc() local
2117 m_GTrunc(m_all_of(m_Reg(Reg), m_SpecificType(DstTy)))); in matchCombineAnyExtTrunc()
2124 LLT DstTy = MRI.getType(DstReg); in matchCombineZextTrunc() local
2126 m_GTrunc(m_all_of(m_Reg(Reg), m_SpecificType(DstTy))))) { in matchCombineZextTrunc()
2127 unsigned DstSize = DstTy.getScalarSizeInBits(); in matchCombineZextTrunc()
2190 LLT DstTy = MRI.getType(DstReg); in applyCombineMulByNegativeOne() local
2193 Builder.buildSub(DstReg, Builder.buildConstant(DstTy, 0), SrcReg, in applyCombineMulByNegativeOne()
2249 LLT DstTy = MRI.getType(DstReg); in applyCombineTruncOfExt() local
2250 if (SrcTy == DstTy) { in applyCombineTruncOfExt()
2256 if (SrcTy.getSizeInBits() < DstTy.getSizeInBits()) in applyCombineTruncOfExt()
2268 LLT DstTy = MRI.getType(DstReg); in matchCombineTruncOfShl() local
2276 {DstTy, getTargetLowering().getPreferredShiftAmountTy(DstTy)}})) { in matchCombineTruncOfShl()
2278 unsigned Size = DstTy.getSizeInBits(); in matchCombineTruncOfShl()
2292 LLT DstTy = MRI.getType(DstReg); in applyCombineTruncOfShl() local
2298 auto TruncShiftSrc = Builder.buildTrunc(DstTy, ShiftSrc); in applyCombineTruncOfShl()
2566 LLT DstTy = MRI.getType(DstReg); in matchCombineInsertVecElts() local
2567 assert(DstTy.isVector() && "Invalid G_INSERT_VECTOR_ELT?"); in matchCombineInsertVecElts()
2568 unsigned NumElts = DstTy.getNumElements(); in matchCombineInsertVecElts()
2609 LLT DstTy = MRI.getType(MI.getOperand(0).getReg()); in applyCombineInsertVecElts() local
2610 UndefReg = Builder.buildUndef(DstTy.getScalarType()).getReg(0); in applyCombineInsertVecElts()
2815 LLT DstTy = MRI.getType(AndDst); in matchRedundantAnd() local
2818 if (DstTy.isVector()) in matchRedundantAnd()
2861 LLT DstTy = MRI.getType(OrDst); in matchRedundantOr() local
2864 if (DstTy.isVector()) in matchRedundantOr()
3956 LLT DstTy = MRI.getType(DstReg); in applyExtractVecEltBuildVec() local
3959 if (ScalarTy != DstTy) { in applyExtractVecEltBuildVec()
3960 assert(ScalarTy.getSizeInBits() > DstTy.getSizeInBits()); in applyExtractVecEltBuildVec()
3989 LLT DstTy = MRI.getType(DstReg); in matchExtractAllEltsFromBuildVector() local
3990 unsigned NumElts = DstTy.getNumElements(); in matchExtractAllEltsFromBuildVector()
4214 LLT DstTy = MRI.getType(Dst); in matchICmpToLHSKnownBits() local
4215 if (getICmpTrueVal(getTargetLowering(), DstTy.isVector(), in matchICmpToLHSKnownBits()
4228 unsigned DstSize = DstTy.getSizeInBits(); in matchICmpToLHSKnownBits()
4232 if (!isLegalOrBeforeLegalizer({Op, {DstTy, LHSTy}})) in matchICmpToLHSKnownBits()
4894 LLT DstTy = MRI.getType(Dst); in matchUDivByConst() local
4904 if (TLI.isIntDivCheap(getApproximateEVTForLLT(DstTy, DL, Ctx), Attr)) in matchUDivByConst()
4914 if (!isLegalOrBeforeLegalizer({TargetOpcode::G_MUL, {DstTy, DstTy}})) in matchUDivByConst()
4916 if (!isLegalOrBeforeLegalizer({TargetOpcode::G_UMULH, {DstTy}})) in matchUDivByConst()
4920 {DstTy.isVector() ? DstTy.changeElementSize(1) : LLT::scalar(1), in matchUDivByConst()
4921 DstTy}})) in matchUDivByConst()
5185 LLT DstTy = MRI.getType(MI.getOperand(0).getReg()); in matchCombineFAddFMAFMulToFMadOrFMA() local
5227 Register InnerFMA = MRI.createGenericVirtualRegister(DstTy); in matchCombineFAddFMAFMulToFMadOrFMA()
5376 LLT DstTy = MRI.getType(MI.getOperand(0).getReg()); in matchCombineFSubFMulToFMadOrFMA() local
5394 Register NegZ = B.buildFNeg(DstTy, RHS.Reg).getReg(0); in matchCombineFSubFMulToFMadOrFMA()
5406 B.buildFNeg(DstTy, RHS.MI->getOperand(1).getReg()).getReg(0); in matchCombineFSubFMulToFMadOrFMA()
5426 LLT DstTy = MRI.getType(MI.getOperand(0).getReg()); in matchCombineFSubFNegFMulToFMadOrFMA() local
5439 B.buildFNeg(DstTy, FMulMI->getOperand(1).getReg()).getReg(0); in matchCombineFSubFNegFMulToFMadOrFMA()
5440 Register NegZ = B.buildFNeg(DstTy, RHSReg).getReg(0); in matchCombineFSubFNegFMulToFMadOrFMA()
5473 LLT DstTy = MRI.getType(MI.getOperand(0).getReg()); in matchCombineFSubFpExtFMulToFMadOrFMA() local
5485 B.buildFPExt(DstTy, FMulMI->getOperand(1).getReg()).getReg(0); in matchCombineFSubFpExtFMulToFMadOrFMA()
5487 B.buildFPExt(DstTy, FMulMI->getOperand(2).getReg()).getReg(0); in matchCombineFSubFpExtFMulToFMadOrFMA()
5488 Register NegZ = B.buildFNeg(DstTy, RHSReg).getReg(0); in matchCombineFSubFpExtFMulToFMadOrFMA()
5501 B.buildFPExt(DstTy, FMulMI->getOperand(1).getReg()).getReg(0); in matchCombineFSubFpExtFMulToFMadOrFMA()
5502 Register NegY = B.buildFNeg(DstTy, FpExtY).getReg(0); in matchCombineFSubFpExtFMulToFMadOrFMA()
5504 B.buildFPExt(DstTy, FMulMI->getOperand(2).getReg()).getReg(0); in matchCombineFSubFpExtFMulToFMadOrFMA()
5523 LLT DstTy = MRI.getType(MI.getOperand(0).getReg()); in matchCombineFSubFpExtFNegFMulToFMadOrFMA() local
5532 Register FpExtX = B.buildFPExt(DstTy, X).getReg(0); in matchCombineFSubFpExtFNegFMulToFMadOrFMA()
5533 Register FpExtY = B.buildFPExt(DstTy, Y).getReg(0); in matchCombineFSubFpExtFNegFMulToFMadOrFMA()
5545 TLI.isFPExtFoldable(MI, PreferredFusedOpcode, DstTy, in matchCombineFSubFpExtFNegFMulToFMadOrFMA()
5548 Register FMAReg = MRI.createGenericVirtualRegister(DstTy); in matchCombineFSubFpExtFNegFMulToFMadOrFMA()
5561 TLI.isFPExtFoldable(MI, PreferredFusedOpcode, DstTy, in matchCombineFSubFpExtFNegFMulToFMadOrFMA()