/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/AggressiveInstCombine/ |
D | AggressiveInstCombine.cpp | 90 if (match(V, m_And(m_Value(Op0), m_One()))) { in matchAndOrChain() 136 else if (match(&I, m_And(m_OneUse(m_Or(m_Value(), m_Value())), m_One()))) in foldAnyOrAllBitsSet()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/Hexagon/ |
D | HexagonLoopIdiomRecognition.cpp | 694 if (match(A, m_Shl(m_One(), m_Specific(CIV)))) { in matchLeftShift() 697 } else if (match(B, m_Shl(m_One(), m_Specific(CIV)))) { in matchLeftShift() 807 } else if (match(CondV, m_ICmp(P, m_Value(C), m_One())) || in matchRightShift() 808 match(CondV, m_ICmp(P, m_One(), m_Value(C)))) { in matchRightShift() 818 if (!match(C, m_And(m_Value(X), m_One())) && in matchRightShift() 819 !match(C, m_And(m_One(), m_Value(X)))) in matchRightShift() 828 if (!match(TrueV, m_LShr(m_Value(R), m_One()))) in matchRightShift() 839 if (!match(FalseV, m_LShr(m_Value(R), m_One()))) in matchRightShift() 1308 if (!match(&I, m_LShr(m_Value(V), m_One()))) in convertShiftsToLeft() 1398 if (match(&*I, m_LShr(m_Value(V), m_One()))) { in convertShiftsToLeft()
|
/external/swiftshader/third_party/LLVM/lib/Analysis/ |
D | InstructionSimplify.cpp | 440 if (match(TCmp, m_One())) in ThreadCmpOverSelect() 445 if (match(FCmp, m_One()) && match(TCmp, m_Zero())) in ThreadCmpOverSelect() 638 match(Op0, m_Shl(m_Specific(Op1), m_One()))) in SimplifySubInst() 754 if (match(Op1, m_One())) in SimplifyMulInst() 830 if (match(Op1, m_One())) in SimplifyDiv() 953 if (match(Op1, m_One())) in SimplifyRem() 1452 if (match(RHS, m_One())) in SimplifyICmpInst() 1467 if (match(RHS, m_One())) in SimplifyICmpInst() 1477 if (match(RHS, m_One())) in SimplifyICmpInst()
|
D | ValueTracking.cpp | 722 if (match(V, m_Shl(m_One(), m_Value()))) in isPowerOfTwo()
|
/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()
|
D | InstCombineAddSub.cpp | 987 if (match(RHS, m_Add(m_Value(X), m_One()))) in checkForNegativeOperand() 990 if (match(LHS, m_Add(m_Value(X), m_One()))) { in checkForNegativeOperand()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/InstCombine/ |
D | InstCombineMulDivRem.cpp | 63 match(One, m_One())) { in simplifyValueKnownNonZero() 291 if (match(Op0, m_Shl(m_One(), m_Value(Y)))) { in visitMul() 294 } else if (match(Op1, m_Shl(m_One(), m_Value(Y)))) { in visitMul() 741 if (match(Op0, m_One())) { in commonIDivTransforms() 1326 if (match(Op0, m_One())) in visitURem()
|
D | InstCombineSelect.cpp | 456 match(Cmp->getOperand(1), m_Zero()) && match(FVal, m_One()))) in foldSelectICmpAndAnd() 461 if (!match(TVal, m_OneUse(m_And(m_Value(B), m_One())))) in foldSelectICmpAndAnd() 1554 if (match(TrueVal, m_One())) { in visitSelectInst() 1567 if (match(FalseVal, m_One())) { in visitSelectInst() 1597 if (match(TrueVal, m_One()) && match(FalseVal, m_Zero())) in visitSelectInst() 1605 if (match(TrueVal, m_Zero()) && match(FalseVal, m_One())) { in visitSelectInst()
|
D | InstCombineAddSub.cpp | 877 if (match(RHS, m_Add(m_Value(X), m_One()))) in checkForNegativeOperand() 880 if (match(LHS, m_Add(m_Value(X), m_One()))) { in checkForNegativeOperand() 1114 if (!match(&I, m_Add(m_OneUse(m_Shl(m_One(), m_Value(NBits))), m_AllOnes()))) in canonicalizeLowbitMask() 1225 if (match(&I, m_c_BinOp(m_Add(m_Value(A), m_One()), m_Not(m_Value(B))))) in visitAdd() 1622 if (match(Op1, m_OneUse(m_Add(m_Value(X), m_One())))) in visitSub()
|
D | InstCombineCompares.cpp | 1640 match(And->getOperand(1), m_One())) { in foldICmpAndConstConst() 1807 if (!match(Shl, m_Shl(m_One(), m_Value(Y)))) in foldICmpShlOne() 3118 if (A && NoOp0WrapProblem && Pred == CmpInst::ICMP_SLE && match(B, m_One())) in foldICmpBinOp() 3122 if (A && NoOp0WrapProblem && Pred == CmpInst::ICMP_SGT && match(B, m_One())) in foldICmpBinOp() 3136 if (C && NoOp1WrapProblem && Pred == CmpInst::ICMP_SGE && match(D, m_One())) in foldICmpBinOp() 3140 if (C && NoOp1WrapProblem && Pred == CmpInst::ICMP_SLT && match(D, m_One())) in foldICmpBinOp() 3153 if (A && NoOp0WrapProblem && Pred == CmpInst::ICMP_ULE && match(B, m_One())) in foldICmpBinOp() 3157 if (A && NoOp0WrapProblem && Pred == CmpInst::ICMP_UGT && match(B, m_One())) in foldICmpBinOp() 3161 if (C && NoOp1WrapProblem && Pred == CmpInst::ICMP_UGE && match(D, m_One())) in foldICmpBinOp() 3165 if (C && NoOp1WrapProblem && Pred == CmpInst::ICMP_ULT && match(D, m_One())) in foldICmpBinOp() [all …]
|
D | InstCombineCalls.cpp | 1342 if (!match(II.getArgOperand(1), m_One())) { in foldCttzCtlz() 3575 ((match(Src1, m_One()) && match(Src0, m_ZExt(m_Value(ExtSrc)))) || in visitCallInst()
|
D | InstCombineAndOrXor.cpp | 1434 if (match(Op0, m_OneUse(m_LogicalShift(m_One(), m_Value(X)))) && in visitAnd()
|
/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/ |
D | InstCombineMulDivRem.cpp | 226 if (match(Op0, m_Shl(m_One(), m_Value(Y)))) in visitMul() 228 if (match(Op1, m_Shl(m_One(), m_Value(Y)))) in visitMul()
|
D | InstCombineCompares.cpp | 1968 if (match(LHS, m_Shl(m_One(), m_Value(X)))) { in visitICmpInst() 2005 if (match(LHS, m_Shl(m_One(), m_Value(X)))) { in visitICmpInst()
|
/external/swiftshader/third_party/LLVM/include/llvm/Support/ |
D | PatternMatch.h | 182 inline cst_pred_ty<is_one> m_One() { return cst_pred_ty<is_one>(); } in m_One() function 183 inline api_pred_ty<is_one> m_One(const APInt *&V) { return V; } in m_One() function
|
/external/llvm/lib/Analysis/ |
D | InstructionSimplify.cpp | 433 if (match(TCmp, m_One())) in ThreadCmpOverSelect() 438 if (match(FCmp, m_One()) && match(TCmp, m_Zero())) in ThreadCmpOverSelect() 904 if (match(Op1, m_One())) in SimplifyMulInst() 1007 if (match(Op1, m_One())) in SimplifyDiv() 1167 if (match(Op1, m_One())) in SimplifyRem() 2184 if (match(RHS, m_One())) in SimplifyICmpInst() 2199 if (match(RHS, m_One())) in SimplifyICmpInst() 2224 if (match(RHS, m_One())) in SimplifyICmpInst()
|
D | ValueTracking.cpp | 1507 if (match(V, m_Shl(m_One(), m_Value()))) in isKnownToBeAPowerOfTwo()
|
/external/llvm/include/llvm/IR/ |
D | PatternMatch.h | 244 inline cst_pred_ty<is_one> m_One() { return cst_pred_ty<is_one>(); } in m_One() function 245 inline api_pred_ty<is_one> m_One(const APInt *&V) { return V; } in m_One() function
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/ |
D | InstructionSimplify.cpp | 461 if (match(TCmp, m_One())) in ThreadCmpOverSelect() 466 if (match(FCmp, m_One()) && match(TCmp, m_Zero())) in ThreadCmpOverSelect() 859 if (match(Op1, m_One())) in SimplifyMulInst() 953 if (match(Op1, m_One()) || Ty->isIntOrIntVectorTy(1) || in simplifyDivRem() 2354 } else if (match(RHS, m_One())) { in simplifyICmpOfBools()
|
D | ValueTracking.cpp | 1684 if (match(V, m_Shl(m_One(), m_Value()))) in isKnownToBeAPowerOfTwo() 4643 auto ZeroOrOne = m_CombineOr(m_ZeroInt(), m_One()); in matchSelectPattern()
|
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/IR/ |
D | PatternMatch.h | 352 inline cst_pred_ty<is_one> m_One() { in m_One() function
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/IR/ |
D | ConstantFold.cpp | 960 if (match(C2, m_Zero()) || match(C2, m_One())) in ConstantFoldBinaryInstruction()
|
/external/llvm/lib/IR/ |
D | ConstantFold.cpp | 956 if (match(C2, m_Zero()) || match(C2, m_One())) in ConstantFoldBinaryInstruction()
|