Home
last modified time | relevance | path

Searched refs:m_Or (Results 1 – 25 of 30) sorted by relevance

12

/external/llvm/lib/Transforms/InstCombine/
DInstCombineAndOrXor.cpp1444 if (match(Op0, m_Or(m_Value(A), m_Value(B))) && in visitAnd()
1450 if (match(Op1, m_Or(m_Value(A), m_Value(B))) && in visitAnd()
1481 if (match(Op0, m_Or(m_Not(m_Specific(Op1)), m_Value(A))) || in visitAnd()
1482 match(Op0, m_Or(m_Value(A), m_Not(m_Specific(Op1))))) in visitAnd()
1484 if (match(Op1, m_Or(m_Not(m_Specific(Op0)), m_Value(A))) || in visitAnd()
1485 match(Op1, m_Or(m_Value(A), m_Not(m_Specific(Op0))))) in visitAnd()
1501 if (match(Op0, m_Or(m_Value(A), m_Value(B))) && in visitAnd()
1507 match(Op1, m_Or(m_Specific(A), m_Specific(B)))) in visitAnd()
1567 bool OrOfOrs = match(Op0, m_Or(m_Value(), m_Value())) || in MatchBSwap()
1568 match(Op1, m_Or(m_Value(), m_Value())); in MatchBSwap()
[all …]
DInstCombineAddSub.cpp998 if (match(Y, m_Or(m_Value(Z), m_APInt(C2))) && (*C2 == ~(*C1))) { in checkForNegativeOperand()
1259 if (match(RHS, m_Or(m_Value(A), m_Value(B))) && in visitAdd()
1268 if (match(LHS, m_Or(m_Value(A), m_Value(B))) && in visitAdd()
1587 (match(Op0, m_Or(m_Specific(A), m_Specific(B))) || in visitSub()
1588 match(Op0, m_Or(m_Specific(B), m_Specific(A))))) in visitSub()
1595 if (match(Op0, m_Or(m_Value(Y), m_Specific(Op1))) || in visitSub()
1596 match(Op0, m_Or(m_Specific(Op1), m_Value(Y)))) in visitSub()
DInstCombineSelect.cpp329 bool OrOnFalseVal = match(FalseVal, m_Or(m_Specific(TrueVal), m_Power2(C2))); in foldSelectICmpAndOr()
331 OrOnTrueVal = match(TrueVal, m_Or(m_Specific(FalseVal), m_Power2(C2))); in foldSelectICmpAndOr()
DInstCombineCompares.cpp1791 if (match(Or, m_Or(m_Value(LShr), m_Value(X))) && in visitICmpInstWithInstAndIntCst()
1887 if (match(LHSI, m_Or(m_PtrToInt(m_Value(P)), m_PtrToInt(m_Value(Q))))) { in visitICmpInstWithInstAndIntCst()
DInstCombineCalls.cpp2267 if (match(IIOperand, m_Not(m_Or(m_Value(A), m_Value(B))))) { in visitCallInst()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/AggressiveInstCombine/
DAggressiveInstCombine.cpp190 if (match(V, m_Or(m_Value(Op0), m_Value(Op1)))) in matchAndOrChain()
228 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/InstCombine/
DInstCombineAndOrXor.cpp1611 if (match(&I, m_BinOp(m_Or(m_Value(A), m_Value(B)), in foldAndToXor()
1772 if (match(Op0, m_OneUse(m_Or(m_Value(X), m_APInt(OrC))))) { in visitAnd()
1789 match(Op0, m_OneUse(m_Or(m_Value(X), m_Value(Y))))) { in visitAnd()
1991 bool OrOfOrs = match(Op0, m_Or(m_Value(), m_Value())) || in matchBSwap()
1992 match(Op1, m_Or(m_Value(), m_Value())); in matchBSwap()
2506 if (match(A, m_Or(m_Value(V1), m_Value(V2))) && in visitOr()
2514 if (match(B, m_Or(m_Value(V1), m_Value(V2))) && in visitOr()
2525 if (match(A, m_Or(m_Value(V1), m_ConstantInt(C3))) && in visitOr()
2527 match(B, m_Or(m_Specific(V1), m_ConstantInt(C4))) && in visitOr()
2589 if (match(Op0, m_And(m_Or(m_Specific(Op1), m_Value(C)), m_Value(A)))) in visitOr()
[all …]
DInstCombineAddSub.cpp793 if (match(Y, m_Or(m_Value(Z), m_APInt(C2))) && (*C2 == ~(*C1))) { in checkForNegativeOperand()
908 if (match(Op0, m_Or(m_Value(), m_APInt(C2))) && *C2 == -*C) in foldAddWithConstant()
1381 if (match(&I, m_c_BinOp(m_Or(m_Value(A), m_Value(B)), in visitAdd()
DInstCombineSelect.cpp634 bool OrOnFalseVal = match(FalseVal, m_Or(m_Specific(TrueVal), m_Power2(C2))); in foldSelectICmpAndOr()
636 OrOnTrueVal = match(TrueVal, m_Or(m_Specific(FalseVal), m_Power2(C2))); in foldSelectICmpAndOr()
2279 if (!match(Sel.getFalseValue(), m_OneUse(m_Or(m_Value(Or0), m_Value(Or1))))) in foldSelectRotate()
DInstCombineCasts.cpp511 if (!match(Trunc.getOperand(0), m_OneUse(m_Or(m_Value(Or0), m_Value(Or1))))) in narrowRotate()
DInstCombineCompares.cpp1792 if (match(Or, m_Or(m_Value(LShr), m_Value(A))) && in foldICmpAndConstConst()
1912 if (match(Or, m_Or(m_PtrToInt(m_Value(P)), m_PtrToInt(m_Value(Q))))) { in foldICmpOrConstant()
/external/llvm/lib/Transforms/Scalar/
DStraightLineStrengthReduce.cpp392 return (match(A, m_Or(m_Value(B), m_ConstantInt(C))) || in matchesOr()
393 match(A, m_Or(m_ConstantInt(C), m_Value(B)))); in matchesOr()
DGuardWidening.cpp537 m_Or(m_Value(OpLHS), m_ConstantInt(OpRHS)))) { in parseRangeChecks()
DGVN.cpp1976 (isKnownFalse && match(LHS, m_Or(m_Value(A), m_Value(B))))) { in propagateEquality()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/
DStraightLineStrengthReduce.cpp428 return (match(A, m_Or(m_Value(B), m_ConstantInt(C))) || in matchesOr()
429 match(A, m_Or(m_ConstantInt(C), m_Value(B)))); in matchesOr()
DGuardWidening.cpp637 m_Or(m_Value(OpLHS), m_ConstantInt(OpRHS)))) { in parseRangeChecks()
DGVN.cpp1911 (isKnownFalse && match(LHS, m_Or(m_Value(A), m_Value(B))))) { in propagateEquality()
/external/llvm/include/llvm/IR/
DPatternMatch.h512 inline BinaryOp_match<LHS, RHS, Instruction::Or> m_Or(const LHS &L, in m_Or() function
1299 auto Signum = m_Or(LHS, RHS);
1341 return m_CombineOr(m_Or(L, R), m_Or(R, L));
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/
DPredicateInfo.cpp427 match(BI->getCondition(), m_Or(m_Cmp(Pred, m_Value(), m_Value()), in processBranch()
/external/llvm/lib/Analysis/
DInstructionSimplify.cpp1596 if (match(Op0, m_Or(m_Value(A), m_Value(B))) && in SimplifyAndInst()
1601 if (match(Op1, m_Or(m_Value(A), m_Value(B))) && in SimplifyAndInst()
2399 } else if (match(LHS, m_Or(m_Value(), m_ConstantInt(CI2)))) { in SimplifyICmpInst()
3444 if (FalseVal == X && match(TrueVal, m_Or(m_Specific(X), m_APInt(C))) && in SimplifySelectInst()
3449 if (TrueVal == X && match(FalseVal, m_Or(m_Specific(X), m_APInt(C))) && in SimplifySelectInst()
DValueTracking.cpp1724 if (match(V, m_Or(m_Value(X), m_Value(Y)))) in isKnownNonZero()
3994 if (match(A, m_Or(m_Value(X), m_APInt(CA))) && in isTruePredicate()
3995 match(B, m_Or(m_Specific(X), m_APInt(CB)))) { in isTruePredicate()
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/IR/
DPatternMatch.h905 inline BinaryOp_match<LHS, RHS, Instruction::Or> m_Or(const LHS &L, in m_Or() function
1970 auto Signum = m_Or(LHS, RHS);
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/
DValueTracking.cpp2216 if (match(V, m_Or(m_Value(X), m_Value(Y)))) in isKnownNonZero()
5347 if (match(A, m_Or(m_Value(X), m_APInt(CA))) && in isTruePredicate()
5348 match(B, m_Or(m_Specific(X), m_APInt(CB)))) { in isTruePredicate()
5507 if ((!LHSIsTrue && match(LHS, m_Or(m_Value(ALHS), m_Value(ARHS)))) || in isImpliedCondAndOr()
DInstructionSimplify.cpp3824 if (FalseVal == X && match(TrueVal, m_Or(m_Specific(X), m_APInt(C))) && in simplifySelectBitTest()
3830 if (TrueVal == X && match(FalseVal, m_Or(m_Specific(X), m_APInt(C))) && in simplifySelectBitTest()
/external/llvm/lib/CodeGen/
DCodeGenPrepare.cpp5503 else if (match(LogicOp, m_Or(m_OneUse(m_Value(Cond1)), in splitBranchCondition()

12