Home
last modified time | relevance | path

Searched refs:m_One (Results 1 – 14 of 14) sorted by relevance

/external/swiftshader/third_party/LLVM/lib/Analysis/
DInstructionSimplify.cpp440 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()
DValueTracking.cpp722 if (match(V, m_Shl(m_One(), m_Value()))) in isPowerOfTwo()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineSelect.cpp924 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()
DInstCombineMulDivRem.cpp41 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()
DInstCombineCompares.cpp1788 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()
DInstCombineAddSub.cpp987 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/
DInstCombineMulDivRem.cpp226 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()
DInstCombineCompares.cpp1968 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/
DPatternMatch.h182 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/
DInstructionSimplify.cpp433 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()
DValueTracking.cpp1507 if (match(V, m_Shl(m_One(), m_Value()))) in isKnownToBeAPowerOfTwo()
/external/llvm/include/llvm/IR/
DPatternMatch.h244 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/
DConstantFold.cpp956 if (match(C2, m_Zero()) || match(C2, m_One())) in ConstantFoldBinaryInstruction()
/external/llvm/lib/CodeGen/
DCodeGenPrepare.cpp1681 if (match(CountZeros->getOperand(1), m_One())) in despeculateCountZeros()