Lines Matching refs:mi_match
1005 if (mi_match(SrcReg, MRI, m_GTrunc(m_Reg(TruncSrc)))) in matchSextTruncSextLoad()
1269 if (!mi_match(Addr, MRI, m_GPtrAdd(m_Reg(Base), m_Reg(Offset))) || in findPreIndexCandidate()
1986 if (!mi_match(SrcReg, MRI, in matchCommuteShift()
1992 if (!mi_match(C1, MRI, m_ICstOrSplat(C1Val)) || in matchCommuteShift()
1993 !mi_match(ShiftReg, MRI, m_ICstOrSplat(C2Val))) in matchCommuteShift()
2042 if (!mi_match(LHS, MRI, m_GAnyExt(m_Reg(ExtSrc))) && in matchCombineShlOfExtend()
2043 !mi_match(LHS, MRI, m_GZExt(m_Reg(ExtSrc))) && in matchCombineShlOfExtend()
2044 !mi_match(LHS, MRI, m_GSExt(m_Reg(ExtSrc)))) in matchCombineShlOfExtend()
2107 while (mi_match(Reg, MRI, m_GBitcast(m_Reg(Reg)))) in peekThroughBitcast()
2259 if (!mi_match(SrcReg, MRI, m_GZExt(m_Reg(ZExtSrcReg)))) in matchCombineUnmergeZExtToZExt()
2414 return mi_match(SrcReg, MRI, in matchCombineI2PToP2I()
2443 if (mi_match(SrcReg, MRI, m_GPtrToInt(m_Reg(PtrReg.first)))) { in matchCombineAddP2IToPtrAdd()
2484 if (mi_match(LHS, MRI, m_GIntToPtr(m_ICst(Cst)))) { in matchCombineConstPtrAddToI2P()
2513 return mi_match(SrcReg, MRI, in matchCombineAnyExtTrunc()
2522 if (mi_match(SrcReg, MRI, in matchCombineZextTrunc()
2889 if (!mi_match(MOP.getReg(), MRI, m_GFCstOrSplat(MaybeCst))) in matchConstantFPOp()
3026 if (!mi_match(MaybeSub, MRI, m_Neg(m_Reg(NewRHS)))) in matchSimplifyAddToSub()
3053 while (mi_match( in matchCombineInsertVecElts()
3231 if (!mi_match(MI.getOperand(0).getReg(), MRI, in matchAshrShlToSextInreg()
3266 if (!mi_match( in matchOverlappingAnd()
3402 if (!mi_match(MI.getOperand(0).getReg(), MRI, in matchNotCmp()
3462 if (!mi_match(CstReg, MRI, m_ICst(Cst))) in matchNotCmp()
3517 if (!mi_match(AndReg, MRI, m_GAnd(m_Reg(X), m_Reg(Y)))) { in matchXorOfAndWithSameReg()
3519 if (!mi_match(AndReg, MRI, m_GAnd(m_Reg(X), m_Reg(Y)))) in matchXorOfAndWithSameReg()
3754 if (!mi_match(Reg, MRI, in matchLoadAndBytePosition()
3837 if (!mi_match(Load->getOperand(1).getReg(), MRI, in findLoadOffsetsForLoadOrCombine()
4248 if (!mi_match(Dst, MRI, in matchOrShiftToFunnelShift()
4257 if (mi_match(ShlAmt, MRI, m_ICstOrSplat(CstShlAmt)) && in matchOrShiftToFunnelShift()
4258 mi_match(LShrAmt, MRI, m_ICstOrSplat(CstLShrAmt)) && in matchOrShiftToFunnelShift()
4263 } else if (mi_match(LShrAmt, MRI, in matchOrShiftToFunnelShift()
4269 } else if (mi_match(ShlAmt, MRI, in matchOrShiftToFunnelShift()
4443 if (!mi_match(MI.getOperand(3).getReg(), MRI, m_SpecificICst(OneOrZero))) in matchICmpToLHSKnownBits()
4477 if (!mi_match(MI, MRI, in matchAndOrDisjointMask()
4510 if (!mi_match( in matchBitfieldExtractFromSExtInReg()
4541 if (!mi_match(And->getReg(0), MRI, in matchBitfieldExtractFromAnd()
4587 if (!mi_match(Dst, MRI, in matchBitfieldExtractFromShr()
4628 if (!mi_match(Dst, MRI, in matchBitfieldExtractFromShrAnd()
4767 if (!mi_match(MI.getBaseReg(), MRI, in matchReassocConstantInnerLHS()
5061 if (!mi_match(MI.getOperand(3).getReg(), MRI, m_SpecificICstOrSplat(2))) in matchMulOBy2()
5079 if (!mi_match(MI.getOperand(3).getReg(), MRI, m_SpecificICstOrSplat(0))) in matchMulOBy0()
5100 if (!mi_match(MI.getOperand(4).getReg(), MRI, m_SpecificICstOrSplat(0))) in matchAddEToAddO()
5133 if (mi_match(Dst, MRI, m_GSub(m_GAdd(m_Reg(X), m_Reg(Y)), m_Reg(Z)))) { in matchSubAddSameReg()
5136 if (Y == Z || (mi_match(Y, MRI, m_ICstOrSplat(CstY)) && in matchSubAddSameReg()
5137 mi_match(Z, MRI, m_SpecificICstOrSplat(CstY)))) in matchSubAddSameReg()
5139 else if (X == Z || (mi_match(X, MRI, m_ICstOrSplat(CstX)) && in matchSubAddSameReg()
5140 mi_match(Z, MRI, m_SpecificICstOrSplat(CstX)))) in matchSubAddSameReg()
5150 if (mi_match(Dst, MRI, m_GSub(m_Reg(X), m_GAdd(m_Reg(Y), m_Reg(Z))))) { in matchSubAddSameReg()
5153 if (X == Z || (mi_match(X, MRI, m_ICstOrSplat(CstX)) && in matchSubAddSameReg()
5154 mi_match(Z, MRI, m_SpecificICstOrSplat(CstX)))) in matchSubAddSameReg()
5156 else if (X == Y || (mi_match(X, MRI, m_ICstOrSplat(CstX)) && in matchSubAddSameReg()
5157 mi_match(Y, MRI, m_SpecificICstOrSplat(CstX)))) in matchSubAddSameReg()
5613 if (mi_match(Dst, MRI, m_GFAdd(m_Reg(X), m_GFNeg(m_Reg(Y)))) && in matchRedundantNegOperands()
5618 else if (mi_match(Dst, MRI, m_GFSub(m_Reg(X), m_GFNeg(m_Reg(Y)))) && in matchRedundantNegOperands()
5628 mi_match(X, MRI, m_GFNeg(m_Reg(X))) && in matchRedundantNegOperands()
5629 mi_match(Y, MRI, m_GFNeg(m_Reg(Y)))) { in matchRedundantNegOperands()
5800 if (mi_match(LHS.Reg, MRI, m_GFPExt(m_MInstr(FpExtSrc))) && in matchCombineFAddFpExtFMulToFMadOrFMA()
5815 if (mi_match(RHS.Reg, MRI, m_GFPExt(m_MInstr(FpExtSrc))) && in matchCombineFAddFpExtFMulToFMadOrFMA()
5941 mi_match(LHS.MI->getOperand(3).getReg(), MRI, in matchCombineFAddFpExtFMulToFMadOrFMAAggressive()
5960 if (mi_match(LHS.Reg, MRI, m_GFPExt(m_MInstr(FMAMI))) && in matchCombineFAddFpExtFMulToFMadOrFMAAggressive()
5982 mi_match(RHS.MI->getOperand(3).getReg(), MRI, in matchCombineFAddFpExtFMulToFMadOrFMAAggressive()
6001 if (mi_match(RHS.Reg, MRI, m_GFPExt(m_MInstr(FMAMI))) && in matchCombineFAddFpExtFMulToFMadOrFMAAggressive()
6091 if (mi_match(LHSReg, MRI, m_GFNeg(m_MInstr(FMulMI))) && in matchCombineFSubFNegFMulToFMadOrFMA()
6106 if (mi_match(RHSReg, MRI, m_GFNeg(m_MInstr(FMulMI))) && in matchCombineFSubFNegFMulToFMadOrFMA()
6138 if (mi_match(LHSReg, MRI, m_GFPExt(m_MInstr(FMulMI))) && in matchCombineFSubFpExtFMulToFMadOrFMA()
6154 if (mi_match(RHSReg, MRI, m_GFPExt(m_MInstr(FMulMI))) && in matchCombineFSubFpExtFMulToFMadOrFMA()
6200 if ((mi_match(LHSReg, MRI, m_GFPExt(m_GFNeg(m_MInstr(FMulMI)))) || in matchCombineFSubFpExtFNegFMulToFMadOrFMA()
6201 mi_match(LHSReg, MRI, m_GFNeg(m_GFPExt(m_MInstr(FMulMI))))) && in matchCombineFSubFpExtFNegFMulToFMadOrFMA()
6216 if ((mi_match(RHSReg, MRI, m_GFPExt(m_GFNeg(m_MInstr(FMulMI)))) || in matchCombineFSubFpExtFNegFMulToFMadOrFMA()
6217 mi_match(RHSReg, MRI, m_GFNeg(m_GFPExt(m_MInstr(FMulMI))))) && in matchCombineFSubFpExtFNegFMulToFMadOrFMA()
6269 return mi_match(MaybeSub, MRI, m_GSub(m_Reg(Src), m_Reg(Reg))) && in matchAddSubSameReg()
6298 if (mi_match( in matchBuildVectorIdentityFold()
6308 if (mi_match( in matchBuildVectorIdentityFold()
6325 if (!mi_match(MI.getOperand(1).getReg(), MRI, in matchTruncBuildVectorFold()
6337 if (!mi_match(MI.getOperand(1).getReg(), MRI, in matchTruncLshrBuildVectorFold()
6421 if (!mi_match(Cond, MRI, in matchFPSelectToMinMax()
6470 if (mi_match(Cond, MRI, m_OneNonDBGUse(m_GTrunc(m_Reg(MaybeTrunc))))) in matchSimplifySelectToMinMax()
6490 bool MatchedSub = mi_match( in matchRedundantBinOpInEquality()
6496 if (!mi_match(Dst, MRI, in matchRedundantBinOpInEquality()
6554 if (!mi_match(LHS, MRI, m_GFCstOrSplat(ValAndVReg))) in matchCommuteFPConstantToRHS()
6556 return !mi_match(RHS, MRI, m_GFCstOrSplat(ValAndVReg)); in matchCommuteFPConstantToRHS()