Searched refs:m_OneUse (Results 1 – 8 of 8) sorted by relevance
/external/llvm/unittests/IR/ |
D | PatternMatch.cpp | 61 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/ |
D | InstCombineShifts.cpp | 447 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()
|
D | InstCombineCompares.cpp | 3710 if (match(Op0, m_OneUse(m_And(m_Value(A), m_Value(B)))) && in visitICmpInst() 3711 match(Op1, m_OneUse(m_And(m_Value(C), m_Value(D))))) { in visitICmpInst() 3751 if ((match(Op0, m_OneUse(m_LShr(m_Value(A), m_ConstantInt(Cst1)))) && in visitICmpInst() 3752 match(Op1, m_OneUse(m_LShr(m_Value(B), m_Specific(Cst1))))) || in visitICmpInst() 3753 (match(Op0, m_OneUse(m_AShr(m_Value(A), m_ConstantInt(Cst1)))) && in visitICmpInst() 3754 match(Op1, m_OneUse(m_AShr(m_Value(B), m_Specific(Cst1)))))) { in visitICmpInst() 3768 if (match(Op0, m_OneUse(m_Shl(m_Value(A), m_ConstantInt(Cst1)))) && in visitICmpInst() 3769 match(Op1, m_OneUse(m_Shl(m_Value(B), m_Specific(Cst1))))) { in visitICmpInst() 3786 match(Op0, m_Trunc(m_OneUse(m_LShr(m_Value(A), in visitICmpInst()
|
D | InstCombineAndOrXor.cpp | 1233 if (match(Op0, m_OneUse(m_Xor(m_ZExt(m_Value(A)), m_ConstantInt(C1)))) && in matchDeMorgansLaws() 1234 match(Op1, m_OneUse(m_Xor(m_ZExt(m_Value(B)), m_Specific(C1))))) { in matchDeMorgansLaws() 1465 if (LHS && match(Op1, m_OneUse(m_And(m_Value(X), m_Value(Y))))) { in visitAnd() 1473 if (RHS && match(Op0, m_OneUse(m_And(m_Value(X), m_Value(Y))))) { in visitAnd() 2521 if (LHS && match(Op1, m_OneUse(m_Or(m_Value(X), m_Value(Y))))) { in visitOr() 2529 if (RHS && match(Op0, m_OneUse(m_Or(m_Value(X), m_Value(Y))))) { in visitOr()
|
D | InstCombineCasts.cpp | 942 match(SrcI, m_OneUse(m_And(m_Trunc(m_Value(X)), m_Constant(C)))) && in visitZExt() 948 if (SrcI && match(SrcI, m_OneUse(m_Xor(m_Value(And), m_Constant(C)))) && in visitZExt() 949 match(And, m_OneUse(m_And(m_Trunc(m_Value(X)), m_Specific(C)))) && in visitZExt()
|
D | InstCombineMulDivRem.cpp | 40 if (match(V, m_LShr(m_OneUse(m_Shl(m_Value(One), m_Value(A))), m_Value(B))) && in simplifyValueKnownNonZero() 283 if (match(Op0, m_OneUse(m_Add(m_Value(X), m_Constant(C1))))) { in visitMul()
|
/external/llvm/lib/CodeGen/ |
D | CodeGenPrepare.cpp | 5404 if (!match(BB.getTerminator(), m_Br(m_OneUse(m_BinOp(LogicOp)), TBB, FBB))) in splitBranchCondition() 5413 if (match(LogicOp, m_And(m_OneUse(m_Value(Cond1)), in splitBranchCondition() 5414 m_OneUse(m_Value(Cond2))))) in splitBranchCondition() 5416 else if (match(LogicOp, m_Or(m_OneUse(m_Value(Cond1)), in splitBranchCondition() 5417 m_OneUse(m_Value(Cond2))))) in splitBranchCondition()
|
/external/llvm/include/llvm/IR/ |
D | PatternMatch.h | 55 template <typename T> inline OneUse_match<T> m_OneUse(const T &SubPattern) { in m_OneUse() function
|