Home
last modified time | relevance | path

Searched refs:m_Power2 (Results 1 – 17 of 17) sorted by relevance

/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/
DInstCombineMulDivRem.cpp467 if (match(Op1, m_Shl(m_Power2(CI), m_Value(N)))) { in visitUDiv()
479 if (match(Op1, m_Select(m_Value(Cond), m_Power2(C1), m_Power2(C2)))) { in visitUDiv()
543 if (match(Op1, m_Shl(m_Power2(), m_Value()))) { in visitSDiv()
624 if (match(Op1, m_Power2(C))) in visitURem()
630 if (match(Op1, m_Shl(m_Power2(), m_Value()))) { in visitURem()
640 if (match(Op1, m_Select(m_Value(Cond), m_Power2(C1), m_Power2(C2)))) { in visitURem()
DInstCombineShifts.cpp44 if (Op1->hasOneUse() && match(Op1, m_SRem(m_Value(A), m_Power2(B)))) { in commonShiftTransforms()
DInstCombineCompares.cpp1978 match(LHS, m_LShr(m_Power2(CI), m_Value(X)))) in visitICmpInst()
2015 match(LHS, m_LShr(m_Power2(CI), m_Value(X)))) in visitICmpInst()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineSelect.cpp324 if (!match(CmpLHS, m_And(m_Value(X), m_Power2(C1)))) in foldSelectICmpAndOr()
329 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()
564 match(CmpLHS, m_And(m_Value(X), m_Power2(Y))) && in visitSelectInstWithICmp()
DInstCombineMulDivRem.cpp1022 if (match(Op1, m_Power2())) { in visitUDivOperand()
1035 if (match(Op1, m_Shl(m_Power2(), m_Value())) || in visitUDivOperand()
1036 match(Op1, m_ZExt(m_Shl(m_Power2(), m_Value())))) { in visitUDivOperand()
DInstCombineShifts.cpp46 if (Op1->hasOneUse() && match(Op1, m_SRem(m_Value(A), m_Power2(B)))) { in commonShiftTransforms()
DInstCombineCompares.cpp3451 match(LHS, m_LShr(m_Power2(CI), m_Value(X)))) in visitICmpInst()
3495 match(LHS, m_LShr(m_Power2(CI), m_Value(X)))) in visitICmpInst()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/InstCombine/
DInstCombineSelect.cpp118 if (!match(V, m_And(m_Value(), m_Power2(AndRHS)))) in foldSelectICmpAnd()
518 if (!match(CmpLHS, m_And(m_Value(), m_Power2(C1)))) in foldSelectICmpAndOr()
544 bool OrOnFalseVal = match(FalseVal, m_Or(m_Specific(TrueVal), m_Power2(C2))); in foldSelectICmpAndOr()
546 OrOnTrueVal = match(TrueVal, m_Or(m_Specific(FalseVal), m_Power2(C2))); in foldSelectICmpAndOr()
954 match(CmpLHS, m_And(m_Value(X), m_Power2(Y))) && in foldSelectInstWithICmp()
DInstCombineMulDivRem.cpp867 if (match(Op1, m_Power2())) { in visitUDivOperand()
873 if (match(Op1, m_Shl(m_Power2(), m_Value())) || in visitUDivOperand()
874 match(Op1, m_ZExt(m_Shl(m_Power2(), m_Value())))) { in visitUDivOperand()
DInstCombineShifts.cpp56 if (Op1->hasOneUse() && match(Op1, m_SRem(m_Value(A), m_Power2(B)))) { in commonShiftTransforms()
DInstCombineCompares.cpp4345 match(LHS, m_LShr(m_Power2(CI), m_Value(X)))) { in foldICmpUsingKnownBits()
/external/swiftshader/third_party/LLVM/include/llvm/Support/
DPatternMatch.h206 inline cst_pred_ty<is_power2> m_Power2() { return cst_pred_ty<is_power2>(); } in m_Power2() function
207 inline api_pred_ty<is_power2> m_Power2(const APInt *&V) { return V; } in m_Power2() function
/external/llvm/include/llvm/IR/
DPatternMatch.h272 inline cst_pred_ty<is_power2> m_Power2() { return cst_pred_ty<is_power2>(); } in m_Power2() function
273 inline api_pred_ty<is_power2> m_Power2(const APInt *&V) { return V; } in m_Power2() function
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/IR/
DPatternMatch.h382 inline cst_pred_ty<is_power2> m_Power2() { in m_Power2() function
385 inline api_pred_ty<is_power2> m_Power2(const APInt *&V) { in m_Power2() function
/external/llvm/lib/Analysis/
DScalarEvolutionExpander.cpp768 if (match(W, m_Power2(RHS))) { in visitMulExpr()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/
DScalarEvolutionExpander.cpp824 if (match(W, m_Power2(RHS))) { in visitMulExpr()
DValueTracking.cpp1679 if (match(V, m_Power2())) in isKnownToBeAPowerOfTwo()