/external/llvm-project/llvm/unittests/IR/ |
D | PatternMatch.cpp | 484 EXPECT_TRUE(m_Add(m_One(), m_Zero()).match(X)); in TEST_F() 485 EXPECT_FALSE(m_Add(m_Zero(), m_One()).match(X)); in TEST_F() 487 EXPECT_FALSE(m_Unless(m_Add(m_One(), m_Zero())).match(X)); in TEST_F() 488 EXPECT_TRUE(m_Unless(m_Add(m_Zero(), m_One())).match(X)); in TEST_F() 490 EXPECT_TRUE(m_c_Add(m_One(), m_Zero()).match(X)); in TEST_F() 491 EXPECT_TRUE(m_c_Add(m_Zero(), m_One()).match(X)); in TEST_F() 493 EXPECT_FALSE(m_Unless(m_c_Add(m_One(), m_Zero())).match(X)); in TEST_F() 494 EXPECT_FALSE(m_Unless(m_c_Add(m_Zero(), m_One())).match(X)); in TEST_F() 504 EXPECT_TRUE(m_One().match(One32)); in TEST_F() 505 EXPECT_FALSE(m_One().match(One64Z)); in TEST_F() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/ARM/ |
D | MVEGatherScatterLowering.cpp | 224 if (match(Mask, m_One())) in tryCreateMaskedGatherBase() 263 if (!match(Mask, m_One())) in tryCreateMaskedGatherOffset()
|
/external/llvm-project/llvm/lib/Target/ARM/ |
D | MVEGatherScatterLowering.cpp | 408 if (match(Mask, m_One())) in tryCreateMaskedGatherBase() 430 if (match(Mask, m_One())) in tryCreateMaskedGatherBaseWB() 497 if (!match(Mask, m_One())) in tryCreateMaskedGatherOffset() 558 if (match(Mask, m_One())) in tryCreateMaskedScatterBase() 581 if (match(Mask, m_One())) in tryCreateMaskedScatterBaseWB() 636 if (!match(Mask, m_One())) in tryCreateMaskedScatterOffset()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/ |
D | LowerConstantIntrinsics.cpp | 67 } else if (match(BI->getOperand(0), m_One())) { in replaceConditionalBranchesOnConstant()
|
/external/llvm-project/llvm/lib/Transforms/AggressiveInstCombine/ |
D | AggressiveInstCombine.cpp | 196 if (match(V, m_And(m_Value(Op0), m_One()))) { in matchAndOrChain() 242 else if (match(&I, m_And(m_OneUse(m_Or(m_Value(), m_Value())), m_One()))) in foldAnyOrAllBitsSet()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/AggressiveInstCombine/ |
D | AggressiveInstCombine.cpp | 182 if (match(V, m_And(m_Value(Op0), m_One()))) { in matchAndOrChain() 228 else if (match(&I, m_And(m_OneUse(m_Or(m_Value(), m_Value())), m_One()))) in foldAnyOrAllBitsSet()
|
/external/llvm-project/llvm/lib/Transforms/Scalar/ |
D | LowerConstantIntrinsics.cpp | 69 } else if (match(BI->getOperand(0), m_One())) { in replaceConditionalBranchesOnConstant()
|
/external/llvm-project/llvm/lib/Transforms/InstCombine/ |
D | InstCombineMulDivRem.cpp | 63 match(One, m_One())) { in simplifyValueKnownNonZero() 109 if (match(&I, m_c_Mul(m_OneUse(m_Select(m_Value(Cond), m_One(), m_AllOnes())), in foldMulSelectToNegate() 115 if (match(&I, m_c_Mul(m_OneUse(m_Select(m_Value(Cond), m_AllOnes(), m_One())), in foldMulSelectToNegate() 307 if (match(Op0, m_Shl(m_One(), m_Value(Y)))) { in visitMul() 310 } else if (match(Op1, m_Shl(m_One(), m_Value(Y)))) { in visitMul() 791 if (match(Op0, m_One())) { in commonIDivTransforms() 1162 m_OneUse(m_Intrinsic<Intrinsic::abs>(m_Value(X), m_One())), in visitSDiv() 1432 if (match(Op0, m_One())) { in visitURem()
|
D | InstCombineNegator.cpp | 178 if (match(Ops[1], m_One())) in visitImpl() 372 if (match(Ops[1], m_One())) in visitImpl()
|
D | InstCombineCompares.cpp | 1747 match(And->getOperand(1), m_One())) in foldICmpAndConstConst() 1810 match(And->getOperand(1), m_One())) { in foldICmpAndConstConst() 2006 if (!match(Shl, m_Shl(m_One(), m_Value(Y)))) in foldICmpShlOne() 2795 if (Pred == ICmpInst::ICMP_SLT && match(Op1, m_One())) in foldICmpBitCast() 3351 m_Add(m_Shl(m_One(), m_Value()), m_AllOnes())), in foldICmpWithLowBitMaskedVal() 3863 if (A && NoOp0WrapProblem && Pred == CmpInst::ICMP_SLE && match(B, m_One())) in foldICmpBinOp() 3867 if (A && NoOp0WrapProblem && Pred == CmpInst::ICMP_SGT && match(B, m_One())) in foldICmpBinOp() 3881 if (C && NoOp1WrapProblem && Pred == CmpInst::ICMP_SGE && match(D, m_One())) in foldICmpBinOp() 3885 if (C && NoOp1WrapProblem && Pred == CmpInst::ICMP_SLT && match(D, m_One())) in foldICmpBinOp() 3898 if (A && NoOp0WrapProblem && Pred == CmpInst::ICMP_ULE && match(B, m_One())) in foldICmpBinOp() [all …]
|
D | InstCombineSelect.cpp | 486 match(Cmp->getOperand(1), m_Zero()) && match(FVal, m_One()))) in foldSelectICmpAndAnd() 491 if (!match(TVal, m_OneUse(m_And(m_Value(B), m_One())))) in foldSelectICmpAndAnd() 907 !match(II->getArgOperand(1), m_One())) in foldSelectCttzCtlz() 1353 if (!match(Precond1, m_One())) in canonicalizeClampLike() 1358 if (!match(Precond2, m_One())) in canonicalizeClampLike() 2631 if (match(TrueVal, m_One())) { in visitSelectInst() 2644 if (match(FalseVal, m_One())) { in visitSelectInst() 2674 if (match(TrueVal, m_One()) && match(FalseVal, m_Zero())) in visitSelectInst() 2682 if (match(TrueVal, m_Zero()) && match(FalseVal, m_One())) { in visitSelectInst()
|
D | InstCombineAddSub.cpp | 779 if (match(RHS, m_Add(m_Value(X), m_One()))) in checkForNegativeOperand() 782 if (match(LHS, m_Add(m_Value(X), m_One()))) { in checkForNegativeOperand() 1105 if (!match(&I, m_Add(m_OneUse(m_Shl(m_One(), m_Value(NBits))), m_AllOnes()))) in canonicalizeLowbitMask() 1229 ? !match(SignExtendingValueBaseConstant, m_One()) in canonicalizeCondSignextOfHighBitExtractToSignextHighBitExtract() 1339 if (match(&I, m_c_BinOp(m_Add(m_Value(A), m_One()), m_Not(m_Value(B)))) || in visitAdd() 1340 match(&I, m_BinOp(m_c_Add(m_Not(m_Value(B)), m_Value(A)), m_One()))) in visitAdd()
|
/external/llvm-project/llvm/lib/Target/Hexagon/ |
D | HexagonLoopIdiomRecognition.cpp | 714 if (match(A, m_Shl(m_One(), m_Specific(CIV)))) { in matchLeftShift() 717 } else if (match(B, m_Shl(m_One(), m_Specific(CIV)))) { in matchLeftShift() 827 } else if (match(CondV, m_ICmp(P, m_Value(C), m_One())) || in matchRightShift() 828 match(CondV, m_ICmp(P, m_One(), m_Value(C)))) { in matchRightShift() 838 if (!match(C, m_And(m_Value(X), m_One())) && in matchRightShift() 839 !match(C, m_And(m_One(), m_Value(X)))) in matchRightShift() 848 if (!match(TrueV, m_LShr(m_Value(R), m_One()))) in matchRightShift() 859 if (!match(FalseV, m_LShr(m_Value(R), m_One()))) in matchRightShift() 1330 if (!match(&I, m_LShr(m_Value(V), m_One()))) in convertShiftsToLeft() 1420 if (match(&*I, m_LShr(m_Value(V), m_One()))) { in convertShiftsToLeft()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Hexagon/ |
D | HexagonLoopIdiomRecognition.cpp | 695 if (match(A, m_Shl(m_One(), m_Specific(CIV)))) { in matchLeftShift() 698 } else if (match(B, m_Shl(m_One(), m_Specific(CIV)))) { in matchLeftShift() 808 } else if (match(CondV, m_ICmp(P, m_Value(C), m_One())) || in matchRightShift() 809 match(CondV, m_ICmp(P, m_One(), m_Value(C)))) { in matchRightShift() 819 if (!match(C, m_And(m_Value(X), m_One())) && in matchRightShift() 820 !match(C, m_And(m_One(), m_Value(X)))) in matchRightShift() 829 if (!match(TrueV, m_LShr(m_Value(R), m_One()))) in matchRightShift() 840 if (!match(FalseV, m_LShr(m_Value(R), m_One()))) in matchRightShift() 1311 if (!match(&I, m_LShr(m_Value(V), m_One()))) in convertShiftsToLeft() 1401 if (match(&*I, m_LShr(m_Value(V), m_One()))) { in convertShiftsToLeft()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/ |
D | InstCombineMulDivRem.cpp | 62 match(One, m_One())) { in simplifyValueKnownNonZero() 138 if (match(&I, m_c_Mul(m_OneUse(m_Select(m_Value(Cond), m_One(), m_AllOnes())), in foldMulSelectToNegate() 144 if (match(&I, m_c_Mul(m_OneUse(m_Select(m_Value(Cond), m_AllOnes(), m_One())), in foldMulSelectToNegate() 341 if (match(Op0, m_Shl(m_One(), m_Value(Y)))) { in visitMul() 344 } else if (match(Op1, m_Shl(m_One(), m_Value(Y)))) { in visitMul() 764 if (match(Op0, m_One())) { in commonIDivTransforms() 1379 if (match(Op0, m_One())) { in visitURem()
|
D | InstCombineAddSub.cpp | 782 if (match(RHS, m_Add(m_Value(X), m_One()))) in checkForNegativeOperand() 785 if (match(LHS, m_Add(m_Value(X), m_One()))) { in checkForNegativeOperand() 1067 if (!match(&I, m_Add(m_OneUse(m_Shl(m_One(), m_Value(NBits))), m_AllOnes()))) in canonicalizeLowbitMask() 1191 ? !match(SignExtendingValueBaseConstant, m_One()) in canonicalizeCondSignextOfHighBitExtractToSignextHighBitExtract() 1306 if (match(&I, m_c_BinOp(m_Add(m_Value(A), m_One()), m_Not(m_Value(B)))) || in visitAdd() 1307 match(&I, m_BinOp(m_c_Add(m_Not(m_Value(B)), m_Value(A)), m_One()))) in visitAdd() 1727 if (match(Op1, m_OneUse(m_Add(m_Value(X), m_One())))) in visitSub()
|
D | InstCombineCompares.cpp | 1725 match(And->getOperand(1), m_One())) in foldICmpAndConstConst() 1788 match(And->getOperand(1), m_One())) { in foldICmpAndConstConst() 1964 if (!match(Shl, m_Shl(m_One(), m_Value(Y)))) in foldICmpShlOne() 2751 if (Pred == ICmpInst::ICMP_SLT && match(Op1, m_One())) in foldICmpBitCast() 3284 m_Add(m_Shl(m_One(), m_Value()), m_AllOnes())), in foldICmpWithLowBitMaskedVal() 3798 if (A && NoOp0WrapProblem && Pred == CmpInst::ICMP_SLE && match(B, m_One())) in foldICmpBinOp() 3802 if (A && NoOp0WrapProblem && Pred == CmpInst::ICMP_SGT && match(B, m_One())) in foldICmpBinOp() 3816 if (C && NoOp1WrapProblem && Pred == CmpInst::ICMP_SGE && match(D, m_One())) in foldICmpBinOp() 3820 if (C && NoOp1WrapProblem && Pred == CmpInst::ICMP_SLT && match(D, m_One())) in foldICmpBinOp() 3833 if (A && NoOp0WrapProblem && Pred == CmpInst::ICMP_ULE && match(B, m_One())) in foldICmpBinOp() [all …]
|
D | InstCombineSelect.cpp | 506 match(Cmp->getOperand(1), m_Zero()) && match(FVal, m_One()))) in foldSelectICmpAndAnd() 511 if (!match(TVal, m_OneUse(m_And(m_Value(B), m_One())))) in foldSelectICmpAndAnd() 893 if (II->hasOneUse() && !match(II->getArgOperand(1), m_One())) in foldSelectCttzCtlz() 1302 if (!match(Precond1, m_One())) in canonicalizeClampLike() 1307 if (!match(Precond2, m_One())) in canonicalizeClampLike() 2377 if (match(TrueVal, m_One())) { in visitSelectInst() 2390 if (match(FalseVal, m_One())) { in visitSelectInst() 2420 if (match(TrueVal, m_One()) && match(FalseVal, m_Zero())) in visitSelectInst() 2428 if (match(TrueVal, m_Zero()) && match(FalseVal, m_One())) { in visitSelectInst()
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineSelect.cpp | 924 if (match(TrueVal, m_One())) { in visitSelectInst() 937 if (match(FalseVal, m_One())) { in visitSelectInst() 966 if (match(TrueVal, m_One()) && match(FalseVal, m_Zero())) in visitSelectInst() 974 if (match(TrueVal, m_Zero()) && match(FalseVal, m_One())) { in visitSelectInst()
|
D | InstCombineMulDivRem.cpp | 41 match(One, m_One())) { in simplifyValueKnownNonZero() 353 if (match(Op0, m_Shl(m_One(), m_Value(Y)))) { in visitMul() 356 } else if (match(Op1, m_Shl(m_One(), m_Value(Y)))) { in visitMul() 1444 if (match(Op0, m_One())) { in visitURem()
|
D | InstCombineCompares.cpp | 1788 if (match(LHSI->getOperand(1), m_One())) { in visitICmpInstWithInstAndIntCst() 1927 if (match(LHSI, m_Shl(m_One(), m_Value(X)))) { in visitICmpInstWithInstAndIntCst() 2658 if (match(RHS, m_One())) in OptimizeOverflowCheck() 3434 if (match(LHS, m_Shl(m_One(), m_Value(X)))) { in visitICmpInst() 3478 if (match(LHS, m_Shl(m_One(), m_Value(X)))) { in visitICmpInst() 3870 match(B, m_One())) in visitICmpInst() 3875 match(B, m_One())) in visitICmpInst() 3890 match(D, m_One())) in visitICmpInst() 3895 match(D, m_One())) in visitICmpInst()
|
/external/llvm-project/mlir/include/mlir/IR/ |
D | Matchers.h | 222 inline detail::constant_int_value_matcher<1> m_One() { in m_One() function
|
/external/llvm-project/mlir/lib/Dialect/SPIRV/ |
D | SPIRVCanonicalization.cpp | 178 if (matchPattern(operand2(), m_One())) in fold()
|
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/IR/ |
D | PatternMatch.h | 405 inline cst_pred_ty<is_one> m_One() { in m_One() function 1675 (m_One().match(AddLHS) || m_One().match(AddRHS))) in match() 1680 (m_One().match(AddLHS) || m_One().match(AddRHS))) in match()
|
/external/llvm-project/llvm/include/llvm/IR/ |
D | PatternMatch.h | 459 inline cst_pred_ty<is_one> m_One() { in m_One() function 1927 (m_One().match(AddLHS) || m_One().match(AddRHS))) in match() 1932 (m_One().match(AddLHS) || m_One().match(AddRHS))) in match()
|