Home
last modified time | relevance | path

Searched refs:m_OneUse (Results 1 – 8 of 8) sorted by relevance

/external/llvm/unittests/IR/
DPatternMatch.cpp61 EXPECT_TRUE(m_OneUse(m_Value(V)).match(One)); in TEST_F()
64 EXPECT_FALSE(m_OneUse(m_Value()).match(Two)); in TEST_F()
65 EXPECT_FALSE(m_OneUse(m_Value()).match(Leaf)); in TEST_F()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineShifts.cpp447 m_And(m_OneUse(m_Shr(m_Value(V1), m_Specific(Op1))), in FoldShiftByConstant()
482 m_And(m_OneUse(m_Shr(m_Value(V1), m_Value(V2))), in FoldShiftByConstant()
730 if (match(I.getOperand(0), m_OneUse(m_Shl(m_Constant(C1), m_Value(A)))) && in visitShl()
DInstCombineCompares.cpp3575 if (match(Op0, m_OneUse(m_And(m_Value(A), m_Value(B)))) && in visitICmpInst()
3576 match(Op1, m_OneUse(m_And(m_Value(C), m_Value(D))))) { in visitICmpInst()
3616 if ((match(Op0, m_OneUse(m_LShr(m_Value(A), m_ConstantInt(Cst1)))) && in visitICmpInst()
3617 match(Op1, m_OneUse(m_LShr(m_Value(B), m_Specific(Cst1))))) || in visitICmpInst()
3618 (match(Op0, m_OneUse(m_AShr(m_Value(A), m_ConstantInt(Cst1)))) && in visitICmpInst()
3619 match(Op1, m_OneUse(m_AShr(m_Value(B), m_Specific(Cst1)))))) { in visitICmpInst()
3633 if (match(Op0, m_OneUse(m_Shl(m_Value(A), m_ConstantInt(Cst1)))) && in visitICmpInst()
3634 match(Op1, m_OneUse(m_Shl(m_Value(B), m_Specific(Cst1))))) { in visitICmpInst()
3651 match(Op0, m_Trunc(m_OneUse(m_LShr(m_Value(A), in visitICmpInst()
DInstCombineCasts.cpp867 match(SrcI, m_OneUse(m_And(m_Trunc(m_Value(X)), m_Constant(C)))) && in visitZExt()
873 if (SrcI && match(SrcI, m_OneUse(m_Xor(m_Value(And), m_Constant(C)))) && in visitZExt()
874 match(And, m_OneUse(m_And(m_Trunc(m_Value(X)), m_Specific(C)))) && in visitZExt()
DInstCombineMulDivRem.cpp40 if (match(V, m_LShr(m_OneUse(m_Shl(m_Value(One), m_Value(A))), m_Value(B))) && in simplifyValueKnownNonZero()
272 if (match(Op0, m_OneUse(m_Add(m_Value(X), m_Constant(C1))))) { in visitMul()
DInstCombineAndOrXor.cpp1423 if (LHS && match(Op1, m_OneUse(m_And(m_Value(X), m_Value(Y))))) { in visitAnd()
1431 if (RHS && match(Op0, m_OneUse(m_And(m_Value(X), m_Value(Y))))) { in visitAnd()
2435 if (LHS && match(Op1, m_OneUse(m_Or(m_Value(X), m_Value(Y))))) { in visitOr()
2443 if (RHS && match(Op0, m_OneUse(m_Or(m_Value(X), m_Value(Y))))) { in visitOr()
/external/llvm/lib/CodeGen/
DCodeGenPrepare.cpp4584 if (!match(BB.getTerminator(), m_Br(m_OneUse(m_BinOp(LogicOp)), TBB, FBB))) in splitBranchCondition()
4589 if (match(LogicOp, m_And(m_OneUse(m_Value(Cond1)), in splitBranchCondition()
4590 m_OneUse(m_Value(Cond2))))) in splitBranchCondition()
4592 else if (match(LogicOp, m_Or(m_OneUse(m_Value(Cond1)), in splitBranchCondition()
4593 m_OneUse(m_Value(Cond2))))) in splitBranchCondition()
/external/llvm/include/llvm/IR/
DPatternMatch.h55 template <typename T> inline OneUse_match<T> m_OneUse(const T &SubPattern) { in m_OneUse() function