/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/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/llvm/lib/IR/ |
D | ConstantFold.cpp | 956 if (match(C2, m_Zero()) || match(C2, m_One())) in ConstantFoldBinaryInstruction()
|
/external/llvm/lib/CodeGen/ |
D | CodeGenPrepare.cpp | 1681 if (match(CountZeros->getOperand(1), m_One())) in despeculateCountZeros()
|