/freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
H A D | ComplexDeinterleavingPass.cpp | 1664 if (!match(RootI, m_Shuffle(m_Instruction(Real), m_Instruction(Imag)))) in identifyRoot() 1675 if (match(Real, m_ExtractValue<0>(m_Instruction(I))) && in identifyDeinterleave() 1854 if (!match(Real, m_Select(m_Instruction(MaskA), m_Instruction(AR), in identifySelectNode() 1855 m_Instruction(RA))) || in identifySelectNode() 1856 !match(Imag, m_Select(m_Instruction(MaskB), m_Instruction(AI), in identifySelectNode() 1857 m_Instruction(BI)))) in identifySelectNode()
|
H A D | CodeGenPrepare.cpp | 1504 if (match(IVInc, m_Add(m_Instruction(LHS), m_Constant(Step))) || in matchIncrement() 1506 m_Instruction(LHS), m_Constant(Step))))) in matchIncrement() 1508 if (match(IVInc, m_Sub(m_Instruction(LHS), m_Constant(Step))) || in matchIncrement() 1510 m_Instruction(LHS), m_Constant(Step))))) { in matchIncrement() 8759 m_Br(m_OneUse(m_Instruction(LogicOp)), TBB, FBB))) in splitBranchCondition()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/AggressiveInstCombine/ |
H A D | AggressiveInstCombine.cpp | 641 m_OneUse(m_Shl(m_OneUse(m_ZExt(m_OneUse(m_Instruction(L2)))), in foldLoadsRecursive() 644 m_OneUse(m_ZExt(m_OneUse(m_Instruction(L2)))))))) { in foldLoadsRecursive() 655 (match(X, m_OneUse(m_ZExt(m_Instruction(L1)))) || in foldLoadsRecursive() 656 match(X, m_OneUse(m_Shl(m_OneUse(m_ZExt(m_OneUse(m_Instruction(L1)))), in foldLoadsRecursive()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/ |
H A D | VectorCombine.cpp | 582 if (!match(&I, m_Cmp(Pred, m_Instruction(I0), m_Instruction(I1))) && in foldExtractExtract() 583 !match(&I, m_BinOp(m_Instruction(I0), m_Instruction(I1)))) in foldExtractExtract() 638 if (!match(&I, m_InsertElt(m_Value(DestVec), m_OneUse(m_Instruction(FNeg)), in foldInsExtFNeg() 646 m_Instruction(Extract), in foldInsExtFNeg() 1044 if (!match(B0, m_OneUse(m_Cmp(P0, m_Instruction(I0), m_Constant(C0)))) || in foldExtractedCmps() 1045 !match(B1, m_OneUse(m_Cmp(P1, m_Instruction(I1), m_Constant(C1)))) || in foldExtractedCmps() 1265 m_InsertElt(m_Instruction(Source), m_Value(NewElement), in foldSingleElementStore()
|
H A D | LoopVectorize.cpp | 5814 m_ZExtOrSExt(m_Mul(m_Instruction(Op0), m_Instruction(Op1)))) && in getReductionPatternCost() 5859 match(RedOp, m_Mul(m_Instruction(Op0), m_Instruction(Op1)))) { in getReductionPatternCost()
|
H A D | SLPVectorizer.cpp | 16873 if (match(Cond, m_Cmp(Pred, m_Specific(LHS), m_Instruction(L2)))) { in getRdxKind() 16877 } else if (match(Cond, m_Cmp(Pred, m_Instruction(L1), m_Specific(RHS)))) { in getRdxKind() 16884 if (!match(Cond, m_Cmp(Pred, m_Instruction(L1), m_Instruction(L2))) || in getRdxKind()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombineShifts.cpp | 65 m_Shift(m_Instruction(Sh0Op0), m_ZExtOrSelf(m_Value(ShAmt0))))) in reassociateShiftAmtsOfTwoSameDirectionShifts() 74 m_CombineOr(m_CombineAnd(m_Trunc(m_Instruction(Sh1)), m_Value(Trunc)), in reassociateShiftAmtsOfTwoSameDirectionShifts() 75 m_Instruction(Sh1))); in reassociateShiftAmtsOfTwoSameDirectionShifts() 1469 if (match(Op0, m_OneUse(m_Trunc(m_Instruction(TruncSrc)))) && in visitLShr() 1618 m_AShr(m_Shl(m_Instruction(MaybeTrunc), in foldVariableSignZeroExtensionOfVariableHighBitExtract() 1628 match(MaybeTrunc, m_TruncOrSelf(m_Instruction(HighBitExtract))); in foldVariableSignZeroExtensionOfVariableHighBitExtract()
|
H A D | InstCombineCompares.cpp | 1174 if (!I.isEquality() || !match(&I, m_ICmp(Pred, m_Instruction(Val), m_Zero()))) in foldSignBitTest() 3030 m_Add(m_CombineAnd(m_Instruction(Ext0), m_ZExtOrSExt(m_Value(Op0))), in foldICmpAddConstant() 3031 m_CombineAnd(m_Instruction(Ext1), in foldICmpAddConstant() 4506 m_c_And(m_CombineAnd(m_AnyLogicalShift, m_Instruction(XShift)), in foldShiftIntoShiftInAnotherHandOfAndInICmp() 4508 m_AnyLogicalShift, m_Instruction(YShift))), in foldShiftIntoShiftInAnotherHandOfAndInICmp() 4509 m_Instruction(MaybeTruncation))))) in foldShiftIntoShiftInAnotherHandOfAndInICmp() 4676 m_Instruction(Div)), in foldMultiplicationOverflowCheck() 4698 m_Instruction(Mul)), in foldMultiplicationOverflowCheck() 4700 m_Instruction(Div))))) { in foldMultiplicationOverflowCheck() 6715 m_CombineAnd(m_Instruction(ExtI), in foldICmpUsingBoolRange() [all …]
|
H A D | InstCombineAddSub.cpp | 1320 m_LShr(m_Value(X), m_Instruction(LowBitsToSkip)), in canonicalizeCondSignextOfHighBitExtractToSignextHighBitExtract() 1321 m_Instruction(Extract))), in canonicalizeCondSignextOfHighBitExtractToSignextHighBitExtract() 2676 if (!match(&I, m_FNeg(m_OneUse(m_Instruction(FNegOp))))) in foldFNegIntoConstant()
|
H A D | InstCombineCalls.cpp | 1132 if (match(&MinMax1, m_SMin(m_Instruction(MinMax2), m_APInt(MaxValue)))) { in matchSAddSubSat() 1136 m_SMax(m_Instruction(MinMax2), m_APInt(MinValue)))) { in matchSAddSubSat() 1268 m_Instruction(Inner), in reassociateMinMaxWithConstantInOperand() 3035 if (match(IIOperand, m_ICmp(Pred, m_Instruction(LHS), m_Zero())) && in visitCallInst()
|
H A D | InstCombineAndOrXor.cpp | 2857 if (!match(Or.getOperand(0), m_Instruction(Or0)) || in convertOrOfShiftsToFunnelShift() 2858 !match(Or.getOperand(1), m_Instruction(Or1))) in convertOrOfShiftsToFunnelShift() 3726 match(Op0, m_Not(m_CombineAnd(m_Instruction(And), in visitOr() 3730 match(Op0, m_Not(m_CombineAnd(m_Instruction(And), in visitOr()
|
H A D | InstCombineSelect.cpp | 2220 if (!match(Sel.getTrueValue(), m_Instruction(ExtInst)) && in foldSelectExtConst() 2221 !match(Sel.getFalseValue(), m_Instruction(ExtInst))) in foldSelectExtConst()
|
H A D | InstructionCombining.cpp | 2326 if (!match(GEP.getPointerOperand(), m_Instruction(Sel)) || in foldSelectGEP()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
H A D | DivRemPairs.cpp | 61 m_Instruction(Div)), in matchExpandedRem()
|
H A D | Reassociate.cpp | 504 match(Op, m_Instruction(Neg))) { in LinearizeExprTree() 2020 if (!match(V, m_OneUse(m_Instruction(I)))) in getNegatibleInsts() 2128 if (match(I, m_FAdd(m_Value(X), m_OneUse(m_Instruction(Op))))) in canonicalizeNegFPConstants() 2131 if (match(I, m_FAdd(m_OneUse(m_Instruction(Op)), m_Value(X)))) in canonicalizeNegFPConstants() 2134 if (match(I, m_FSub(m_Value(X), m_OneUse(m_Instruction(Op))))) in canonicalizeNegFPConstants()
|
H A D | LoopIdiomRecognize.cpp | 2803 m_Br(m_Instruction(ValShiftedIsZero), m_BasicBlock(TrueBB), in detectShiftUntilZeroIdiom() 2806 m_ICmp(Pred, m_Instruction(ValShifted), m_Zero())) || in detectShiftUntilZeroIdiom() 2815 m_Instruction(NBits)))) { in detectShiftUntilZeroIdiom() 2824 if (match(NBits, m_c_Add(m_Instruction(IV), in detectShiftUntilZeroIdiom() 2829 m_Sub(m_Instruction(IV), in detectShiftUntilZeroIdiom()
|
H A D | StructurizeCFG.cpp | 612 if (match(Cond, m_Not(m_OneUse(m_Instruction(Inverted)))) && in simplifyConditions()
|
H A D | DeadStoreElimination.cpp | 1953 m_Instruction(ICmpL)), in dominatingConditionImpliesValue()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
H A D | ScalarEvolutionExpander.cpp | 1787 m_Br(m_ICmp(Pred, m_Instruction(LHS), m_Instruction(RHS)), in hasRelatedExistingExpansion()
|
/freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
H A D | IVDescriptors.cpp | 79 if (match(J, m_And(m_Instruction(I), m_APInt(M)))) { in lookThroughAnd()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/ |
H A D | AArch64TargetTransformInfo.cpp | 2464 if (!(match(Add, m_c_Add(m_Instruction(Ex1), in isExtPartOfAvgExpr() 2465 m_c_Add(m_Instruction(Ex2), m_SpecificInt(1)))))) in isExtPartOfAvgExpr()
|
H A D | AArch64ISelLowering.cpp | 16177 if (match(I, m_c_Or(m_OneUse(m_Instruction(OtherAnd)), in shouldSinkOperands() 16179 m_Instruction(IA)))))) { in shouldSinkOperands() 16181 m_c_And(m_Specific(MaskValue), m_Instruction(IB)))) { in shouldSinkOperands()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/ |
H A D | PatternMatch.h | 816 inline bind_ty<Instruction> m_Instruction(Instruction *&I) { return I; } in m_Instruction() function
|